Skip to content

SDKs and tools ​

All endpoints are HTTPS + JSON and can be called without an SDK. The SDKs handle idempotency key generation and reuse, retries, typed errors and webhook signature verification.

SDKPackageRuns inCredentialUse
Browser SDK@kuvex/webBrowserBrowser session token (kvs_)Create payments, use peripherals, receive realtime events from a page
Server SDK@kuvex/nodeNode.js serverSecret key (sk_)All server endpoints, webhook verification, store hosts
Local bridge@kuvex/web/localTerminal WebViewApplication grantIntegration mode 3

Current version for all: 1.1.0.

Browser SDK ​

html
<script src="https://api.kuvex.com/sdk/web/1.1.0/kuvex.js"></script>
bash
# npm-compatible archive; package name @kuvex/web
npm install https://api.kuvex.com/sdk/web/1.1.0/kuvex-web-1.1.0.tgz

Pages use only a kvs_ browser session token issued by your server; the SDK rejects sk_ keys. Usage: Quickstart.

Server SDK ​

bash
npm install https://api.kuvex.com/sdk/node/1.1.0/kuvex-node-1.1.0.tgz
js
const { Kuvex } = require('@kuvex/node');
const kuvex = new Kuvex(process.env.KUVEX_SECRET_KEY);
const payment = await kuvex.payments.create(
  { terminal_id: 'KV100023', amount_cents: 3000 },
  { waitForResult: true }
);
CapabilityDescription
IdempotencyGenerates idempotency keys and reuses them on retry
ErrorsTyped errors carrying the error code
WebhooksVerifies signatures over the raw request bytes
Result waitwaitForResult polls the payment until it is final
kuvex.hosts.*Store host registration, pairing, listing and revocation (server side, since 1.1.0)
KuvexHostStore host side: signs with the host private key to obtain and renew host tokens, exposing only host-token endpoints (since 1.1.0). See Companion mode

Local bridge ​

For authorized sandbox WebViews on the terminal; not yet available in live mode. Ordinary browsers use the browser SDK.

js
const connect = require('@kuvex/web/local');
const local = await connect({ transport: 'local' });
// CDN: /sdk/web/1.1.0/kuvex-local.js, then Kuvex.connect({ transport: 'local' })

Persist the order's idempotency key before creating a payment. After a lost response or page reload, query with getPaymentByRequest(originalKey); if nothing is found, treat the outcome as unknown. Never switch channels or create a new transaction. API: Local JS SDK.

OpenAPI description ​

https://api.kuvex.com/openapi/v1.json: OpenAPI 3.1 description of all public endpoints, from which the official SDKs are generated. Use it to generate clients in other languages or to import into Postman or Insomnia. Internal endpoints (operations, device, processor) are not included.

Version manifest ​

https://api.kuvex.com/sdk/manifest.json: permanent URL and SHA-256 checksum of every published SDK file. Use it to pin versions, verify downloads, or set Subresource Integrity on <script> tags. Published files never change.

AI coding assistants ​

Plain text for AI coding assistants:

URLContents
https://developers.kuvex.com/llms.txtPlain-text API index
https://developers.kuvex.com/llms-full.txtAPI reference and all guides in one plain-text file
Any page URL + .mdThe page's Markdown source, e.g. https://developers.kuvex.com/companion.md

The read-only MCP connector lets AI assistants read merchants and locations (by invitation; it cannot operate terminals).

Support: hello@kuvex.com