BlockonomicsAPI Reference
Payment Intents
POST/v2/payment_intentsAuth required

Create a payment intent

Creates a payment intent: a fiat amount you want to collect from a customer. The intent is not tied to any cryptocurrency yet. Once the customer picks one, you create a payment quote against the intent.

The intent belongs to one of your stores. If you have more than one store, pass match_callback to choose it. Payment notifications for the intent go to that store's callback URL.

Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.

Request Body

amountintegerrequired

Amount to collect, in the smallest unit of currency (for example cents). 1000 = 10.00 USD.

currencystringrequired

Fiat currency code

match_callbackstring

Part of the callback URL of the store to create the intent in. Matches any store whose callback URL contains this string. Required when you have more than one store.

extra_datastring

Your own reference for the intent, such as an order ID. Returned on the intent, never shown to the payer.

Responses

amountbody · integerrequired

Amount to collect, in the smallest unit of `currency` (for example cents). `1000` = 10.00 USD.

currencybody · stringrequired

Fiat currency code

match_callbackbody · string

Part of the callback URL of the store to create the intent in. Matches any store whose callback URL contains this string. Required when you have more than one store.

extra_databody · string

Your own reference for the intent, such as an order ID. Returned on the intent, never shown to the payer.

Response will appear here