The banks payouts can go to, with their codes

get/v1/banks

Responses

  • 200The banksobject
    Show the fields
    object"list"
    has_moreboolean
    dataarray of object
    Fields of data
    codestring
    namestring
bash
curl https://sandbox.api.biftpay.com/v1/banks \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "has_more": true,
  "data": [
    {
      "code": "058",
      "name": "Guaranty Trust Bank (GTBank)"
    }
  ]
}

Check an account with its bank (name enquiry) without saving it

post/v1/bank_accounts/lookup

Shows whose account it is, so the person can check before adding it.

Parameters

Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

bank_codestringrequired
account_numberstringrequired

Responses

  • 200The account's name at the bankobject
    Show the fields
    object"bank_account_lookup"
    bank_codestring
    bank_namestring
    account_namestring
    account_number_last4string
  • 400Invalid request
bash
curl -X POST https://sandbox.api.biftpay.com/v1/bank_accounts/lookup \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "bank_code": "058",
    "account_number": "0123456789"
  }'
response
{
  "object": "bank_account_lookup",
  "bank_code": "…",
  "bank_name": "…",
  "account_name": "ADEYEMI KEMI O.",
  "account_number_last4": "…"
}

List bank accounts

get/v1/bank_accounts

Parameters

purposesettlement | recipientin query

Only settlement accounts, or only recipients.

Responses

  • 200Registered bank accountsobject
    Show the fields
    object"list"
    dataarray of BankAccount
    Fields of data
    idstring (uuid)
    object"bank_account"
    livemodeboolean
    bank_codestring
    bank_namestring
    account_number_last4string
    account_namestring

    As returned by the bank's name enquiry.

    purposesettlement | recipient

    settlement: the business's own account, where settlement can go. recipient: someone the business pays (saved by a payout to a new account).

    verified_atstring (date-time)
    created_atstring (date-time)
    has_moreboolean
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/bank_accounts \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "…",
      "object": "bank_account",
      "livemode": true,
      "bank_code": "058",
      "bank_name": "GTBank",
      "account_number_last4": "6789",
      "account_name": "SANDBOX ACCOUNT 6789",
      "purpose": "settlement",
      "verified_at": "…",
      "created_at": "…"
    }
  ],
  "has_more": true
}

Register a bank account

post/v1/bank_accounts

The account is checked with the bank (name enquiry) before it is saved, and the account name the bank returns is what is stored and shown. Adding the same account again returns the existing one. purpose says what it's for: settlement (default), the business's own account settlement can go to, or recipient, someone the business pays. A recipient added again as a settlement account becomes one.

Parameters

Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

bank_codestringrequired

The bank's code, from GET /v1/banks.

account_numberstringrequired

10-digit NUBAN

purposesettlement | recipient

settlement: the business's own account, where settlement can go. recipient: someone the business pays (saved by a payout to a new account).

otpobject or object

Required when a signed-in user (not an API key) adds the account: the code from POST /v1/payouts/otp, or the user's authenticator app.

Responses

  • 201The verified bank accountBankAccount
    Show the fields
    idstring (uuid)
    object"bank_account"
    livemodeboolean
    bank_codestring
    bank_namestring
    account_number_last4string
    account_namestring

    As returned by the bank's name enquiry.

    purposesettlement | recipient

    settlement: the business's own account, where settlement can go. recipient: someone the business pays (saved by a payout to a new account).

    verified_atstring (date-time)
    created_atstring (date-time)
  • 400Invalid request
  • 401Missing or invalid API key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/bank_accounts \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "bank_code": "058",
    "account_number": "0123456789"
  }'
response
{
  "id": "…",
  "object": "bank_account",
  "livemode": true,
  "bank_code": "058",
  "bank_name": "GTBank",
  "account_number_last4": "6789",
  "account_name": "SANDBOX ACCOUNT 6789",
  "purpose": "settlement",
  "verified_at": "…",
  "created_at": "…"
}

Remove a bank account

post/v1/bank_accounts/{id}/delete

It can't be chosen again; its payouts keep it. Not while settlement goes there or is about to (409).

Parameters

idstring (uuid)in pathrequired

Responses

  • 200The removed accountobject
    Show the fields
    idstring (uuid)
    object"bank_account"
    livemodeboolean
    bank_codestring
    bank_namestring
    account_number_last4string
    account_namestring

    As returned by the bank's name enquiry.

    purposesettlement | recipient

    settlement: the business's own account, where settlement can go. recipient: someone the business pays (saved by a payout to a new account).

    verified_atstring (date-time)
    created_atstring (date-time)
    deletedtrue
  • 401Missing or invalid API key
  • 404Not found, or not visible to this key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/bank_accounts/{id}/delete \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)"
response
{
  "id": "…",
  "object": "bank_account",
  "livemode": true,
  "bank_code": "058",
  "bank_name": "GTBank",
  "account_number_last4": "6789",
  "account_name": "SANDBOX ACCOUNT 6789",
  "purpose": "settlement",
  "verified_at": "…",
  "created_at": "…",
  "deleted": true
}

List payouts

get/v1/payouts

Parameters

limitintegerin query

1 to 100 · default 20

starting_afterstring (uuid)in query

The id of the last item on the previous page.

qstringin query

Search: the payout id, the bank's reference, the account number's last 4, or part of the account's name or the narration.

up to 100 characters

statusawaiting_approval | queued | processing | paid | failed | canceledin query

Only payouts in this status.

