Print Receipts (ePOS)
Get receipt print job with real-time updates
Streams real-time updates for a receipt print job using Server‑Sent Events (SSE) with content type text/event-stream.
Each message in the stream is an SSE event with:
- data: a JSON object with receipt status fields (no formal schema available for SSE payload)
- a blank line terminates each event frame
Semantics:
- The stream emits receipt status updates as they occur.
- When the receipt reaches a final status (for example, PRINTED or FAILED), a last event is sent and the stream is closed.
- If the receipt is already final when requested, a single event is sent and the connection is closed immediately.
Possible statuses:
- NOT_PRINTED
- ENQUEUED
- PRINTING
- PRINTED
- FAILED
- UNKNOWN
Possible status reasons:
- TIMEOUT
- BUSY
- OUT_OF_PAPER
- OVERHEATED
- COVER_OPEN
- LOW_BATTERY
- OTHER
Connection behavior:
- The server may close the connection after approximately one minute of inactivity; clients should reconnect if updates are still expected.
Wire example: data: {"receipt_id":"...","status":"PRINTED","status_reason":null,"updated_at":"2025-09-10T12:30:45Z"}
Note: The response schema below describes the structure of the JSON object placed in the SSE data field, not the SSE framing itself.
get/poslink/v1/receipt-requests/{receipt_id}/status
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
receipt_idstring required
Response
SSE stream
Changes
No recorded changes to this operation across all 1 revision of this API.