Skip to main content
The Browser SDK endpoints let your own website show a merchant’s menu and start a paid session on a device. They are made for browser code and use the publishable SDK key, never a workspace API token.

Setup

  1. Open Dashboard → Integrations → Browser SDK access for your Device Billing merchant.
  2. Generate the Publishable SDK key and copy the SDK merchantId.
  3. Add your website to Allowed origins, for example https://shop.example.com.
Send both values on every request:
Requests from origins that are not in the list are rejected with 403. Requests are rate limited per visitor.

List menu items

Create a transaction

The response contains the order and how to pay it:
Open payment_url (or show qr_code when present) so the customer can pay. Order status is one of pending, processing, paid, expired, or cancelled. Keep the guest_token in the visitor’s browser. It identifies their orders.
Checkout requests are protected by a human verification check and pass its result as turnstile_token. Contact firmngin support to enable verification for your website domain before going live.

List a visitor’s transactions

Supports status, page, and limit (max 100).

Live device events

A Server-Sent Events stream for all of the merchant’s devices. Use it to update availability on your page without polling. Every event includes device_id.