payments:write scope.
Request
POST https://api.blockra.io/payments
Body parameters
The coin the buyer pays in. One of
BTC, LTC, ETH, USDC, or USDT.The amount to charge, expressed in fiat. Blockra locks the live exchange rate and computes the exact crypto amount. Example:
9.99.The fiat currency to price in. One of
USD, EUR, or GBP. Defaults to USD.Your own order or reference ID (max 255 characters). Echoed back on the payment object and in webhook payloads.
Associates the payment with a customer by email. A customer record is created automatically if one does not already exist.
Arbitrary key/value pairs stored on the payment and returned as-is in all responses.
Response
Returns a201 with the newly created payment object wrapped in the standard data envelope.
The payment ID, prefixed
pay_.Lifecycle status:
pending, detected, completed, overpaid, underpaid, expired, failed, or cancelled.The crypto asset (e.g.
LTC).The blockchain network:
bitcoin, litecoin, or ethereum.The fiat currency code.
Gross amount the buyer is charged (fiat).
The Blockra fee in fiat.
Amount credited to your balance (
fiat_amount − fee_fiat).On-chain confirmations seen so far. Always
0 on a freshly created payment.Your reference ID, if provided.
ISO-8601 time the quote expires (30 minutes from creation).
ISO-8601 timestamp when the payment was created.
Where and how much the buyer should send.

