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

# Create a show-bill intent

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

## Request

- Base URL: `https://api.teya.com`
- URL: `https://api.teya.com/poslink/v1/tabs/{tab_id}/show-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/show-bill-intents/post.ts> (a function with typed inputs; its response is checked against the schema)

Terminal signals intent to display the bill for a tab. The server accepts
the intent and notifies the ePOS via a `SHOW_BILL_REQUEST` SSE event, which
in turn posts bill content back to the server. At most one terminal can hold
an active show-bill intent per tab at a time.

## Path parameters

- `tab_id` string, uuid, required

## Request body

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

## Response `202`

Show-bill intent accepted and forwarded to the ePOS

- ShowBillIntentResponse: Response for a show-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
  - `showing_bill_terminal_id` string: Terminal that requested the bill display
  - `show_bill_expires_at` string, date-time: ISO 8601 expiry timestamp for the show-bill intent (in UTC)

## 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 — a bill is already being displayed, or tab state does not allow display
- `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/9ed9e3211f24?raw)
