Skip to main content
POST
Buy credits with a machine payment

Headers

idempotency-key
string
required

Identifies the purchase. Send the same value on the unpaid request and on the paid retry; use a new value for a new purchase.

Required string length: 1 - 255
Example:

"6f1f7f0e-2b1a-4f57-9a43-3c1f6f3e8b0d"

Body

application/json
credit_amount_usd
string
required

Credits to buy, in USD with at most two decimals. The platform fee is added on top and shown in the challenge and the receipt.

Example:

"25.00"

Response

Payment accepted; credits are minted when the PaymentIntent succeeds.

data
object
required