Pay at Table
Retrieve the current bill for a tab
Returns the current bill for a tab, including items, amounts, and bill image URL (if any). If the ePOS has reported a rejection via POST /v1/tabs/{tab_id}/errors before any bill content was posted, the response still returns 200 with the bill fields empty/zero and last_error_* populated so the terminal can surface the error to the user.
get/poslink/v1/tabs/{tab_id}/bill
Request
- Base URLhttps://api.teya.com
- AuthOAuth 2Authorization codehttps://id.teya.com/oauth/v2/oauth-authorizeToken URLhttps://id.teya.com/oauth/v2/oauth-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tab_idstring uuid required
The tab identifier
Response
Bill retrieved. bill_file_url is null when the ePOS POSTed the bill without a print_model (no print-receipt round-trip occurred), or when the ePOS reported an error and no bill content was posted (check last_error_code).
Example response
{
"tab_id": "3f2b6a2e-9d3e-4a1f-8f1e-6b2e5a8c9d01",
"tab_name": "Table 5",
"status": "OPEN",
"total_amount": {
"amount": 1500,
"currency": "EUR"
},
"remaining": 5000,
"merchant_reference": "ORDER-2026-001",
"bill_file_url": "https://files.example.com/bills/bill-file-001.png",
"showing_bill_terminal_id": "term-001",
"show_bill_expires_at": "2026-04-14T10:05:00Z",
"last_error_code": "BILL_ALREADY_SETTLED",
"last_error_message": "Bill has already been paid in full",
"last_error_at": "2026-04-14T10:07:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.