---
title: "Report a tab error"
method: POST
path: "/poslink/v1/tabs/{tab_id}/errors"
tags: ["Pay at Table"]
---

# Report a tab error

`POST /poslink/v1/tabs/{tab_id}/errors`

## Request

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

Reports an error from the ePOS for a specific tab (e.g., table not found, bill already settled).
The server accepts the rejection and notifies the affected terminal so it can surface
the error to the operator.

## Path parameters

- `tab_id` string, uuid, required

## Request body

- TabErrorRequest: Request to report an error on a tab
  - `terminal_id` string, required: The terminal reporting the error
  - `error_code` 'TABLE_NOT_FOUND' | 'BILL_ALREADY_SETTLED' | 'EPOS_ERROR' | 'REQUEST_REJECTED', required: Error code
  - `message` string, required: Human-readable error message

## Response `202`

Rejection accepted and forwarded to the terminal

- TabErrorResponse: Response after reporting a tab error
  - `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
- `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/cc7c1bd11e93?raw)
