Customer display
| Endpoint | Description |
|---|---|
PUT /v1/terminals/{id}/display/cart | Push the cart |
GET /v1/terminals/{id}/display/cart | Retrieve the cart |
POST /v1/terminals/{id}/customer-display | Set the customer display renderer |
GET /v1/terminals/{id}/customer-display | Retrieve customer display settings |
POST /v1/terminals/{id}/idle-screen | Set the idle screen |
PUT /v1/terminals/{id}/idle-screen/logo | Upload an idle screen logo |
Integration options and examples: Customer display guide.
Push the cart
PUT /v1/terminals/{id}/display/cartReplaces the cart on the terminal's customer display with a full snapshot. The cart is display-only and is not a payment instruction; the charged amount is the amount_cents of the payment, and Kuvex does not check that line amounts add up.
| Item | Value |
|---|---|
| Auth | Secret key, browser session token, host token |
| Rate limit | About 60 per minute per terminal (shared with print, scan, etc.) |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
revision | int | Yes | Current revision + 1; the first push is 1. Read the current revision with Retrieve the cart |
session_id | String | Yes | Register or session identifier |
currency | String | Yes | Always usd |
lines | Array | Yes | Line items, fields below. An empty array clears the screen; all totals must then be 0 |
subtotal_cents | int | Yes | Subtotal in cents |
tax_cents | int | Yes | Tax in cents |
total_cents | int | Yes | Total in cents |
discount_cents | int | No | Order discount, shown between subtotal and tax |
order_id | String | No | Merchant order ID, 1–128 chars. A payment created with the same order_id goes from this cart straight to card entry |
lines fields:
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Line ID, unique within the cart |
name | String | Yes | Item name, no control characters |
quantity | int | Yes | Quantity |
amount_cents | int | Yes | Line amount in cents |
note | String | No | Line note (e.g. modifiers), ≤ 80 chars |
Constraints:
- The serialized cart must not exceed 16,384 bytes and must not contain card numbers or other payment data; unknown fields return
400 display_cart_invalid. - A cart expires 5 minutes after it was stored without a new revision.
- Resending the same
revisionwith the same body is a no-op and does not extend the lifetime. noteanddiscount_centsare shown on Runtime 294 or later; older terminals ignore them.
Request example
curl -X PUT https://api.kuvex.com/v1/terminals/KV100023/display/cart \
-H "Authorization: Bearer $KUVEX_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"revision": 1,
"session_id": "register-1",
"order_id": "A-1042",
"currency": "usd",
"lines": [{ "id": "l1", "name": "Latte", "quantity": 2, "amount_cents": 900, "note": "Oat milk" }],
"subtotal_cents": 900,
"tax_cents": 80,
"total_cents": 980
}'Response: 202 Accepted with the cart state (as in Retrieve the cart). 202 means stored; an offline terminal receives the cart on reconnect if it has not expired.
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | display_cart_invalid | Missing or invalid field; detail.field and detail.reason identify it | No |
| 409 | display_revision_conflict | revision is not current + 1; detail.revision is the current revision | No |
| 429 | rate_limited | Rate limit exceeded; wait Retry-After seconds | Yes |
Retrieve the cart
GET /v1/terminals/{id}/display/cart| Item | Value |
|---|---|
| Auth | Secret key, browser session token, host token |
Response: 200 OK
{
"revision": 1,
"applied_revision": 1,
"status": "applied",
"session_id": "register-1",
"order_id": "A-1042",
"expires_at_ms": 1764527400000,
"lines": [{ "id": "l1", "name": "Latte", "quantity": 2, "amount_cents": 900 }],
"total_cents": 980
}| Field | Type | Description |
|---|---|---|
revision | int | Stored revision |
applied_revision | int | Revision the terminal confirmed it displays |
status | String | See below |
consumed_payment_id | String | Payment that took over the cart |
expires_at_ms | long | Expiry, Unix milliseconds |
status | Description |
|---|---|
empty | No cart was ever pushed; revision=0 |
pending | Stored, not yet confirmed on screen (including while offline) |
applied | Displayed |
consumed | Taken over by a payment with the same order_id, regardless of its outcome. Push a new revision to display a cart again |
expired | No new revision for 5 minutes |
Set the customer display renderer
POST /v1/terminals/{id}/customer-display| Item | Value |
|---|---|
| Auth | Secret key only |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
renderer | String | Yes | native (default): rendered natively by the terminal. kuvex_hosted: Kuvex-hosted page branded from the idle screen; requires Runtime 294 or later. isv_web: merchant web page, with app_id |
app_id | String | Conditional | Required with isv_web: an application with role customer_display published to this terminal |
Web renderers (kuvex_hosted, isv_web) apply only to terminals in companion mode (dedicated customer screen). If the page fails, the terminal falls back to native.
Response: 200 OK with the settings (as in Retrieve customer display settings).
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | customer_display_invalid | Invalid renderer, or isv_web without app_id | No |
| 409 | customer_display_app_not_published | Application not published to this terminal | No |
| 409 | customer_display_app_role | Application role is not customer_display | No |
| 409 | customer_display_app_disabled | Application disabled for customer displays by Kuvex | No |
| 409 | customer_display_runtime_too_old | Terminal Runtime is older than 294; kuvex_hosted not supported | No |
Retrieve customer display settings
GET /v1/terminals/{id}/customer-display| Item | Value |
|---|---|
| Auth | Secret key |
Response fields
| Field | Type | Description |
|---|---|---|
renderer | String | Configured renderer |
app_id | String | Application ID for isv_web |
hosted_url | String | Page the terminal loads for kuvex_hosted |
kuvex_hosted_available | boolean | false when the terminal Runtime is older than 294 |
actual | Object | Latest report from the terminal: renderer, confirmed (false = no report yet), at, reason (fallback reason) |
recent_fallbacks | Array | Last 5 fallbacks, each with reason, from (failed renderer), at |
available_apps | Array | Customer display applications published to this terminal |
Fallback reasons: load_failed, http_error, ssl_error, navigation_blocked, not_rendered, crashed, offline, app_missing.
Set the idle screen
POST /v1/terminals/{id}/idle-screenSets the welcome screen shown while the terminal is idle. The kuvex_hosted customer display uses the same brand settings. Each call replaces the whole screen: omitted fields return to defaults, except the logo, which is kept unless logo_sha256 or remove_logo is sent.
| Item | Value |
|---|---|
| Auth | Secret key only |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
headline | String | No | Headline, ≤ 40 chars. Empty: default greeting in the terminal's language |
subline | String | No | Subline, ≤ 80 chars |
theme | String | No | light (default), dark, brand |
brand_color | String | Conditional | Required with theme=brand, format #rrggbb |
logo_sha256 | String | No | sha256 from Upload an idle screen logo; must belong to this account |
remove_logo | boolean | No | true removes the logo |
Response: 200 OK. applied=true means the terminal reported running this configuration; configured=false means nothing was set and defaults are shown.
GET /v1/terminals/{id}/idle-screen returns the current settings in the same format.
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | idle_screen_invalid | Field too long or invalid, or logo not owned by this account; detail.field identifies it | No |
Upload an idle screen logo
PUT /v1/terminals/{id}/idle-screen/logoThe request body is the image itself: PNG or JPEG, ≤ 200 KB, with Content-Type image/png or image/jpeg.
| Item | Value |
|---|---|
| Auth | Secret key only |
Request example
curl -X PUT https://api.kuvex.com/v1/terminals/KV100023/idle-screen/logo \
-H "Authorization: Bearer $KUVEX_SECRET_KEY" \
-H "Content-Type: image/png" \
--data-binary @logo.pngResponse: 201 Created
{ "sha256": "9f2c...e41a", "content_type": "image/png", "bytes": 18342 }Pass sha256 as logo_sha256 when setting the idle screen.
Errors
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | idle_screen_invalid | Unsupported format, empty or unreadable image, or larger than 200 KB | No |