Customer display
This guide covers using a Kuvex terminal as the customer-facing screen of a POS: the POS pushes the cart to the terminal while items are entered, then creates a payment on the same terminal. Store host credentials, pairing, cancellation and going live are covered in Companion mode.
Renderers
The renderer determines who draws the cart on the terminal. The cart API and the payment API are identical for all three renderers.
renderer | Drawn by | Integration work | On failure |
|---|---|---|---|
native (default) | The terminal itself; no web page is loaded | None; push cart data | — |
kuvex_hosted | A Kuvex-hosted page using the logo, colors and greeting from the idle screen | Configure the idle screen once | Falls back to native |
isv_web | An HTTPS page hosted by the integrator | Build and host the page (Build an isv_web page) | Falls back to native |
Selection criteria:
native: nothing to build, host or fail. The recommended starting point and suitable for most stores.kuvex_hosted: merchant logo and colors on the cart without operating a page.isv_web: full control of the layout, such as upsell tiles, loyalty messages or custom typography. The integrator hosts the page and is responsible for its availability.
Payment, result and receipt screens always belong to Kuvex. When a payment starts, the Kuvex payment page covers the entire screen. A web page is covered during the payment, never receives card data and is never told the result.
The legacy value kuvex_template (earlier name of the built-in display) is still accepted as input and is treated as native; responses always return native.
Prerequisites
| Item | Requirement |
|---|---|
| Runtime version | kuvex_hosted, the value native, the idle screen settings and the cart fields note / discount_cents require Runtime 294 or later. A terminal on an earlier version set to native keeps drawing the built-in display, and rejects kuvex_hosted with 409 customer_display_runtime_too_old. |
| Terminal mode | Web renderers (kuvex_hosted, isv_web) apply only to terminals in companion mode. A terminal operated by a cashier (standalone mode) always uses native for the cart shown to the customer. The sandbox virtual terminal shows the configured renderer. |
| Hardware model | native is available on every Kuvex terminal. Web renderers are enabled per model: currently the sandbox virtual terminal and SUNMI CPad Pay. Contact Kuvex before planning a web display on another model. |
| Credentials | Configuration calls (renderer, idle screen, applications) require the secret key on the integrator's backend. Pushing the cart and creating payments also accept a host token; a machine in the store must use a host token and never hold the secret key. |
Flow
- Configure the terminal once: set the renderer and, for
kuvex_hostedor branding, set the idle screen. Forisv_web, register and publish the page first. - On every cart change, push the cart with the next
revision. - At checkout, create the payment on the same terminal with the same
order_id. The terminal switches from the cart to card entry. - Get the result by webhook or by polling the payment.
- When the payment is approved in full or nothing was charged, the terminal clears the cart and returns to the idle screen or the web page by itself. After
revieworpartially_approvedit stays on the result page.
Try it in the sandbox
The sandbox runs the full flow without hardware. Sandbox keys never move real money.
# Anonymous test key + a virtual terminal (no signup). Keep the JSON; it is shown once.
curl -s -X POST https://api.kuvex.com/v1/sandbox/session > session.jsonsession.json fields:
| Field | Type | Description |
|---|---|---|
api_key | String | Sandbox secret key (sk_test_…). Server-side only. Valid for 14 days (expires_at); afterwards every call returns 401 sandbox_expired. |
terminal_id | String | Virtual terminal ID |
device_secret, mqtt | String, Object | Connection parameters for the virtual terminal page. They belong to the terminal, not to integration code. |
session_token, session_expires_in | String, int | Browser session token (kvs_…) for the JavaScript SDK, scoped to this terminal, valid for session_expires_in seconds (900 = 15 minutes). Not used in this guide. |
Open the virtual terminal in a browser tab. It uses the same protocol as a physical terminal:
https://api.kuvex.com/sandbox/terminal.html?terminal_id=<terminal_id>&secret=<device_secret>&mqtt_url=<mqtt.url>&mqtt_user=<mqtt.username>&mqtt_pass=<mqtt.password>Keep the virtual terminal tab in the foreground. Browsers pause drawing in background tabs; the terminal then cannot confirm that a cart is on screen, and a web renderer falls back with not_rendered.
Then run the calls in Push the cart and take the payment.
Push the cart and take the payment
These calls are identical for all renderers. The examples run on the integrator's backend with the secret key. A store host makes the same two calls with a host token (Companion mode).
Push the cart
API: Push the cart. Push the full cart on every change.
PUT /v1/terminals/{terminal_id}/display/cart
Authorization: Bearer sk_test_…{
"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, no sugar" } ],
"subtotal_cents": 900,
"discount_cents": 100,
"tax_cents": 71,
"total_cents": 871
}The response is 202 Accepted with the stored cart: the submitted fields plus payload_hash, expires_at_ms, applied_revision and status.
Field constraints. Any violation returns 400 display_cart_invalid; error.detail.field names the field (for example lines[2].note) and error.detail.reason gives the reason.
| Field | Constraint |
|---|---|
revision | Integer, exactly the previous revision for this terminal + 1; the first push is 1. |
session_id | Register or session identifier: letters, digits, _ and -, up to 64 characters. |
order_id | Optional, up to 128 characters. Use the same order_id when creating the payment so the terminal goes from this cart straight to card entry. |
lines | Up to 100 lines. |
lines[].id | Letters, digits, _ and -, up to 64 characters, unique within the cart. |
lines[].name | Up to 160 characters. |
lines[].quantity | 1–999. |
lines[].amount_cents | Line total in integer cents, 0 or greater. |
lines[].note | Optional. Plain text up to 80 characters for modifiers (for example "Oat milk, no sugar"), shown under the line name. An empty string means no note. |
discount_cents | Optional. Integer, 0 or greater, for the whole order; shown as a discount between subtotal and tax. |
| Amounts | Integer cents. Kuvex displays the submitted values and does not check that they add up. |
currency | Always "usd". |
| Other fields | Not allowed. |
| Size | The serialized cart must not exceed 16 KB. |
| Card data | Not allowed, including anything shaped like a card number: 13–19 digits (spaces and hyphens allowed) with a card network's prefix and length that pass the card-number checksum are rejected, as is magnetic-stripe track data. A plain numeric order number such as a millisecond timestamp (1794502931118) is accepted. |
Revision handling:
- Resending the same
revisionwith the same body is accepted and changes nothing, including the expiry. - A different body for the same revision, or a skipped number, returns
409 display_revision_conflict.error.detail.revisionis the current revision; continue from it.GETon the same path also returns it.
Cart lifetime:
- A cart expires 5 minutes after it was stored. Push the next revision to keep it on screen.
- To clear the screen, push the next revision with
"lines": []and all totals0. 202 Acceptedmeans Kuvex stored the cart, including while the terminal is offline; the cart is delivered when the terminal reconnects.- A payment consumes the cart, including when the payment is declined or canceled. To show the cart again for a retry, push the next revision first.
- A displayed cart is never a payment.
Cart status, returned by GET on the same path (Retrieve the cart):
status | Description |
|---|---|
empty | The terminal has never had a cart: {"revision":0,"applied_revision":0,"status":"empty"} |
pending | Stored; the terminal has not confirmed it |
applied | The terminal confirmed this revision is on screen |
consumed | Taken by a payment with the same order_id (consumed_payment_id) |
expired | Older than 5 minutes |
Create the payment
API: Create a payment.
POST /v1/payments
Authorization: Bearer sk_test_…
Idempotency-Key: A-1042-pay-1{ "terminal_id": "KV100023", "amount_cents": 871, "order_id": "A-1042", "tip_flow": "off" }- The terminal shows the Kuvex card screen. The amount charged is
amount_centsfrom this request, never the cart total. If the two differ, the payment proceeds and the terminal shows only the amount, without the cart. - With the same
order_id, a physical terminal keeps the order total and a collapsible item list on the card screen. The sandbox virtual terminal shows the amount only. tip_flow:"default"follows the terminal's tip setting;"off"skips the tip prompt for this payment. Any other value returns400 tip_flow_invalid. A tip already collected is sent astip_cents.- Send an
Idempotency-Keyand reuse it on retries. The same key and body return the first response again: the same payment with the status it had at that time (pending). Read the payment for its current status. The same key with a different body returns409 idempotency_conflict.
Get the result
Two channels:
| Channel | Usage |
|---|---|
| Webhook (book of record, integrator's backend) | Register an HTTPS endpoint once, verify kuvex-signature on every delivery over the exact request bytes, and handle at least payment.completed, payment.partially_approved, payment.failed, payment.canceled and payment.review_required. Event list: Webhooks and events. Runnable receiver: https://api.kuvex.com/examples/webhook-receiver/ |
| Polling | Retrieve the payment (GET /v1/payments/{id}) about once per second while status is pending, processing or void_pending |
Result handling:
status | Description | Final | Handling |
|---|---|---|---|
succeeded | Paid in full | Yes | Release the order |
partially_approved | Partial approval: only approved_amount_cents was charged; remaining_cents is outstanding | Yes | Collect the balance by other means, or void. Do not release the full order. |
offline_approved | Offline approval by the terminal without the card network; risk describes the exposure | No | The merchant carries the risk; the payment later becomes succeeded or failed |
requires_capture | Authorized, not captured (only with capture_method: "manual") | No | Capture from the backend |
failed | Nothing charged; reason in failure.code / failure.message | Yes | Use another card or tender; a retry is a new payment |
canceled | Nothing charged | Yes | Start again |
review | Unknown outcome; Kuvex is confirming | No | Do not charge again. Keep reading the same payment |
pending, processing and void_pending are not results. All status values: Transaction status. Cashier handling per status, time limits and locating a payment after a restart are described in Companion mode.
Terminal behavior after the result: the terminal shows the Kuvex result page. When the payment was approved in full, or nothing was charged with certainty (declined, canceled, card not read), the terminal then clears the cart and returns to the idle screen or the web page by itself. After review or partially_approved it stays on the result page.
Runnable backend example (Node 18+, no dependencies): https://api.kuvex.com/examples/customer-display/host-a.mjs
KUVEX_KEY=sk_test_… KUVEX_TERMINAL=KV… node host-a.mjsStore host version (host token instead of the secret key): https://api.kuvex.com/examples/companion/host.mjs.
Configure the renderer and the idle screen
Both settings are per terminal and require the secret key.
Set the renderer
API: Set the customer display renderer and Retrieve customer display settings.
# Read: the mode, what the terminal is actually showing, recent fallbacks, the display applications you can choose
curl -s https://api.kuvex.com/v1/terminals/KV…/customer-display -H "Authorization: Bearer sk_test_…"
# Set
curl -s -X POST https://api.kuvex.com/v1/terminals/KV…/customer-display \
-H "Authorization: Bearer sk_test_…" -H "Content-Type: application/json" \
-d '{"renderer":"native"}' # the default
# -d '{"renderer":"kuvex_hosted"}' # Kuvex-hosted page with your brand
# -d '{"renderer":"isv_web","app_id":"app_…"}' # your own page (isv_web)Both calls return:
{
"object": "customer_display",
"terminal_id": "KV…",
"isv_id": "isv_…",
"renderer": "isv_web",
"app_id": "app_…",
"application": { "id": "app_…", "name": "My display", "url": "https://display.example.com/" },
"hosted_url": null,
"kuvex_hosted_available": true,
"applies_in": "customer_dedicated",
"customer_experience_mode": "customer_dedicated",
"actual": { "renderer": "isv_web", "confirmed": true, "at": "2026-11-12T17:30:02.000Z", "reason": null },
"recent_fallbacks": [
{ "reason": "not_rendered", "from": "isv_web", "app_id": "app_…", "revision": 7, "at": "2026-11-12T17:12:40.000Z" }
],
"available_apps": [ { "id": "app_…", "name": "My display", "url": "https://display.example.com/", "platform_disabled": false } ]
}| Field | Description |
|---|---|
renderer | Configured renderer. |
actual | What the terminal last reported it is showing. confirmed: false: no report since the setting changed. renderer: "native" with a reason: the terminal fell back; this applies to both web renderers, and recent_fallbacks[].from identifies which one failed. With native configured there is nothing to report: actual is native with confirmed: false. A terminal set to kuvex_hosted on Runtime older than 294 reports native with reason: "runtime_too_old". |
kuvex_hosted_available | false when the terminal's Runtime is older than 294; setting kuvex_hosted then returns 409 customer_display_runtime_too_old. |
hosted_url | The Kuvex page the terminal loads when renderer is kuvex_hosted, otherwise null. Only the Kuvex Dashboard, the Kuvex operations console and sandbox pages may show it in a frame; it cannot be embedded in other sites. |
customer_experience_mode | Any value other than customer_dedicated means the terminal is not in companion mode and shows native regardless of the setting. |
Dashboard: Terminals → terminal → Customer display.
Set the idle screen
API: Upload an idle screen logo and Set the idle screen.
Each terminal has one brand setting, the idle screen. The terminal shows it between customers; the kuvex_hosted page takes its logo, colors and greeting from it; isv_web pages receive it through onBrand.
# 1) Upload the logo: PNG or JPEG, at most 200 KB. The request body is the image itself.
curl -s -X PUT https://api.kuvex.com/v1/terminals/KV…/idle-screen/logo \
-H "Authorization: Bearer sk_test_…" -H "Content-Type: image/png" --data-binary @logo.png
# 201 {"sha256":"9f2c…","content_type":"image/png","bytes":18234}
# 2) Set the idle screen
curl -s -X POST https://api.kuvex.com/v1/terminals/KV…/idle-screen \
-H "Authorization: Bearer sk_test_…" -H "Content-Type: application/json" \
-d '{"headline":"Welcome to Demo Café","subline":"Order at the counter","theme":"brand","brand_color":"#1a5c2e","logo_sha256":"9f2c…"}'
# Read it back
curl -s https://api.kuvex.com/v1/terminals/KV…/idle-screen -H "Authorization: Bearer sk_test_…"| Parameter | Type | Required | Description |
|---|---|---|---|
headline | String | No | Up to 40 characters. Empty or omitted: the terminal and the kuvex_hosted page show the default greeting in the terminal's current language (Welcome, 欢迎光临 or Bienvenido); the API stores and returns "". |
subline | String | No | Up to 80 characters; may be empty. |
theme | String | No | light (default), dark or brand. |
brand_color | String | Conditional | #rrggbb; required when theme is brand. |
logo_sha256 | String | No | sha256 returned by a logo upload from the same account. Another account's logo returns 400 idle_screen_invalid (detail.field: "logo"). |
remove_logo | boolean | No | true removes the logo. If neither logo_sha256 nor remove_logo is sent, the current logo is kept. |
- Each
POSTreplaces the whole screen: omitted fields return to their defaults (emptyheadlineandsubline,theme: "light"). Only the logo is kept unlessremove_logois sent. - The response contains the stored
screenandapplied, which becomestrueonce the terminal reports the same configuration. - Invalid input returns
400 idle_screen_invalidwitherror.detail.field. - Carousels, video and advertising are not supported.
Dashboard: Terminals → terminal → Idle screen, with a preview of the kuvex_hosted page.
Build an isv_web page
Page JavaScript API
The page receives the same cart pushed through Push the cart, through a read-only kuvex.display object injected by the terminal.
<script src="https://api.kuvex.com/sdk/display/1.1.0/kuvex-display.js"></script>
<script>
function start() {
kuvex.display.onPhase(phase => { /* "idle" | "cart" | "payment" */ });
kuvex.display.onBrand?.(brand => { /* logo_data_url, theme, brand_color, headline, subline, merchant_name, language */ });
kuvex.display.onCart(cart => {
draw(cart); // your rendering
requestAnimationFrame(() => kuvex.display.rendered(cart.revision)); // REQUIRED, within 3 s
});
}
if (window.kuvex && kuvex.display) start(); else addEventListener('kuvexdisplayready', start, { once: true });
</script>Script versions:
| Script | Description |
|---|---|
/sdk/display/1.1.0/kuvex-display.js | Current version; adds onBrand. |
/sdk/display/1.0.0/kuvex-display.js | Previous version; pages that load it keep working unchanged. |
On a physical terminal kuvex-display.js does nothing, because the Runtime has already injected kuvex.display. When the page runs inside the sandbox, it connects to the virtual terminal.
Methods
| Method | Description |
|---|---|
onCart(fn) | Registers a callback invoked with each cart (fn(cart), cart fields below). An idle or cleared screen is delivered as a cart with lines: []. |
onPhase(fn) | Registers a callback invoked with the current phase (fn(phase), values below). |
onBrand(fn) | Since 1.1.0. Registers a callback invoked with the terminal's brand (fn(brand), fields below). Call it as onBrand?.(…) so the page also runs on a terminal that only provides 1.0.0. |
rendered(revision) | Reports that the cart with this revision (int) is on screen. Kuvex reports the cart as applied only after this call and after the page is actually visible. Must be called within 3 seconds of receiving the cart, otherwise the terminal falls back with not_rendered. |
Properties and events
| Member | Type | Description |
|---|---|---|
cart | Object | Latest cart, read-only. |
phase | String | Latest phase, read-only. |
Event kuvexdisplayready | — | Fired on window when kuvex.display becomes available. On a terminal the object usually exists before page scripts run; in the sandbox it arrives slightly later. Use the if … else addEventListener pattern from the example. |
phase values
| Value | Description |
|---|---|
idle | The terminal is idle. |
cart | A cart is displayed. |
payment | A payment is in progress. The Kuvex payment page covers the page; no payment details and no result are delivered. |
Cart fields (onCart)
| Field | Type | Description |
|---|---|---|
revision | int | Cart revision; pass it to rendered. |
order_id | String | Merchant order ID. |
currency | String | Always usd. |
lines | Array<Object> | Line items: id (String), name (String), quantity (int), amount_cents (int), note (String, optional). |
subtotal_cents | int | Subtotal in cents. |
discount_cents | int | Optional. Order discount in cents. |
tax_cents | int | Tax in cents. |
total_cents | int | Total in cents. |
Brand fields (onBrand). Values come from the idle screen; any field can be null.
| Field | Type | Description |
|---|---|---|
logo_data_url | String | The logo as a data: URL, or null. |
theme | String | light, dark or brand. |
brand_color | String | #rrggbb. |
headline | String | Headline. Empty means none was set; show the page's own greeting for language. |
subline | String | Subline. |
merchant_name | String | Merchant name. |
language | String | The terminal's current language. |
CSS variables on :root, updated when the screen changes:
| Variable | Value |
|---|---|
--kuvex-display-form | handheld (portrait, for example Kozen P8) or wide (landscape, for example CPad Pay) |
--kuvex-display-width / --kuvex-display-height | Usable size in px |
--kuvex-corner-size / --kuvex-corner-side | The maintenance corner. Customer displays use a hidden exit, so the size is 0px. |
Implementation notes:
note,discount_centsandonBrandare delivered by terminals on Runtime 294 or later; treat them as optional.- Draw cart strings as text. Never insert them as HTML.
- The
kuvex_hostedpage is built on the same interface and has no additional capabilities.
Complete page, to copy or to register as-is for testing: https://api.kuvex.com/examples/customer-display/display-page.html
Register and publish the page
API: Register an application, Publish to terminals, Retrieve an application and Set the customer display renderer.
- Register the page as an application with
"role":"customer_display". - Publish it to the terminal:
"environment":"sandbox"for the virtual terminal;"physical"with a live key for a physical terminal. - Physical terminals only: wait until the target
stateisapplied. - Switch the terminal's renderer to
isv_webwith theapp_id.
# 1) Register the page as a customer display application
curl -X POST https://api.kuvex.com/v1/applications -H "Authorization: Bearer sk_test_…" -H "Content-Type: application/json" \
-d '{"name":"My display","url":"https://display.example.com/","visibility":"private","role":"customer_display"}'
# → {"id":"app_…","revision":1,…}
# 2) Publish it to the terminal (sandbox virtual terminal: "environment":"sandbox"; a physical terminal: "physical", with a live key)
curl -X POST https://api.kuvex.com/v1/applications/app_…/publish -H "Authorization: Bearer sk_test_…" -H "Content-Type: application/json" \
-d '{"revision":1,"request_id":"publish-display-0001","environment":"sandbox","terminal_ids":["KV…"]}'
# 3) Physical terminals: wait until the terminal has it
curl -s https://api.kuvex.com/v1/applications/app_… -H "Authorization: Bearer sk_live_…"
# → {"application":{…},"targets":[{"terminal_id":"KV…","state":"applied",…}]} wait for "state":"applied"
# 4) Switch the terminal's customer display to your page
curl -X POST https://api.kuvex.com/v1/terminals/KV…/customer-display -H "Authorization: Bearer sk_test_…" -H "Content-Type: application/json" \
-d '{"renderer":"isv_web","app_id":"app_…"}'urlmust usehttps://, a public host name and the default port, without a fragment.request_idis 8–80 characters of letters, digits,_and-. Repeating a publish with the samerequest_idreturns the first result.- Wait for
appliedbefore switching (step 3). A physical terminal fetches its application list periodically. If the renderer is switched immediately after publishing, the terminal does not yet have the page: it falls back tonativewith reasonapp_missingand switches to the page by itself about 45 seconds later. The first cart is then drawn by the built-in display. - Target
statetransitions:pending→applied(orfailed). The sandbox virtual terminal does not report this state (its target stayspending) and reads the application when the renderer is switched; skip step 3 in the sandbox. - After the switch, push carts as described in Push the cart. To return to the built-in display, set
{"renderer":"native"}. - Dashboard: Applications → Use as: Customer display → publish; then Terminals → terminal → Customer display.
Runnable setup script for the backend (Node 18+): https://api.kuvex.com/examples/customer-display/setup-b.mjs
KUVEX_KEY=sk_test_… KUVEX_TERMINAL=KV… DISPLAY_URL=https://api.kuvex.com/examples/customer-display/display-page.html node setup-b.mjsPage restrictions
| Area | Behavior on a physical terminal |
|---|---|
| Origin | Only the registered origin. Navigation to any other site, new windows, downloads, file pickers and camera, microphone or location prompts are refused. Images, fonts and the integrator's own APIs load normally; the integrator is responsible for them. |
| Native dialogs | alert(), confirm() and prompt() are suppressed (confirm returns false, prompt returns null). Do not rely on native dialogs. |
| Reload and navigation | A reload or same-origin navigation creates a new document. The terminal sends it the current cart again and waits for a new rendered(revision); a confirmation from the previous document does not count. While the navigation is loading, the current page stays on screen and keeps receiving carts. Once the new document replaces it, it must connect (kuvex.display ready) within 10 seconds, otherwise the terminal falls back with load_failed. |
javascript: URLs | On terminals with an older system WebView (no document-start scripts), Kuvex cannot detect a page that replaces its own document through a javascript: URL. Do not do this. |
| Payment capabilities | None. The page receives the cart, the phase and the brand only: no payment, refund, print, scan, terminal identity or tokens. Payments are started only from the integrator's server or POS (Create the payment). |
| During payment | Kuvex covers the page and shows its own result page. The page cannot draw over it. Customers can touch the page, but Kuvex does not pass taps back to the POS. |
| Background color | Set one. When the Kuvex payment page closes, the page background is visible until the content is drawn; on Runtime 293 and earlier a dark frame could flash there after a declined payment. |
| Storage | Cookies and storage are always isolated by origin. On terminals whose WebView supports separate profiles, the customer display page also gets its own profile, separate from other pages of the same origin. On WebViews without that support (for example the system WebView on CPad Pay), it shares storage with pages of the same origin on that terminal. |
| Terminal mode | Physical terminals use a web page only in companion mode. On a terminal operated by a cashier, the cart shown to the customer stays native. The sandbox virtual terminal always shows the page. |
Sandbox differences
The virtual terminal is a browser page and differs from hardware as follows:
| Area | Sandbox behavior |
|---|---|
| Framing | The page runs inside an iframe. Do not send X-Frame-Options: DENY or a frame-ancestors CSP that excludes https://api.kuvex.com. |
| HTTP errors | A browser cannot read the HTTP status of a page in an iframe. A page that returns 404 or 500 is reported as load_failed, not http_error. |
| Origin restriction | Not enforced as on a physical terminal; a browser cannot stop a page inside an iframe from navigating. A page served from https://api.kuvex.com itself (such as the example page above) runs without its own origin, and sandbox carts are sent to whatever document is in the frame. Sandbox carts are test data; test origin rules on a terminal. |
To verify in the sandbox that the page is on screen: status: "applied" on the cart after a push means the page called rendered. actual in GET …/customer-display shows confirmed: true with the configured renderer once the virtual terminal displays the page.
Content requirements
A customer display page must not:
- show "paid", "approved" or any payment result;
- contain card number, expiry, CVV or PIN fields;
- imitate the Kuvex payment page.
Kuvex can disable a customer display application platform-wide when it violates these rules. Every terminal using it returns to native immediately, and the application cannot be selected again (409 customer_display_app_disabled) until Kuvex re-enables it.
Kuvex guarantees that the page is covered by the Kuvex payment page while a payment runs. Kuvex does not and cannot guarantee that the page's own content is not misleading; under these rules that is the integrator's responsibility.
Fallback to native
When a web renderer (kuvex_hosted or isv_web) cannot show a cart, the terminal draws the same cart natively and records the reason. The fallback target is always native; an isv_web page never falls back to kuvex_hosted.
| Reason | Condition |
|---|---|
load_failed | The page did not load, or took longer than 10 seconds |
http_error | The page returned HTTP 4xx/5xx (reported as load_failed in the sandbox) |
ssl_error | Certificate error |
navigation_blocked | The page tried to leave its registered origin |
not_rendered | rendered(revision) was not called within 3 seconds of a cart |
crashed | The page's renderer process crashed |
offline | The terminal could not reach the site |
app_missing | The configured application is not on this terminal: not published, or not yet applied (Register and publish the page) |
- After a fallback the terminal retries the page when idle, no sooner than 60 seconds later.
- The first load of a page has up to 10 seconds. The 3-second
rendereddeadline starts only once a cart has been delivered to the page. GET /v1/terminals/{id}/customer-displayreturns the configuredrenderer, the terminal's last report (actual: {renderer, confirmed, at, reason}) andrecent_fallbacks, each withreason,from(kuvex_hostedorisv_web),app_id,revisionandat. The Dashboard shows the same on the terminal page.
Errors
All error codes: Errors.
| HTTP | Code | Description | Retriable |
|---|---|---|---|
| 400 | display_cart_invalid | Unknown field, value out of range, card-like digits, or cart larger than 16 KB. error.detail.field names the field and error.detail.reason gives the reason. | No |
| 409 | display_revision_conflict | revision is not previous + 1; error.detail.revision is the current revision | No |
| 400 | tip_flow_invalid | tip_flow is not default or off | No |
| 400 | customer_display_invalid | renderer is not native, kuvex_hosted or isv_web, or isv_web without app_id | No |
| 409 | customer_display_runtime_too_old | kuvex_hosted requires Runtime 294 or later on this terminal (kuvex_hosted_available: false) | No |
| 409 | customer_display_app_not_published | The application is not published to this terminal; publish it first | No |
| 409 | customer_display_app_role | The application is not registered with "role":"customer_display" | No |
| 409 | customer_display_app_disabled | Kuvex has disabled the application for customer displays; contact Kuvex support | No |
| 400 | application_role_invalid | role must be app or customer_display | No |
| 400 | idle_screen_invalid | Idle screen setting out of range; error.detail.field names the field | No |
| 403 | scope_forbidden | A browser session token (kvs_) attempted to change the renderer, the idle screen or an application; these require the secret key | No |
| 404 | terminal_not_found | The terminal does not belong to this account | No |
| 429 | rate_limited | Too many writes within a minute. Wait Retry-After seconds and send only the latest cart. | Yes |
Limits
| Item | Limit |
|---|---|
| Cart size | 16 KB |
| Lines per cart | 100 |
| Line note | 80 characters |
| Cart lifetime | 5 minutes |
revision | Previous + 1 |
rendered call | Within 3 seconds of a cart |
| Page load | 10 seconds |
| Page origin | Registered HTTPS origin only |
| Logo | 200 KB, PNG or JPEG |
| Amounts | Integer cents, USD only |