Terminals
| Endpoint | Description |
|---|---|
GET /v1/terminals | List terminals |
GET /v1/terminals/{id} | Retrieve a terminal |
POST /v1/terminals/{id}/print | |
POST /v1/terminals/{id}/scan | Scan |
POST /v1/terminals/{id}/cash-drawer/open | Open the cash drawer |
POST /v1/terminals/{id}/run-profile | Switch run mode (test mode only) |
POST /v1/terminals/claim | Claim a terminal (retired) |
Kuvex assigns terminals to your account by serial number at fulfillment; no API call is needed to bind them. Peripherals per model: see Hardware.
List terminals
GET /v1/terminalsReturns all terminals of the account with their live status.
| Item | Value |
|---|---|
| Auth | Secret key |
Response: 200 OK, { "object": "list", "data": [terminals] }. Fields: Terminal fields.
Retrieve a terminal
GET /v1/terminals/{id}Returns one terminal. Includes machine (device information), which the list omits.
| Item | Value |
|---|---|
| Auth | Secret key, browser session token, host token |
Response: 200 OK
{
"id": "KV100023",
"object": "terminal",
"label": "Front counter",
"status": "online",
"payment_ready": true,
"execution": { "state": "idle", "owner_payment_id": null },
"battery_pct": 86,
"runtime_version": "0.1.294.261120",
"run_profile": "standalone",
"livemode": true,
"last_seen_at": "2026-11-30T18:20:11Z",
"cash_drawer": { "status": "unknown", "request_id": null, "last_result": null }
}Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 404 | terminal_not_found | Terminal does not exist or belongs to another account | No |
An offline terminal cannot take payments; Create a payment returns 409 terminal_offline. A lost connection is detected within seconds.
Print
POST /v1/terminals/{id}/printSubmits structured print content; the terminal lays it out for its printer. Printer command streams such as ESC/POS are not accepted.
| Item | Value |
|---|---|
| Auth | Secret key, browser session token |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
receipt | Object | Yes | Print content, fields below |
payment_id | String | No | Related payment. The terminal adds card details and the paid amount from its own transaction record |
receipt fields:
| Field | Type | Description |
|---|---|---|
kind | String | Document type. Omit for a sales receipt; order, kitchen, call_number, refund |
header / title / footer | String | Header, title, footer |
store_name / store_address1 / store_address2 / store_phone | String | Store block |
order_number / channel_label / order_time | String | Order block |
lines | Array | Line items, up to 100. Each: name (String, ≤ 200 chars), qty (int), amount_cents (int), detail (String, optional) |
subtotal_cents / tax_cents / tip_cents / total_cents | int | Subtotal, tax, tip, total, in cents |
tax_rate_label | String | Tax rate label, e.g. "8.875%" |
qr_data / qr_hint | String | QR code content and caption |
Card details and the paid amount always come from the terminal's transaction record; such fields in receipt are ignored.
Request example
curl https://api.kuvex.com/v1/terminals/KV100023/print \
-H "Authorization: Bearer $KUVEX_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"payment_id": "pay_3kTq9xV2mB7nL4pR8sWz",
"receipt": {
"header": "DEMO CAFE",
"lines": [{ "name": "Latte", "qty": 2, "amount_cents": 900 }],
"subtotal_cents": 900,
"tax_cents": 80,
"total_cents": 980,
"footer": "Thank you"
}
}'Response: 202 Accepted
{ "id": "prt_6bK3wN9qT2xM5pV8sL1r", "object": "print_job", "terminal_id": "KV100023", "status": "dispatched" }dispatched means sent to the terminal, not printed. Result events: print.succeeded, print.failed, print.delivery_unknown; see Print events. Terminals without a printer skip the job and send no event.
The card receipt of a successful payment is printed by the terminal automatically. Use this endpoint for merchant-defined documents.
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 409 | terminal_offline | Terminal is offline | Yes |
Scan
POST /v1/terminals/{id}/scanActivates the scanner and waits up to 30 seconds for one barcode or QR code. Synchronous; set the HTTP client timeout above 30 seconds.
| Item | Value |
|---|---|
| Auth | Secret key, browser session token |
Response: 200 OK
{ "id": "scn_9pT4kW2nX7qM1vL5sR8b", "object": "scan", "status": "completed", "data": "0123456789012" }| Field | Type | Description |
|---|---|---|
status | String | completed: code read; timeout: nothing read within 30 seconds |
data | String | Code content; null on timeout |
timeout is not an error. One call reads one code.
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 409 | terminal_offline | Terminal is offline | Yes |
Open the cash drawer
POST /v1/terminals/{id}/cash-drawer/openSends a kick pulse through the drawer port (RJ11) of the receipt printer configured for the terminal.
| Item | Value |
|---|---|
| Auth | Secret key, browser session token |
Response: 202 Accepted
{ "request_id": "drw_1mK8qT3wN6xV9pL2sR5b", "terminal_id": "KV100023", "status": "pending" }Read the result from cash_drawer on Retrieve a terminal, checking that cash_drawer.last_result.request_id matches this request_id.
cash_drawer.status | Description |
|---|---|
pending | Terminal has not reported |
dispatched | Pulse sent to the printer |
failed | Not sent; reason in last_result.reason (usually no printer configured or printer unreachable) |
ESC/POS provides no drawer-state acknowledgement: dispatched does not confirm the drawer opened and must not be used for cash accounting. There is no webhook for the cash drawer.
Switch run mode (test mode only)
POST /v1/terminals/{id}/run-profileSwitches a test terminal between standalone and companion mode, for testing companion mode in the sandbox. Applied immediately, or on the terminal's next connection.
| Item | Value |
|---|---|
| Auth | Secret key only |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
profile | String | Yes | host_call_secondary: companion mode; standalone: standalone mode |
Response: 200 OK
{ "object": "terminal_run_profile", "terminal_id": "KV100023", "profile": "host_call_secondary", "version": 7 }Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | run_profile_invalid | Invalid profile | No |
| 403 | run_profile_managed_by_kuvex | The run mode of live terminals is configured by Kuvex | No |
Claim a terminal (retired)
POST /v1/terminals/claimAlways returns 410 claim_code_retired. Claim codes are retired; Kuvex assigns terminals by serial number. Contact Kuvex with the serial number of a missing terminal.
Terminal fields
| Field | Type | Description |
|---|---|---|
id | String | Terminal ID, KV prefix |
label | String | Terminal name |
kind | String | Terminal kind; virtual for the sandbox terminal |
model | String | Device model |
status | String | online, busy (in a transaction), attention (needs staff), offline |
payment_ready | boolean | true when online, payment module ready and idle |
execution | Object | state (idle / running / attention), owner_payment_id (payment in progress; use it to recover an in-flight payment after an app restart) |
battery_pct | int | Battery percentage; null without a battery |
runtime_version | String | Kuvex Runtime version, e.g. 0.1.294.261120; the third segment is the Runtime version |
run_profile | String | standalone; host_call_secondary (companion mode) |
cash_drawer | Object | Last cash drawer request: status, request_id, last_result |
machine | Object | Device information; only on retrieve |
livemode | boolean | true live terminal, false test terminal |
last_seen_at | String | Last seen, ISO 8601 (UTC) |