Payment Buttons and Checkouts
Embed payment buttons and hosted checkout flows to accept Bitcoin in your website or app.
2 endpoints
The order object
An order created via the Blockonomics payment button or checkout flow.
Attributes
codestringProduct code
xpubstringExtended public key of the wallet
timestampintegerUnix timestamp of the order
currencystringCurrency used to price the order
namestringName of the product
statusintegerStatus of the order
dataobjectAdditional customer data
▶Show nested fields
emailidstringCustomer email ID
namestringCustomer name
addressstringCustomer address
phonestringCustomer phone number
Custom Field1stringCustom field 1
Custom Field2stringCustom field 2
emailidstringMerchant email ID
order_idstringUnique identifier for the order
addressstringBitcoin address for the payment
valueintegerOrder value in fiat currency
descriptionstringOrder description
satoshiintegerOrder value in satoshis
txidstringTransaction ID if payment is made
paid_satoshiintegerAmount paid in satoshis
Example object
{
"code": "",
"xpub": "",
"timestamp": 0,
"currency": "",
"name": "",
"status": 0,
"data": {
"emailid": "",
"name": "",
"address": "",
"phone": "",
"Custom Field1": "",
"Custom Field2": ""
},
"emailid": "",
"order_id": "",
"address": "",
"value": 0,
"description": "",
"satoshi": 0,
"txid": "",
"paid_satoshi": 0
}/merchant_ordersAuth requiredGet all orders
Returns all payment button orders for your account.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Query Parameters
limitintegerdefault: 500The number of records to return
Responses
limitquery · integerThe number of records to return
Response will appear here
/merchant_order/{uuid}Auth requiredGet order details
Returns details of a specific payment button order.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Path Parameters
uuidstringrequiredThe unique identifier of the order
Responses
uuidpath · stringrequiredThe unique identifier of the order
Response will appear here