Search documentation

Search across BlockBee docs, API endpoints, webhooks and guides.

Process Bulk Payout Requests

View as Markdown

Use this method to efficiently generate and dispatch multiple Payout Requests. This process not only facilitates the creation of one or several Payout Requests but also initiates the Payout, ensuring the automatic transfer of funds.

Once domain verification applies to your account, this request fails while the profile's payout webhook URL is on a domain that isn't verified for the profile. See Domain verification.

Method: POST

Path: https://api.blockbee.io/{ticker}/payout/request/bulk/process/

Parameters

Path Parameters

tickerstring•Required

The ticker parameter in this API request refers to the unique identifier of the cryptocurrency to which you are making the request. It is included in the URL of the request and helps to specify the exact cryptocurrency that you want to retrieve data for. The ticker is typically a short code that uniquely identifies the cryptocurrency, or the token and it's network/blockchain. For example, btc is the ticker for Bitcoin, and trc20/usdt is the ticker for USDT over TRC-20. Having this in mind, a request for USDT over TRC-20 will look like this: https://api.blockbee.io/trc20/usdt/create/.

Notes:

  • You can find all our tickers in our cryptocurrencies page.
  • Our Payouts system does not support doge.

Query Parameters

apikeystring•Required

API Key provided by BlockBee's Dashboard. Unsure how to get yours? Check this tutorial.

Note:

  • The API key can also be sent as a header named apikey.

Request Body

This endpoint requires a JSON request body with the payout requests.

Note: The request Content-Type header must be set to application/json.

JSON
{
  "outputs": {
    "0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d": 0.2,
    "0x18B211A1Ba5880C7d62C250B6441C2400d588589": 0.1
  }
}

Returns

Returns information about the created payout and its status.

statusstring

Status of the request. Should be success if the request didn't fail.

payout_infoobject

An object containing detailed information about the payout.

idstring

Unique identifier for the payout.

statusstring

The status of the Payout. Can be created, processing, done, rejected, expired, or error.

The status of the Payout. Can be Created, Pending Payment, Done, Rejected, Expired, or Error.

fromstring

Source address for the payout, if applicable.

requestsobject

A mapping of destination addresses to the amount requested for each.

Total cryptocurrency amount requested.

Total cryptocurrency amount including the fee.

errorstring

The error message. This field is always present but is empty unless the payout status is error or expired.

The fee paid to the blockchain for the transaction.

feestring

Fee associated with the transaction.

coinstring

Cryptocurrency ticker for the transaction.

txidstring

Transaction ID, available once the payout is fulfilled.

timestampstring

Timestamp when the payout was created.

queuedboolean

Indicates whether the payout is queued for processing.

Errors

Besides the common errors (API key, IP whitelist, domain verification, maintenance, unsupported network or token), this endpoint can return:

ErrorHTTPCause
Coin not available400ticker is unknown or isn't enabled for payouts. Tickers are lowercase.
This endpoint is for API key v2 only400Your API key isn't an API Key V2.
No outputs sent400The body is missing, isn't JSON, or has keys other than outputs.
Value needs to be a decimal400An amount in outputs isn't a number.
Value needs to be greater than 0400An amount in outputs is 0 or negative.
Address is empty400An address in outputs is an empty string.
Invalid address 0x123...400The address named in the message isn't a valid destination for this network. We create no requests.
Failed to create payout400outputs is an empty object.
Could not generate address400We couldn't create your payout wallet for this network. Retry later.
API key incorrect400Your API key failed verification.
Your request couldn't be processed, please try again later400A temporary error. Retry later.
API down for maintenance, please check back in a few minutes400Payouts on this network are down for maintenance. Retry later.
Not enough balance400Your payout wallet holds less than the payout total plus the fee.
Not enough ETH balance400Your payout wallet doesn't hold enough of the network's native coin to pay the network fee. The message names the coin, such as BNB, SOL, TRX or TON.
Output address 0x123... is a burn address400A destination is a burn address.
Output address 0x123... is a token contract400A destination is a token contract address.
Output address UQ... is the payout wallet itself400TON: a destination is your own payout wallet.
Invalid amount for output UQ...: more precision than the token has400TON: an amount is smaller than the token's smallest unit.

When you get Could not generate address or any error below it, we have already created the payout requests and a created payout. The error doesn't include the payout ID: find the payout with List Payouts and retry it with Process Payout by ID. Other temporary errors can occur while sending; retry them the same way.