Skip to content

Terminals ​

EndpointDescription
GET /v1/terminalsList terminals
GET /v1/terminals/{id}Retrieve a terminal
POST /v1/terminals/{id}/printPrint
POST /v1/terminals/{id}/scanScan
POST /v1/terminals/{id}/cash-drawer/openOpen the cash drawer
POST /v1/terminals/{id}/run-profileSwitch run mode (test mode only)
POST /v1/terminals/claimClaim 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 ​

http
GET /v1/terminals

Returns all terminals of the account with their live status.

ItemValue
AuthSecret key

Response: 200 OK, { "object": "list", "data": [terminals] }. Fields: Terminal fields.

Retrieve a terminal ​

http
GET /v1/terminals/{id}

Returns one terminal. Includes machine (device information), which the list omits.

ItemValue
AuthSecret key, browser session token, host token

Response: 200 OK

json
{
  "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

HTTPCodeDescriptionRetriable
404terminal_not_foundTerminal does not exist or belongs to another accountNo

An offline terminal cannot take payments; Create a payment returns 409 terminal_offline. A lost connection is detected within seconds.

http
POST /v1/terminals/{id}/print

Submits structured print content; the terminal lays it out for its printer. Printer command streams such as ESC/POS are not accepted.

ItemValue
AuthSecret key, browser session token

Request body

ParameterTypeRequiredDescription
receiptObjectYesPrint content, fields below
payment_idStringNoRelated payment. The terminal adds card details and the paid amount from its own transaction record

receipt fields:

FieldTypeDescription
kindStringDocument type. Omit for a sales receipt; order, kitchen, call_number, refund
header / title / footerStringHeader, title, footer
store_name / store_address1 / store_address2 / store_phoneStringStore block
order_number / channel_label / order_timeStringOrder block
linesArrayLine items, up to 100. Each: name (String, ≤ 200 chars), qty (int), amount_cents (int), detail (String, optional)
subtotal_cents / tax_cents / tip_cents / total_centsintSubtotal, tax, tip, total, in cents
tax_rate_labelStringTax rate label, e.g. "8.875%"
qr_data / qr_hintStringQR 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

bash
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

json
{ "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

HTTPCodeDescriptionRetriable
409terminal_offlineTerminal is offlineYes

Scan ​

http
POST /v1/terminals/{id}/scan

Activates the scanner and waits up to 30 seconds for one barcode or QR code. Synchronous; set the HTTP client timeout above 30 seconds.

ItemValue
AuthSecret key, browser session token

Response: 200 OK

json
{ "id": "scn_9pT4kW2nX7qM1vL5sR8b", "object": "scan", "status": "completed", "data": "0123456789012" }
FieldTypeDescription
statusStringcompleted: code read; timeout: nothing read within 30 seconds
dataStringCode content; null on timeout

timeout is not an error. One call reads one code.

Errors

HTTPCodeDescriptionRetriable
409terminal_offlineTerminal is offlineYes

Open the cash drawer ​

http
POST /v1/terminals/{id}/cash-drawer/open

Sends a kick pulse through the drawer port (RJ11) of the receipt printer configured for the terminal.

ItemValue
AuthSecret key, browser session token

Response: 202 Accepted

json
{ "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.statusDescription
pendingTerminal has not reported
dispatchedPulse sent to the printer
failedNot 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) ​

http
POST /v1/terminals/{id}/run-profile

Switches a test terminal between standalone and companion mode, for testing companion mode in the sandbox. Applied immediately, or on the terminal's next connection.

ItemValue
AuthSecret key only

Request body

ParameterTypeRequiredDescription
profileStringYeshost_call_secondary: companion mode; standalone: standalone mode

Response: 200 OK

json
{ "object": "terminal_run_profile", "terminal_id": "KV100023", "profile": "host_call_secondary", "version": 7 }

Errors

HTTPCodeDescriptionRetriable
400run_profile_invalidInvalid profileNo
403run_profile_managed_by_kuvexThe run mode of live terminals is configured by KuvexNo

Claim a terminal (retired) ​

http
POST /v1/terminals/claim

Always 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 ​

FieldTypeDescription
idStringTerminal ID, KV prefix
labelStringTerminal name
kindStringTerminal kind; virtual for the sandbox terminal
modelStringDevice model
statusStringonline, busy (in a transaction), attention (needs staff), offline
payment_readybooleantrue when online, payment module ready and idle
executionObjectstate (idle / running / attention), owner_payment_id (payment in progress; use it to recover an in-flight payment after an app restart)
battery_pctintBattery percentage; null without a battery
runtime_versionStringKuvex Runtime version, e.g. 0.1.294.261120; the third segment is the Runtime version
run_profileStringstandalone; host_call_secondary (companion mode)
cash_drawerObjectLast cash drawer request: status, request_id, last_result
machineObjectDevice information; only on retrieve
livemodebooleantrue live terminal, false test terminal
last_seen_atStringLast seen, ISO 8601 (UTC)