BlockonomicsAPI Reference

Payment Buttons and Checkouts

Embed payment buttons and hosted checkout flows to accept Bitcoin in your website or app.

2 endpoints

object

The order object

An order created via the Blockonomics payment button or checkout flow.

Attributes

codestring

Product code

xpubstring

Extended public key of the wallet

timestampinteger

Unix timestamp of the order

currencystring

Currency used to price the order

namestring

Name of the product

statusinteger

Status of the order

dataobject

Additional customer data

Show nested fields
emailidstring

Customer email ID

namestring

Customer name

addressstring

Customer address

phonestring

Customer phone number

Custom Field1string

Custom field 1

Custom Field2string

Custom field 2

emailidstring

Merchant email ID

order_idstring

Unique identifier for the order

addressstring

Bitcoin address for the payment

valueinteger

Order value in fiat currency

descriptionstring

Order description

satoshiinteger

Order value in satoshis

txidstring

Transaction ID if payment is made

paid_satoshiinteger

Amount 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
}