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
  • Payment
  • 1. Create a payment
  • 2. Get payment status
  • Payout
  • 1.1. Create a payout via API
  • 1.2. Create a payout via the App
  • 2. Get payout status
  1. Guides

Create payment & make payout via API Reference

PreviousBinance PayNextAPI Reference

Last updated 5 months ago

Payment and payout creation via the API Reference is the fastest way to test the Bitnbox platform. Here's a guide on how to do that.

You can find the currencies and network codes in the .

Make free transactions on test networks — .

Payment

1. Create a payment

  1. Click on “Test it”

  2. Insert your API Key in the “x-api-key” field

  3. Fill in the required invoice properties

    { // example
      "amount": 123, // min 5.00
      "customerId": "<string>", // payer IP
      "customerIp": "<string>",// payer IP
      "orderId": "<string>",// any input
      "platformFeeByUser": false, // who pays the processing fee
      "currency": "usdt", // we recommend using USDT for test payments
      "network": "sepolia" // we recommend using Sepolia or Amoy for test payments
      "webhookUrl": "", // URL for webhook
    }
  4. Click on “Send”

  5. Get the payment address

    { // example
      "amount": 123,
      "payAmount": 123,
      "currency": "usdt",
      "network": "sepolia",
      "payAddress": "0xaf38220a2f436bc6bd3b5a7cb67afc4dfb47f7ae",
      "payQrCodeUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAYAAAB1PADUAAAAAklEQVR4AewaftIAAAS7SURBVO3BQY4bSRAEwfAC//9lXx3zVECjk7MjIczwj1QtOaladFK16KRq0UnVopOqRSdVi06qFp1ULTqpWnRSteikatFJ1aKTqkUnVYt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A01m06qFp1ULTqpWvTJS0B+kpobNTdAJjU3aiYgPwnIpOYJNROQbzqpWnRSteikatEny9RsAvIEkE1AngByo2YCcqNmk5pvOqladFK16KRq0SdfBuQJNZvU3AB5A8ikZgIyAbkB8k1AJjWbTqoWnVQtOqla9Mk/DsiNmgnIJjVPAJnUPAHkRs0EZFLzxknVopOqRSdViz75y6mZgExqboDcqJmATGomIJOaCcik5gkgbwD5ppOqRSdVi06qFn3yZWp+kpobIJOaJ9RMQCY1N2pu1ExAJjUTkEnNBGRSMwHZdFK16KRq0UnVIvwjLwD5SWomIJOaCcikZgIyqbkBMql5AshPUvOTTqoWnVQtOqlahH+kaslJ1aKTqkUnVYtOqhadVC06qVp0UrXopGrRSdWik6pFJ1WLTqoWnVQtOqladFK16D/VQB1MuGoyqAAAAABJRU5ErkJggg==",
      "platformFeeByUser": false,
      "fee": 0.5,
      "id": 8,
      "status": "waiting",
      "additionalData": "test",
      "createdAt": "2024-02-20T14:27:15.729Z"
    }

After this, you can send the crypto to the payment address.

2. Get payment status

  1. Scroll down to the “Get payment status by ID” section

  2. Click on the “Test it” button

  3. Insert your API Key in the “x-api-key” field

  4. Type the payment ID

  5. Click on “Send”

  6. Get the payment status

Also, you can see the payment status on the Transaction History page in the web app.

Payout

1.1. Create a payout via API

  1. Click on “Test it”

  2. Insert your API Key in the “x-api-key” field

  3. Fill in the required payout properties

    {
      "method": "direct"
      "walletAddress" or "binanceId"
      "amount": 50
      "currency": "usdt", // any available currency
      "customerId": "<string>"
      "customerIp": "<string>"
      "feeByUser": false
      "network": "sepolia"
      "walletAddress": "<string>" // recipient's wallet address
    }
  4. Click on “Send”

  5. You will also see the payout status in the app

1.2. Create a payout via the App

  1. Go to the payout page - New Payout

  2. Fill out the required properties

  3. Click on "Transfer"

2. Get payout status

  1. Scroll down

  2. Click on the “Test it” button

  3. Insert your API Key in the “x-api-key” field

  4. Type the payout ID

  5. Click on “Send”

  6. Get the payout status

Also, you can see the payout status on the Transaction History page in the web app.

Go to the page

Go to the page

Go to the page

Go to the page

📖
API Reference
API Reference
API Reference
API Reference
API Glossary
guide