Responses

  • 200A page of payoutsPayoutList
    Show the fields
    object"list"
    dataarray of Payout
    Fields of data
    idstring (uuid)

    Also the reference sent to the bank.

    object"payout"
    livemodeboolean
    amountinteger

    Minor units (kobo, cents).

    at least 0

    feeinteger

    Minor units (kobo, cents).

    at least 0

    vatinteger

    Minor units (kobo, cents).

    at least 0

    total_debitedinteger

    amount + fee + vat

    at least 0

    currencyNGN | USD
    statusawaiting_approval | queued | processing | paid | failed | canceled

    awaiting_approval (Biftpay is reviewing it first, e.g. a large amount) -> queued -> processing (sent, waiting for the bank's confirmation) -> paid or failed. canceled is only possible before sending.

    narrationstring | null
    brandstring (uuid)

    The brand whose balance pays it.

    review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jump

    Why Biftpay is checking it before it's sent (status awaiting_approval); empty otherwise. new_bank_account - the first payout to an account added in the last 24 hours; account_review - the business or brand is under review, or several disputes arrived this week; security_change - a password or authenticator change by the requester, or a settlement account change, in the last 24 hours; unusual - far larger than this merchant has paid out before, or most of the balance after 30 quiet days; amount - over an approval threshold Biftpay set for this merchant; many_recipients - to someone else's account, with 20 or more new recipients paid in the last 24 hours; volume_jump - to someone else's account, with the last 24 hours' payouts to others over 5x the usual day.

    bank_accountobject
    approved_atstring (date-time) | null
    failure_codestring | null
    bank_referencestring | null

    The bank network's reference (NIP session id), as on the recipient's statement; null until the payout provider gives it.

    created_atstring (date-time)
    paid_atstring (date-time) | null
    failed_atstring (date-time) | null
    canceled_atstring (date-time) | null
    batchstring (uuid) | null

    The bulk payout it was part of.

    has_moreboolean
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/payouts \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "…",
      "object": "payout",
      "livemode": true,
      "amount": 0,
      "fee": 0,
      "vat": 0,
      "total_debited": 0,
      "currency": "NGN",
      "status": "awaiting_approval",
      "bank_account": {
        "id": "…",
        "bank_name": "GTBank",
        "account_number_last4": "6789",
        "account_name": "SANDBOX ACCOUNT 6789"
      },
      "created_at": "…"
    }
  ],
  "has_more": true
}

Pay out to a registered bank account

post/v1/payouts

Moves amount + fee + VAT from available to payout_in_flight in the same step that records the payout, so a short balance fails with 409 insufficient_funds and nothing is written. While the business owes Biftpay from a lost chargeback (owed on the balance), it's paid back from available first; if some is still owed the payout fails with 409 balance_owed. Payouts at or above the merchant's approval threshold wait for Biftpay's review (awaiting_approval). The outcome is settled only from the bank's status query: paid, or failed with the funds returned to available.

In test mode, account numbers ending in 9999 fail after sending, 7777 are rejected by the provider, and 8888 stay processing.

Parameters

Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

amountintegerrequired

at least 1

currencyNGN | USDrequired
bank_account_idstring (uuid)

A saved, name-checked account. Send this or new_bank_account.

new_bank_accountobject

A new account to pay: checked with its bank and saved as a recipient in the same step (needs bank_accounts:write).

Fields of new_bank_account
bank_codestringrequired
account_numberstringrequired
narrationstring

up to 100 characters

brandstring (uuid)

Pay out of this brand's balance. Defaults to the business's own brand.

otpobject or object

Required when a signed-in user (not an API key) requests the payout. From POST /v1/payouts/otp.

Responses

  • 201CreatedPayout
    Show the fields
    idstring (uuid)

    Also the reference sent to the bank.

    object"payout"
    livemodeboolean
    amountinteger

    Minor units (kobo, cents).

    at least 0

    feeinteger

    Minor units (kobo, cents).

    at least 0

    vatinteger

    Minor units (kobo, cents).

    at least 0

    total_debitedinteger

    amount + fee + vat

    at least 0

    currencyNGN | USD
    statusawaiting_approval | queued | processing | paid | failed | canceled

    awaiting_approval (Biftpay is reviewing it first, e.g. a large amount) -> queued -> processing (sent, waiting for the bank's confirmation) -> paid or failed. canceled is only possible before sending.

    narrationstring | null
    brandstring (uuid)

    The brand whose balance pays it.

    review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jump

    Why Biftpay is checking it before it's sent (status awaiting_approval); empty otherwise. new_bank_account - the first payout to an account added in the last 24 hours; account_review - the business or brand is under review, or several disputes arrived this week; security_change - a password or authenticator change by the requester, or a settlement account change, in the last 24 hours; unusual - far larger than this merchant has paid out before, or most of the balance after 30 quiet days; amount - over an approval threshold Biftpay set for this merchant; many_recipients - to someone else's account, with 20 or more new recipients paid in the last 24 hours; volume_jump - to someone else's account, with the last 24 hours' payouts to others over 5x the usual day.

    bank_accountobject
    Fields of bank_account
    idstring (uuid)
    bank_namestring
    account_number_last4string
    account_namestring
    approved_atstring (date-time) | null
    failure_codestring | null
    bank_referencestring | null

    The bank network's reference (NIP session id), as on the recipient's statement; null until the payout provider gives it.

    created_atstring (date-time)
    paid_atstring (date-time) | null
    failed_atstring (date-time) | null
    canceled_atstring (date-time) | null
    batchstring (uuid) | null

    The bulk payout it was part of.

  • 400Invalid request
  • 401Missing or invalid API key
  • 409The object is in a state that doesn't allow this
  • 422Idempotency-Key reused with a different request
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payouts \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 500000,
    "currency": "NGN"
  }'
