---
title: "Create a hide-bill intent"
method: POST
path: "/poslink/v1/tabs/{tab_id}/hide-bill-intents"
tags: ["Pay at Table"]
---

# Create a hide-bill intent

`POST /poslink/v1/tabs/{tab_id}/hide-bill-intents`

## Request

- Base URL: `https://api.teya.com`
- URL: `https://api.teya.com/poslink/v1/tabs/{tab_id}/hide-bill-intents`
- Auth: OAuth 2
  - Authorization code: `https://id.teya.com/oauth/v2/oauth-authorize`
  - Token URL: `https://id.teya.com/oauth/v2/oauth-token`
- TypeScript: <https://skmtc.dev/teya/apis/poslink-api/docs/poslink/v1/tabs/:tab_id/hide-bill-intents/post.ts> (a function with typed inputs; its response is checked against the schema)

Terminal signals intent to stop displaying the bill for a tab. Strict
semantics: the lock must currently be held by the calling terminal —
a hide racing the credit-completed path or the TTL sweeper is rejected
with `409 TAB_NO_ACTIVE_SHOW_BILL`. On success the server clears the
show-bill state on the tab and notifies the ePOS via a
`TAB_BILL_HIDDEN` SSE event.

## Path parameters

- `tab_id` string, uuid, required

## Request body

- TerminalIdRequest: Request containing a terminal identifier
  - `terminal_id` string, required: The terminal identifier

## Response `202`

Hide-bill intent accepted and forwarded to the ePOS

- HideBillIntentResponse: Response for a hide-bill intent — the request has been accepted and forwarded to the ePOS
  - `tab_id` string, uuid: Tab identifier
  - `status` 'OPEN' | 'PAYING' | 'PAUSED' | 'COMPLETED' | 'CLOSED': Current tab status

## Other responses

- `400`: Bad request
- `401`: Lacks valid authentication credentials for the requested resource
- `403`: The server understands the request but refuses to authorize it
- `404`: Tab not found
- `408`: Request timeout
- `409`: Conflict — no active show-bill lock on the tab, or lock is held by a different terminal
- `415`: Unsupported media type
- `429`: Too many requests in a given amount of time
- `500`: Internal Server Error

---

[API](https://skmtc.dev/teya/apis/poslink-api.md) - [All operations](https://skmtc.dev/teya/apis/poslink-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teya/apis/poslink-api/revisions/29d7e332e1dd?raw)
