Bitnbox Docs
Merchant Experience
Merchant Experience
  • Introduction
  • 馃敭Overview
    • Getting Started with Bitnbox
    • Payments
      • TX Types & Payment Methods
      • Supported currencies and networks
      • Fees & Limits
      • Compliance
    • Bitnbox App
      • User Account
      • Merchant Dashboard
  • 馃Help & Support
    • Glossary
    • FAQ
    • Case Sensitivity of Blockchain Addresses
    • Edge Cases
  • 馃摉Guides
    • API Key Set Up
    • Webhooks Set Up
    • API Glossary
    • Test Mode
    • Binance Pay
    • Create payment & make payout via API Reference
  • 馃捇API Reference
    • Payment
    • Payout
  • 馃啎Changelog
Powered by GitBook
On this page
  1. API Reference

Payment

PreviousAPI ReferenceNextPayout

Last updated 9 months ago

To test the API, make sure to include x-api-key in the header with your API key.

馃捇

Get payment status by id

get

Get the actual information about the payment. You need to provide the ID of the payment in the request.

Authorizations
Path parameters
idstringRequired

Unique identifier of the payment

Responses
200
200
application/json
get
GET /v1/payment/{id}/status HTTP/1.1
Host: api.bitnbox.io
x-api-key: YOUR_API_KEY
Accept: */*
200

200

{
  "paymentId": "123e4567-e89b-12d3-a456-426614174000",
  "method": "direct",
  "status": "waiting",
  "payAmount": 1,
  "payAddress": "text",
  "payQrCodeUri": "text",
  "payCheckoutUrl": "text",
  "currency": "text",
  "network": "text",
  "customerId": "text",
  "customerIp": "text",
  "orderId": "text",
  "additionalData": "text",
  "processingFeeByUser": true,
  "createdAt": "2025-05-19T07:23:55.521Z",
  "updatedAt": "2025-05-19T07:23:55.521Z",
  "expiredAt": "2025-05-19T07:23:55.521Z",
  "webhookUrl": "https://example.com",
  "description": "text",
  "paidAmount": 1,
  "merchantAmount": 1,
  "paidAddress": "text"
}
  • POSTCreate payment
  • GETGet payment status by id

Create payment

post

Creates a payment link. You need to provide the amount and the currency of the payment in the request.

Authorizations
Body

Payment creation request body

methodstring 路 enumOptional

A method to receive a payment (on-chain or via Binance Pay).

Default: directPossible values:
amountnumberRequired

The amount you want to receive from your customer.

processingFeeByUserbooleanRequired

If true, the initial amount will be increased to cover the platform fee.

currencystring 路 min: 1Required

Specifies the cryptocurrency for the payment via tickers (refer to API glossary).

networkstring 路 min: 1Required

Specifies the blockchain network for the payment via tickers (refer to API glossary).

customerIdstring 路 min: 1Required

Customer's ID for security purposes.

customerIpstring 路 min: 1Required

The customer's IP address, recorded for compliance purposes.

orderIdstring 路 min: 1Required
orderDescriptionstring 路 min: 1Required

Order description

additionalDatastringOptional

Additional information related to the payment, if needed.

webhookUrlstringOptional

An optional URL where transaction status updates and payment notifications will be sent.

Responses
201
201
application/json
500
500
application/json
post
POST /v1/payment HTTP/1.1
Host: api.bitnbox.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 293

{
  "method": "direct",
  "amount": 1,
  "processingFeeByUser": true,
  "currency": "text",
  "network": "text",
  "customerId": "text",
  "customerIp": "text",
  "orderId": "text",
  "orderDescription": "text",
  "additionalData": "text",
  "webhookUrl": "text",
  "products": [
    {
      "id": "text",
      "type": "01",
      "name": "text",
      "description": "text"
    }
  ]
}
{
  "paymentId": "123e4567-e89b-12d3-a456-426614174000",
  "method": "direct",
  "status": "waiting",
  "payAmount": 1,
  "payAddress": "text",
  "payQrCodeUri": "text",
  "payCheckoutUrl": "text",
  "currency": "text",
  "network": "text",
  "customerId": "text",
  "customerIp": "text",
  "orderId": "text",
  "additionalData": "text",
  "processingFeeByUser": true,
  "createdAt": "2025-05-19T07:23:55.521Z",
  "updatedAt": "2025-05-19T07:23:55.521Z",
  "expiredAt": "2025-05-19T07:23:55.521Z",
  "webhookUrl": "https://example.com",
  "description": "text"
}