response
{
  "id": "…",
  "object": "payout",
  "livemode": true,
  "amount": 0,
  "fee": 0,
  "vat": 0,
  "total_debited": 0,
  "currency": "NGN",
  "status": "awaiting_approval",
  "bank_account": {
    "id": "…",
    "bank_name": "GTBank",
    "account_number_last4": "6789",
    "account_name": "SANDBOX ACCOUNT 6789"
  },
  "created_at": "…"
}

Retrieve a payout

get/v1/payouts/{id}

Parameters

idstring (uuid)in pathrequired

Responses

  • 200The payoutPayout
    Show the fields
    idstring (uuid)

    Also the reference sent to the bank.

    object"payout"
    livemodeboolean
    amountinteger

    Minor units (kobo, cents).

    at least 0

    feeinteger

    Minor units (kobo, cents).

    at least 0

    vatinteger

    Minor units (kobo, cents).

    at least 0

    total_debitedinteger

    amount + fee + vat

    at least 0

    currencyNGN | USD
    statusawaiting_approval | queued | processing | paid | failed | canceled

    awaiting_approval (Biftpay is reviewing it first, e.g. a large amount) -> queued -> processing (sent, waiting for the bank's confirmation) -> paid or failed. canceled is only possible before sending.

    narrationstring | null
    brandstring (uuid)

    The brand whose balance pays it.

    review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jump

    Why Biftpay is checking it before it's sent (status awaiting_approval); empty otherwise. new_bank_account - the first payout to an account added in the last 24 hours; account_review - the business or brand is under review, or several disputes arrived this week; security_change - a password or authenticator change by the requester, or a settlement account change, in the last 24 hours; unusual - far larger than this merchant has paid out before, or most of the balance after 30 quiet days; amount - over an approval threshold Biftpay set for this merchant; many_recipients - to someone else's account, with 20 or more new recipients paid in the last 24 hours; volume_jump - to someone else's account, with the last 24 hours' payouts to others over 5x the usual day.

    bank_accountobject
    Fields of bank_account
    idstring (uuid)
    bank_namestring
    account_number_last4string
    account_namestring
    approved_atstring (date-time) | null
    failure_codestring | null
    bank_referencestring | null

    The bank network's reference (NIP session id), as on the recipient's statement; null until the payout provider gives it.

    created_atstring (date-time)
    paid_atstring (date-time) | null
    failed_atstring (date-time) | null
    canceled_atstring (date-time) | null
    batchstring (uuid) | null

    The bulk payout it was part of.

  • 401Missing or invalid API key
  • 404Not found, or not visible to this key
bash
curl https://sandbox.api.biftpay.com/v1/payouts/{id} \
  -H "Authorization: Bearer bp_test_..."
response
{
  "id": "…",
  "object": "payout",
  "livemode": true,
  "amount": 0,
  "fee": 0,
  "vat": 0,
  "total_debited": 0,
  "currency": "NGN",
  "status": "awaiting_approval",
  "bank_account": {
    "id": "…",
    "bank_name": "GTBank",
    "account_number_last4": "6789",
    "account_name": "SANDBOX ACCOUNT 6789"
  },
  "created_at": "…"
}

Cancel a payout before it is sent

post/v1/payouts/{id}/cancel

Only awaiting_approval and queued payouts can be canceled. The held funds return to available.

Parameters

idstring (uuid)in pathrequired
Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Responses

  • 200The canceled payoutPayout
    Show the fields
    idstring (uuid)

    Also the reference sent to the bank.

    object"payout"
    livemodeboolean
    amountinteger

    Minor units (kobo, cents).

    at least 0

    feeinteger

    Minor units (kobo, cents).

    at least 0

    vatinteger

    Minor units (kobo, cents).

    at least 0

    total_debitedinteger

    amount + fee + vat

    at least 0

    currencyNGN | USD
    statusawaiting_approval | queued | processing | paid | failed | canceled

    awaiting_approval (Biftpay is reviewing it first, e.g. a large amount) -> queued -> processing (sent, waiting for the bank's confirmation) -> paid or failed. canceled is only possible before sending.

    narrationstring | null
    brandstring (uuid)

    The brand whose balance pays it.

    review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jump

    Why Biftpay is checking it before it's sent (status awaiting_approval); empty otherwise. new_bank_account - the first payout to an account added in the last 24 hours; account_review - the business or brand is under review, or several disputes arrived this week; security_change - a password or authenticator change by the requester, or a settlement account change, in the last 24 hours; unusual - far larger than this merchant has paid out before, or most of the balance after 30 quiet days; amount - over an approval threshold Biftpay set for this merchant; many_recipients - to someone else's account, with 20 or more new recipients paid in the last 24 hours; volume_jump - to someone else's account, with the last 24 hours' payouts to others over 5x the usual day.

    bank_accountobject
    Fields of bank_account
    idstring (uuid)
    bank_namestring
    account_number_last4string
    account_namestring
    approved_atstring (date-time) | null
    failure_codestring | null
    bank_referencestring | null

    The bank network's reference (NIP session id), as on the recipient's statement; null until the payout provider gives it.

    created_atstring (date-time)
    paid_atstring (date-time) | null
    failed_atstring (date-time) | null
    canceled_atstring (date-time) | null
    batchstring (uuid) | null

    The bulk payout it was part of.

  • 404Not found, or not visible to this key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payouts/{id}/cancel \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)"
response
{
  "id": "…",
  "object": "payout",
  "livemode": true,
  "amount": 0,
  "fee": 0,
  "vat": 0,
  "total_debited": 0,
  "currency": "NGN",
  "status": "awaiting_approval",
  "bank_account": {
    "id": "…",
    "bank_name": "GTBank",
    "account_number_last4": "6789",
    "account_name": "SANDBOX ACCOUNT 6789"
  },
  "created_at": "…"
}

List bulk payouts

get/v1/payout_batches

Newest first, without their rows.

Parameters

limitintegerin query

1 to 100 · default 20

Responses

  • 200Bulk payoutsobject
    Show the fields
    object"list"
    dataarray of PayoutBatchSummary
    Fields of data
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    has_moreboolean
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/payout_batches \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "…",
      "object": "payout_batch",
      "livemode": true,
      "name": "…",
      "status": "checking",
      "created_at": "…",
      "counts": {
        "items": 1000,
        "pending": 1000,
        "verified": 1000,
        "failed": 1000,
        "duplicates": 1000,
        "removed": 1000,
        "paid": 1000,
        "in_progress": 1000,
        "payouts_failed": 1000
      },
      "amount": 0,
      "paid_amount": 0,
      "currency": "NGN"
    }
  ],
  "has_more": true
}

