success_url once the payment confirms. Requires the payments:write scope.
Request
POST https://api.blockra.io/checkout/sessions
Body parameters
number
required
The amount to charge, in fiat. Blockra locks the live exchange rate once the buyer picks a coin. Example:
9.99.string
default:"USD"
The fiat currency to price in. One of
USD, EUR, or GBP. Defaults to your account’s default currency.string
A short description shown on the checkout page (max 255 characters).
string
Your own order or reference ID (max 255 characters). Echoed back on the resulting payment and in webhook payloads.
string
Pre-fills the buyer’s email and associates the payment with a customer record.
string
URL to redirect the buyer to after a successful payment. Falls back to your checkout settings when omitted.
string
URL to redirect the buyer to if they cancel. Falls back to your checkout settings when omitted.
Response
Returns a201 with the session ID and the hosted checkout URL. Redirect your buyer to url.
string
The checkout session ID, prefixed
cs_.string
The hosted checkout page URL — redirect your buyer here.

