Skip to content

Customer display ​

EndpointDescription
PUT /v1/terminals/{id}/display/cartPush the cart
GET /v1/terminals/{id}/display/cartRetrieve the cart
POST /v1/terminals/{id}/customer-displaySet the customer display renderer
GET /v1/terminals/{id}/customer-displayRetrieve customer display settings
POST /v1/terminals/{id}/idle-screenSet the idle screen
PUT /v1/terminals/{id}/idle-screen/logoUpload an idle screen logo

Integration options and examples: Customer display guide.

Push the cart ​

http
PUT /v1/terminals/{id}/display/cart

Replaces 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.

ItemValue
AuthSecret key, browser session token, host token
Rate limitAbout 60 per minute per terminal (shared with print, scan, etc.)

Request body

ParameterTypeRequiredDescription
revisionintYesCurrent revision + 1; the first push is 1. Read the current revision with Retrieve the cart
session_idStringYesRegister or session identifier
currencyStringYesAlways usd
linesArrayYesLine items, fields below. An empty array clears the screen; all totals must then be 0
subtotal_centsintYesSubtotal in cents
tax_centsintYesTax in cents
total_centsintYesTotal in cents
discount_centsintNoOrder discount, shown between subtotal and tax
order_idStringNoMerchant order ID, 1–128 chars. A payment created with the same order_id goes from this cart straight to card entry

lines fields:

FieldTypeRequiredDescription
idStringYesLine ID, unique within the cart
nameStringYesItem name, no control characters
quantityintYesQuantity
amount_centsintYesLine amount in cents
noteStringNoLine 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 revision with the same body is a no-op and does not extend the lifetime.
  • note and discount_cents are shown on Runtime 294 or later; older terminals ignore them.

Request example

bash
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

HTTPCodeDescriptionRetriable
400display_cart_invalidMissing or invalid field; detail.field and detail.reason identify itNo
409display_revision_conflictrevision is not current + 1; detail.revision is the current revisionNo
429rate_limitedRate limit exceeded; wait Retry-After secondsYes

Retrieve the cart ​

http
GET /v1/terminals/{id}/display/cart
ItemValue
AuthSecret key, browser session token, host token

Response: 200 OK

json
{
  "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
}
FieldTypeDescription
revisionintStored revision
applied_revisionintRevision the terminal confirmed it displays
statusStringSee below
consumed_payment_idStringPayment that took over the cart
expires_at_mslongExpiry, Unix milliseconds
statusDescription
emptyNo cart was ever pushed; revision=0
pendingStored, not yet confirmed on screen (including while offline)
appliedDisplayed
consumedTaken over by a payment with the same order_id, regardless of its outcome. Push a new revision to display a cart again
expiredNo new revision for 5 minutes

Set the customer display renderer ​

http
POST /v1/terminals/{id}/customer-display
ItemValue
AuthSecret key only

Request body

ParameterTypeRequiredDescription
rendererStringYesnative (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_idStringConditionalRequired 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

HTTPCodeDescriptionRetriable
400customer_display_invalidInvalid renderer, or isv_web without app_idNo
409customer_display_app_not_publishedApplication not published to this terminalNo
409customer_display_app_roleApplication role is not customer_displayNo
409customer_display_app_disabledApplication disabled for customer displays by KuvexNo
409customer_display_runtime_too_oldTerminal Runtime is older than 294; kuvex_hosted not supportedNo

Retrieve customer display settings ​

http
GET /v1/terminals/{id}/customer-display
ItemValue
AuthSecret key

Response fields

FieldTypeDescription
rendererStringConfigured renderer
app_idStringApplication ID for isv_web
hosted_urlStringPage the terminal loads for kuvex_hosted
kuvex_hosted_availablebooleanfalse when the terminal Runtime is older than 294
actualObjectLatest report from the terminal: renderer, confirmed (false = no report yet), at, reason (fallback reason)
recent_fallbacksArrayLast 5 fallbacks, each with reason, from (failed renderer), at
available_appsArrayCustomer 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 ​

http
POST /v1/terminals/{id}/idle-screen

Sets 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.

ItemValue
AuthSecret key only

Request body

ParameterTypeRequiredDescription
headlineStringNoHeadline, ≤ 40 chars. Empty: default greeting in the terminal's language
sublineStringNoSubline, ≤ 80 chars
themeStringNolight (default), dark, brand
brand_colorStringConditionalRequired with theme=brand, format #rrggbb
logo_sha256StringNosha256 from Upload an idle screen logo; must belong to this account
remove_logobooleanNotrue 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

HTTPCodeDescriptionRetriable
400idle_screen_invalidField too long or invalid, or logo not owned by this account; detail.field identifies itNo
http
PUT /v1/terminals/{id}/idle-screen/logo

The request body is the image itself: PNG or JPEG, ≤ 200 KB, with Content-Type image/png or image/jpeg.

ItemValue
AuthSecret key only

Request example

bash
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.png

Response: 201 Created

json
{ "sha256": "9f2c...e41a", "content_type": "image/png", "bytes": 18342 }

Pass sha256 as logo_sha256 when setting the idle screen.

Errors

HTTPCodeDescriptionRetriable
400idle_screen_invalidUnsupported format, empty or unreadable image, or larger than 200 KBNo