Upload a bulk payout

post/v1/payout_batches

Many payouts at once (salaries, vendors), up to 1,000 rows. Nothing is paid yet: each row's account is checked with its bank in the background (status: checking, then ready). Rows whose account the bank doesn't know are failed; remove them, then submit. A row with the same account and amount as an earlier one is flagged with duplicate_of_line. Needs payouts:write and bank_accounts:write.

In test mode, account numbers ending in 0000 fail the check.

Parameters

Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

namestringrequired

What it's for, e.g. October salaries. Also the narration of rows without their own.

up to 100 characters

brandstring (uuid)

The brand whose balance pays it.

itemsarray of objectrequired
Fields of items
bank_codestringrequired
account_numberstringrequired
amountintegerrequired

In kobo.

at least 1

narrationstring

up to 100 characters

referencestring

Your own reference for the row (staff ID, invoice number).

up to 100 characters

Responses

  • 201CreatedPayoutBatch
    Show the fields
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    Fields of counts
    itemsinteger
    pendinginteger
    verifiedinteger
    failedinteger
    duplicatesinteger
    removedinteger
    paidinteger
    in_progressinteger
    payouts_failedinteger
    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    needs_second_approverboolean

    Someone other than the uploader must submit it.

    can_submit_as_youboolean
    quoteobject | null

    Before submitting, what it costs and whether it can go now. Null once submitted or canceled.

    Fields of quote
    fee_eachinteger

    Minor units (kobo, cents).

    at least 0

    vat_eachinteger

    Minor units (kobo, cents).

    at least 0

    fee_with_vat_eachinteger

    What each payout costs: its fee and the VAT on it.

    at least 0

    feesinteger

    Fees and VAT for every row.

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    sufficientboolean
    within_limitsboolean
    over_per_payout_limitboolean
    over_daily_limitboolean
    over_third_party_limitboolean

    Over the limit for payouts to other people's accounts.

    limitsobject
    itemsarray of object
    Fields of items
    idstring (uuid)
    lineinteger
    bank_codestring
    bank_namestring | null
    account_number_last4string
    account_namestring | null

    The name the bank gave, once checked.

    amountinteger

    Minor units (kobo, cents).

    at least 0

    narrationstring | null
    referencestring | null
    duplicate_of_lineinteger | null
    check_statuspending | verified | failed
    check_messagestring | null
    removedboolean
    payoutobject | null
  • 400Invalid request
  • 401Missing or invalid API key
  • 422Idempotency-Key reused with a different request
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "…",
    "items": [
      {
        "bank_code": "058",
        "account_number": "0123456789",
        "amount": 1
      }
    ]
  }'
response
{
  "id": "…",
  "object": "payout_batch",
  "livemode": true,
  "name": "…",
  "status": "checking",
  "created_at": "…",
  "counts": {
    "items": 1000,
    "pending": 1000,
    "verified": 1000,
    "failed": 1000,
    "duplicates": 1000,
    "removed": 1000,
    "paid": 1000,
    "in_progress": 1000,
    "payouts_failed": 1000
  },
  "amount": 0,
  "paid_amount": 0,
  "currency": "NGN",
  "needs_second_approver": true,
  "can_submit_as_you": true,
  "quote": {
    "fee_each": 0,
    "vat_each": 0,
    "fee_with_vat_each": 0,
    "fees": 0,
    "total_debited": 0,
    "available": 0,
    "sufficient": true,
    "within_limits": true,
    "over_per_payout_limit": true,
    "over_daily_limit": true,
    "limits": {
      "per_payout": 1000,
      "daily": 1000,
      "used_today": 1000,
      "third_party": {
        "approved": true,
        "daily": 1000,
        "used_today": 1000
      }
    }
  },
  "items": [
    {
      "id": "…",
      "line": 1000,
      "bank_code": "…",
      "bank_name": "…",
      "account_number_last4": "…",
      "account_name": "…",
      "amount": 0,
      "narration": "…",
      "reference": "…",
      "duplicate_of_line": 1000,
      "check_status": "pending",
      "check_message": "…",
      "removed": true,
      "payout": {
        "id": "…",
        "status": "awaiting_approval",
        "failure_code": "…"
      }
    }
  ]
}

