Create a Checkout
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes* | Amount in currency units (e.g. 49.99). *Required if no linkId. |
currency | string | No | 'EUR' or 'USD'. Defaults to org settlement currency. |
description | string | No | Shown on checkout page (max 1000 chars). |
linkId | string | No | Create from a payment link template (inherits amount/currency). |
successUrl | string | No | Redirect customer here after payment (HTTPS only). |
cancelUrl | string | No | ”Cancel” link on checkout page (HTTPS only). |
webhookUrl | string | No | Server notification URL for payment events (HTTPS only). |
taxRateId | string | No | UUID of pre-created tax rate. |
expiresIn | number | No | Seconds until expiry (300–86400, default 1800). |
metadata | object | No | Custom key-value data (max 8KB). |
Pre-populate Buyer Info
Skip the checkout form by pre-filling buyer details:| Parameter | Type | Description |
|---|---|---|
buyerEmail | string | Pre-populate email (max 320 chars). |
buyerName | string | Pre-populate name (max 200 chars). |
buyerCompany | string | Pre-populate company (max 200 chars). |
buyerCountry | string | ISO 3166-1 alpha-2, e.g. 'DE' (max 2 chars). |
buyerAddress | string | Pre-populate address (max 500 chars). |
buyerVat | string | Pre-populate VAT number (max 20 chars). |
When to pre-populate: If you already know your customer’s details (e.g. from their account), pre-populate to skip the checkout form. If you don’t, the checkout page will ask them for name and email. Company, VAT, and address are optional but recommended for EU invoicing compliance.
Response
Retrieve a Checkout
List Checkouts
Cancel a Checkout
Cancelling a checkout prevents the customer from paying. If a payment is already in progress on-chain, it may still complete.
From a Payment Link
Payment links are reusable templates. Create a checkout from one to inherit its amount, currency, and configuration:amount, currency, description, taxRateId, successUrl, cancelUrl, and webhookUrl from the link. You can override any of them per-checkout.