checkout.

Integration

Checkouts and receipts

Create immutable orders and follow their confirmed payment state.

Create an order

POST /v1/checkouts requires merchant authentication. orderId is a non-empty string of at most 120 characters. amount is a positive integer string in token base units. expiresIn is optional, defaults to 900 seconds and must be between 60 and 3600.

JSON
{
  "orderId": "workshop-001",
  "title": "Studio workshop",
  "description": "One workshop booking",
  "amount": "100000",
  "expiresIn": 900
}

Retries and immutable pricing

Reusing an orderId for the same merchant returns the existing checkout only when its amount, title and description match. Changed terms return a conflict. Reuse the original ID after a request timeout. Derive prices from your server-side product data; do not trust an amount supplied by the browser.

Authorize and submit

The bundled checkout handles signing. A custom client calls POST /v1/checkouts/:id/authorization with {payer}, signs the returned EIP-712 typed data, then calls POST /v1/checkouts/:id/pay with {payer, signature}. Verify the chain, token, recipient, amount and deadline before signing. The EIP-3009 nonce binds the checkout terms. The relayer pays gas.

Read the receipt

GET /v1/checkouts/:id returns title, description, merchantName, amount, merchant, buyer, state, refunded, fulfillment, expiresAt, chainId, token, paymentJob and timeline. The checkout UUID grants receipt access: do not encode private customer information in the external order ID.

created
Waiting for a signed payment.
queued
Submitted for processing; not yet confirmed.
paid
Payment confirmed onchain.
partially_refunded / refunded
Confirmed refunds update the cumulative total.
fulfillment
Separate pending, fulfilled or unavailable state.

Handle uncertainty

After a network error, read the existing receipt before asking the customer to sign again. The worker saves signed transaction bytes before broadcast and reuses those bytes after a restart. Expired or failed payments need a reviewed retry; a request timeout alone is not evidence of failure.