Retrieve a bulk payout

get/v1/payout_batches/{id}

With its rows, and before submitting, what it will cost (quote) and whether the balance and limits allow it.

Parameters

idstring (uuid)in pathrequired

Responses

  • 200The bulk payoutPayoutBatch
    Show the fields
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    Fields of counts
    itemsinteger
    pendinginteger
    verifiedinteger
    failedinteger
    duplicatesinteger
    removedinteger
    paidinteger
    in_progressinteger
    payouts_failedinteger
    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    needs_second_approverboolean

    Someone other than the uploader must submit it.

    can_submit_as_youboolean
    quoteobject | null

    Before submitting, what it costs and whether it can go now. Null once submitted or canceled.

    Fields of quote
    fee_eachinteger

    Minor units (kobo, cents).

    at least 0

    vat_eachinteger

    Minor units (kobo, cents).

    at least 0

    fee_with_vat_eachinteger

    What each payout costs: its fee and the VAT on it.

    at least 0

    feesinteger

    Fees and VAT for every row.

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    sufficientboolean
    within_limitsboolean
    over_per_payout_limitboolean
    over_daily_limitboolean
    over_third_party_limitboolean

    Over the limit for payouts to other people's accounts.

    limitsobject
    itemsarray of object
    Fields of items
    idstring (uuid)
    lineinteger
    bank_codestring
    bank_namestring | null
    account_number_last4string
    account_namestring | null

    The name the bank gave, once checked.

    amountinteger

    Minor units (kobo, cents).

    at least 0

    narrationstring | null
    referencestring | null
    duplicate_of_lineinteger | null
    check_statuspending | verified | failed
    check_messagestring | null
    removedboolean
    payoutobject | null
  • 404Not found, or not visible to this key
bash
curl https://sandbox.api.biftpay.com/v1/payout_batches/{id} \
  -H "Authorization: Bearer bp_test_..."
response
{
  "id": "…",
  "object": "payout_batch",
  "livemode": true,
  "name": "…",
  "status": "checking",
  "created_at": "…",
  "counts": {
    "items": 1000,
    "pending": 1000,
    "verified": 1000,
    "failed": 1000,
    "duplicates": 1000,
    "removed": 1000,
    "paid": 1000,
    "in_progress": 1000,
    "payouts_failed": 1000
  },
  "amount": 0,
  "paid_amount": 0,
  "currency": "NGN",
  "needs_second_approver": true,
  "can_submit_as_you": true,
  "quote": {
    "fee_each": 0,
    "vat_each": 0,
    "fee_with_vat_each": 0,
    "fees": 0,
    "total_debited": 0,
    "available": 0,
    "sufficient": true,
    "within_limits": true,
    "over_per_payout_limit": true,
    "over_daily_limit": true,
    "limits": {
      "per_payout": 1000,
      "daily": 1000,
      "used_today": 1000,
      "third_party": {
        "approved": true,
        "daily": 1000,
        "used_today": 1000
      }
    }
  },
  "items": [
    {
      "id": "…",
      "line": 1000,
      "bank_code": "…",
      "bank_name": "…",
      "account_number_last4": "…",
      "account_name": "…",
      "amount": 0,
      "narration": "…",
      "reference": "…",
      "duplicate_of_line": 1000,
      "check_status": "pending",
      "check_message": "…",
      "removed": true,
      "payout": {
        "id": "…",
        "status": "awaiting_approval",
        "failure_code": "…"
      }
    }
  ]
}

Remove a row before submitting

post/v1/payout_batches/{id}/items/{itemId}/remove

Parameters

idstring (uuid)in pathrequired
itemIdstring (uuid)in pathrequired

Responses

  • 200The bulk payoutPayoutBatch
    Show the fields
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    Fields of counts
    itemsinteger
    pendinginteger
    verifiedinteger
    failedinteger
    duplicatesinteger
    removedinteger
    paidinteger
    in_progressinteger
    payouts_failedinteger
    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    needs_second_approverboolean

    Someone other than the uploader must submit it.

    can_submit_as_youboolean
    quoteobject | null

    Before submitting, what it costs and whether it can go now. Null once submitted or canceled.

    Fields of quote
    fee_eachinteger

    Minor units (kobo, cents).

    at least 0

    vat_eachinteger

    Minor units (kobo, cents).

    at least 0

    fee_with_vat_eachinteger

    What each payout costs: its fee and the VAT on it.

    at least 0

    feesinteger

    Fees and VAT for every row.

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    sufficientboolean
    within_limitsboolean
    over_per_payout_limitboolean
    over_daily_limitboolean
    over_third_party_limitboolean

    Over the limit for payouts to other people's accounts.

    limitsobject
    itemsarray of object
    Fields of items
    idstring (uuid)
    lineinteger
    bank_codestring
    bank_namestring | null
    account_number_last4string
    account_namestring | null

    The name the bank gave, once checked.

    amountinteger

    Minor units (kobo, cents).

    at least 0

    narrationstring | null
    referencestring | null
    duplicate_of_lineinteger | null
    check_statuspending | verified | failed
    check_messagestring | null
    removedboolean
    payoutobject | null
  • 404Not found, or not visible to this key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches/{id}/items/{itemId}/remove \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)"
response
{
  "id": "…",
  "object": "payout_batch",
  "livemode": true,
  "name": "…",
  "status": "checking",
  "created_at": "…",
  "counts": {
    "items": 1000,
    "pending": 1000,
    "verified": 1000,
    "failed": 1000,
    "duplicates": 1000,
    "removed": 1000,
    "paid": 1000,
    "in_progress": 1000,
    "payouts_failed": 1000
  },
  "amount": 0,
  "paid_amount": 0,
  "currency": "NGN",
  "needs_second_approver": true,
  "can_submit_as_you": true,
  "quote": {
    "fee_each": 0,
    "vat_each": 0,
    "fee_with_vat_each": 0,
    "fees": 0,
    "total_debited": 0,
    "available": 0,
    "sufficient": true,
    "within_limits": true,
    "over_per_payout_limit": true,
    "over_daily_limit": true,
    "limits": {
      "per_payout": 1000,
      "daily": 1000,
      "used_today": 1000,
      "third_party": {
        "approved": true,
        "daily": 1000,
        "used_today": 1000
      }
    }
  },
  "items": [
    {
      "id": "…",
      "line": 1000,
      "bank_code": "…",
      "bank_name": "…",
      "account_number_last4": "…",
      "account_name": "…",
      "amount": 0,
      "narration": "…",
      "reference": "…",
      "duplicate_of_line": 1000,
      "check_status": "pending",
      "check_message": "…",
      "removed": true,
      "payout": {
        "id": "…",
        "status": "awaiting_approval",
        "failure_code": "…"
      }
    }
  ]
}

Cancel a bulk payout before submitting

post/v1/payout_batches/{id}/cancel

Parameters

idstring (uuid)in pathrequired

Responses

  • 200The canceled bulk payoutPayoutBatch
    Show the fields
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    Fields of counts
    itemsinteger
    pendinginteger
    verifiedinteger
    failedinteger
    duplicatesinteger
    removedinteger
    paidinteger
    in_progressinteger
    payouts_failedinteger
    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    needs_second_approverboolean

    Someone other than the uploader must submit it.

    can_submit_as_youboolean
    quoteobject | null

    Before submitting, what it costs and whether it can go now. Null once submitted or canceled.

    Fields of quote
    fee_eachinteger

    Minor units (kobo, cents).

    at least 0

    vat_eachinteger

    Minor units (kobo, cents).

    at least 0

    fee_with_vat_eachinteger

    What each payout costs: its fee and the VAT on it.

    at least 0

    feesinteger

    Fees and VAT for every row.

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    sufficientboolean
    within_limitsboolean
    over_per_payout_limitboolean
    over_daily_limitboolean
    over_third_party_limitboolean

    Over the limit for payouts to other people's accounts.

    limitsobject
    itemsarray of object
    Fields of items
    idstring (uuid)
    lineinteger
    bank_codestring
    bank_namestring | null
    account_number_last4string
    account_namestring | null

    The name the bank gave, once checked.

    amountinteger

    Minor units (kobo, cents).

    at least 0

    narrationstring | null
    referencestring | null
    duplicate_of_lineinteger | null
    check_statuspending | verified | failed
    check_messagestring | null
    removedboolean
    payoutobject | null
  • 404Not found, or not visible to this key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches/{id}/cancel \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)"
response
{
  "id": "…",
  "object": "payout_batch",
  "livemode": true,
  "name": "…",
  "status": "checking",
  "created_at": "…",
  "counts": {
    "items": 1000,
    "pending": 1000,
    "verified": 1000,
    "failed": 1000,
    "duplicates": 1000,
    "removed": 1000,
    "paid": 1000,
    "in_progress": 1000,
    "payouts_failed": 1000
  },
  "amount": 0,
  "paid_amount": 0,
  "currency": "NGN",
  "needs_second_approver": true,
  "can_submit_as_you": true,
  "quote": {
    "fee_each": 0,
    "vat_each": 0,
    "fee_with_vat_each": 0,
    "fees": 0,
    "total_debited": 0,
    "available": 0,
    "sufficient": true,
    "within_limits": true,
    "over_per_payout_limit": true,
    "over_daily_limit": true,
    "limits": {
      "per_payout": 1000,
      "daily": 1000,
      "used_today": 1000,
      "third_party": {
        "approved": true,
        "daily": 1000,
        "used_today": 1000
      }
    }
  },
  "items": [
    {
      "id": "…",
      "line": 1000,
      "bank_code": "…",
      "bank_name": "…",
      "account_number_last4": "…",
      "account_name": "…",
      "amount": 0,
      "narration": "…",
      "reference": "…",
      "duplicate_of_line": 1000,
      "check_status": "pending",
      "check_message": "…",
      "removed": true,
      "payout": {
        "id": "…",
        "status": "awaiting_approval",
        "failure_code": "…"
      }
    }
  ]
}

Submit a bulk payout

post/v1/payout_batches/{id}/submit

Every remaining row becomes a payout, all in one step: if one can't be made (balance, limits), none are, and the error names the line. Each payout is an ordinary one (fee, hold, review) with batch set. Every row must have been checked (ready) and none may have failed the check.

A person in the dashboard confirms with a one-time code (POST /v1/payouts/otp). When someone else on the team can pay out (owner, admin or finance), the person who uploaded the batch can't submit it (second_approver_required).

Parameters

idstring (uuid)in pathrequired
Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

otpobject or object

Responses

  • 200The submitted bulk payoutPayoutBatch
    Show the fields
    idstring (uuid)
    object"payout_batch"
    livemodeboolean
    namestring
    brandstring (uuid) | null
    statuschecking | ready | submitted | canceled

    checking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.

    created_by_namestring | null
    created_atstring (date-time)
    submitted_atstring (date-time) | null
    canceled_atstring (date-time) | null
    countsobject

    Rows (not removed) by check result, and once submitted, their payouts by status.

    Fields of counts
    itemsinteger
    pendinginteger
    verifiedinteger
    failedinteger
    duplicatesinteger
    removedinteger
    paidinteger
    in_progressinteger
    payouts_failedinteger
    amountinteger

    The rows' total (not removed).

    at least 0

    paid_amountinteger

    What's been paid so far.

    at least 0

    currencyNGN
    needs_second_approverboolean

    Someone other than the uploader must submit it.

    can_submit_as_youboolean
    quoteobject | null

    Before submitting, what it costs and whether it can go now. Null once submitted or canceled.

    Fields of quote
    fee_eachinteger

    Minor units (kobo, cents).

    at least 0

    vat_eachinteger

    Minor units (kobo, cents).

    at least 0

    fee_with_vat_eachinteger

    What each payout costs: its fee and the VAT on it.

    at least 0

    feesinteger

    Fees and VAT for every row.

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    sufficientboolean
    within_limitsboolean
    over_per_payout_limitboolean
    over_daily_limitboolean
    over_third_party_limitboolean

    Over the limit for payouts to other people's accounts.

    limitsobject
    itemsarray of object
    Fields of items
    idstring (uuid)
    lineinteger
    bank_codestring
    bank_namestring | null
    account_number_last4string
    account_namestring | null

    The name the bank gave, once checked.

    amountinteger

    Minor units (kobo, cents).

    at least 0

    narrationstring | null
    referencestring | null
    duplicate_of_lineinteger | null
    check_statuspending | verified | failed
    check_messagestring | null
    removedboolean
    payoutobject | null
  • 400Invalid request
  • 404Not found, or not visible to this key
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches/{id}/submit \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
response
{
  "id": "…",
  "object": "payout_batch",
  "livemode": true,
  "name": "…",
  "status": "checking",
  "created_at": "…",
  "counts": {
    "items": 1000,
    "pending": 1000,
    "verified": 1000,
    "failed": 1000,
    "duplicates": 1000,
    "removed": 1000,
    "paid": 1000,
    "in_progress": 1000,
    "payouts_failed": 1000
  },
  "amount": 0,
  "paid_amount": 0,
  "currency": "NGN",
  "needs_second_approver": true,
  "can_submit_as_you": true,
  "quote": {
    "fee_each": 0,
    "vat_each": 0,
    "fee_with_vat_each": 0,
    "fees": 0,
    "total_debited": 0,
    "available": 0,
    "sufficient": true,
    "within_limits": true,
    "over_per_payout_limit": true,
    "over_daily_limit": true,
    "limits": {
      "per_payout": 1000,
      "daily": 1000,
      "used_today": 1000,
      "third_party": {
        "approved": true,
        "daily": 1000,
        "used_today": 1000
      }
    }
  },
  "items": [
    {
      "id": "…",
      "line": 1000,
      "bank_code": "…",
      "bank_name": "…",
      "account_number_last4": "…",
      "account_name": "…",
      "amount": 0,
      "narration": "…",
      "reference": "…",
      "duplicate_of_line": 1000,
      "check_status": "pending",
      "check_message": "…",
      "removed": true,
      "payout": {
        "id": "…",
        "status": "awaiting_approval",
        "failure_code": "…"
      }
    }
  ]
}

What a payout would cost, and whether the balance covers it

get/v1/payouts/quote

The fee and VAT go on top of the amount and come from the same available balance (the brand's, with brand). max_amount is the most that can be paid out now. Creating the payout checks again.

Parameters

amountintegerin queryrequired

at least 1

currencyNGNin query
brandstring (uuid)in query
bank_accountstring (uuid)in query

Where it goes: a recipient (someone else's account) counts toward the limit for payouts to others.

to_new_accounttrue | falsein query

true: to a new account (someone else's).

Responses

  • 200The quoteobject
    Show the fields
    object"payout_quote"
    currencyNGN
    amountinteger

    Minor units (kobo, cents).

    at least 0

    feeinteger

    Minor units (kobo, cents).

    at least 0

    vatinteger

    Minor units (kobo, cents).

    at least 0

    total_debitedinteger

    Minor units (kobo, cents).

    at least 0

    availableinteger

    Minor units (kobo, cents).

    at least 0

    max_amountinteger

    Minor units (kobo, cents).

    at least 0

    max_reasonbalance | per_payout | daily | third_party

    What holds max_amount where it is.

    sufficientboolean

    The balance covers amount + fee + VAT.

    within_limitsboolean
    third_partyboolean

    To someone else's account.

    limitsobject
    Fields of limits
    tierstring
    customboolean
    per_payoutinteger
    dailyinteger
    used_todayinteger
    third_partyobject

    Payouts to other people's accounts: ₦100,000 a day until Biftpay approves disbursements; then a cap staff set, or the daily limit.

  • 400Invalid request
bash
curl https://sandbox.api.biftpay.com/v1/payouts/quote \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "payout_quote",
  "currency": "NGN",
  "amount": 0,
  "fee": 0,
  "vat": 0,
  "total_debited": 0,
  "available": 0,
  "max_amount": 0,
  "max_reason": "balance",
  "sufficient": true,
  "within_limits": true,
  "limits": {
    "tier": "…",
    "custom": true,
    "per_payout": 1000,
    "daily": 1000,
    "used_today": 1000,
    "third_party": {
      "approved": true,
      "daily": 1000,
      "used_today": 1000
    }
  }
}

USDT settlement: whether it's on, Biftpay's rules, your wallets and the one automatic settlement uses

get/v1/usdt

Responses

  • 200OKobject
    Show the fields
    object"usdt"
    enabledboolean
    settle_walletstring | null
    settingsUsdtSettings
    Fields of settings
    enabledboolean
    cooling_hoursinteger
    min_usdinteger
    max_usdinteger | null
    updated_bystring
    updated_atstring (date-time)
    walletsarray of CryptoWallet
    Fields of wallets
    idstring (uuid)
    object"crypto_wallet"
    asset"USDT"
    networktron | ethereum | polygon | bsc
    network_labelstring
    addressstring
    labelstring | null
    usableboolean

    Past the cooling-off period: can receive payouts.

    usable_fromstring (date-time)
    created_atstring (date-time)
bash
curl https://sandbox.api.biftpay.com/v1/usdt \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "usdt",
  "enabled": true,
  "settle_wallet": "…",
  "settings": {
    "enabled": true,
    "cooling_hours": 1000,
    "min_usd": 1000,
    "max_usd": 1000,
    "updated_by": "…",
    "updated_at": "…"
  },
  "wallets": [
    {
      "id": "…",
      "object": "crypto_wallet",
      "asset": "USDT",
      "network": "tron",
      "network_label": "…",
      "address": "…",
      "label": "…",
      "usable": true,
      "usable_from": "…",
      "created_at": "…"
    }
  ]
}

Before sending: dollars available, the fee, and the USDT the wallet should receive

get/v1/usdt/preview

Parameters

usd_amountintegerin query

Cents.

at least 1

brandstring (uuid)in query

Responses

  • 200OKUsdtPreview
    Show the fields
    object"usdt_preview"
    usd_availableinteger
    min_usdinteger
    max_usdinteger | null
    available_nowboolean

    USDT payouts are on and a partner is connected.

    usd_amountinteger
    feeinteger
    vatinteger
    net_usdinteger
    usdt_estimatestring

    USDT the wallet should receive.

bash
curl https://sandbox.api.biftpay.com/v1/usdt/preview \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "usdt_preview",
  "usd_available": 1000,
  "min_usd": 1000,
  "max_usd": 1000,
  "available_now": true
}

Your USDT payouts, newest first

get/v1/usdt/payouts

Responses

  • 200OKobject
    Show the fields
    object"list"
    dataarray of CryptoPayout
    Fields of data
    idstring (uuid)
    object"crypto_payout"
    livemodeboolean
    walletstring (uuid)
    networkstring
    addressstring
    usd_amountinteger
    feeinteger
    vatinteger
    fee_with_vatinteger

    The fee and the VAT on it, together.

    net_usdinteger
    usdt_amountstring | null

    USDT the wallet received, as the partner reports it.

    statusqueued | processing | paid | failed
    tx_hashstring | null

    The on-chain transaction.

    failure_codestring | null
    created_atstring (date-time)
    paid_atstring (date-time) | null
    has_moreboolean
bash
curl https://sandbox.api.biftpay.com/v1/usdt/payouts \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "…",
      "object": "crypto_payout",
      "livemode": true,
      "wallet": "…",
      "usd_amount": 1000,
      "fee": 1000,
      "vat": 1000,
      "fee_with_vat": 1000,
      "net_usd": 1000,
      "usdt_amount": "…",
      "status": "queued",
      "tx_hash": "…",
      "failure_code": "…",
      "created_at": "…",
      "paid_at": "…"
    }
  ],
  "has_more": true
}

Send dollars as USDT to one of your wallets (added and cleared in the dashboard)

post/v1/usdt/payouts

The amount (cents) leaves your USD balance; Biftpay's fee and VAT come out of it and the partner sends the rest as USDT, 1 USDT per dollar. Held until the partner confirms, returned if it fails.

Parameters

Idempotency-Keystringin headerrequired

A unique key per logical request, for example a UUID. Up to 255 characters.

up to 255 characters

Body

usd_amountintegerrequired

at least 1

walletstring (uuid)required
brandstring (uuid)
otpobject or object

Responses

  • 201QueuedCryptoPayout
    Show the fields
    idstring (uuid)
    object"crypto_payout"
    livemodeboolean
    walletstring (uuid)
    networkstring
    addressstring
    usd_amountinteger
    feeinteger
    vatinteger
    fee_with_vatinteger

    The fee and the VAT on it, together.

    net_usdinteger
    usdt_amountstring | null

    USDT the wallet received, as the partner reports it.

    statusqueued | processing | paid | failed
    tx_hashstring | null

    The on-chain transaction.

    failure_codestring | null
    created_atstring (date-time)
    paid_atstring (date-time) | null
  • 400Invalid request
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/usdt/payouts \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "usd_amount": 1,
    "wallet": "…"
  }'
response
{
  "id": "…",
  "object": "crypto_payout",
  "livemode": true,
  "wallet": "…",
  "usd_amount": 1000,
  "fee": 1000,
  "vat": 1000,
  "fee_with_vat": 1000,
  "net_usd": 1000,
  "usdt_amount": "…",
  "status": "queued",
  "tx_hash": "…",
  "failure_code": "…",
  "created_at": "…",
  "paid_at": "…"
}