Payouts
- get/v1/banks
- post/v1/bank_accounts/lookup
- get/v1/bank_accounts
- post/v1/bank_accounts
- post/v1/bank_accounts/{id}/delete
- get/v1/payouts
- post/v1/payouts
- get/v1/payouts/{id}
- post/v1/payouts/{id}/cancel
- get/v1/payout_batches
- post/v1/payout_batches
- get/v1/payout_batches/{id}
- post/v1/payout_batches/{id}/items/{itemId}/remove
- post/v1/payout_batches/{id}/cancel
- post/v1/payout_batches/{id}/submit
- get/v1/payouts/quote
- get/v1/usdt
- get/v1/usdt/preview
- get/v1/usdt/payouts
- post/v1/usdt/payouts
The banks payouts can go to, with their codes
get/v1/banks
Responses
- 200The banksobject
Show the fields
object"list"has_morebooleandataarray of objectFields of data
codestringnamestring
curl https://sandbox.api.biftpay.com/v1/banks \
-H "Authorization: Bearer bp_test_..."{
"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 headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
bank_codestringrequiredaccount_numberstringrequiredResponses
- 200The account's name at the bankobject
Show the fields
object"bank_account_lookup"bank_codestringbank_namestringaccount_namestringaccount_number_last4string - 400Invalid request
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"
}'{
"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 queryOnly settlement accounts, or only recipients.
Responses
- 200Registered bank accountsobject
Show the fields
object"list"dataarray of BankAccountFields of data
idstring (uuid)object"bank_account"livemodebooleanbank_codestringbank_namestringaccount_number_last4stringaccount_namestringAs returned by the bank's name enquiry.
purposesettlement | recipientsettlement: 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
curl https://sandbox.api.biftpay.com/v1/bank_accounts \
-H "Authorization: Bearer bp_test_..."{
"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 headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
bank_codestringrequiredThe bank's code, from GET /v1/banks.
account_numberstringrequired10-digit NUBAN
purposesettlement | recipientsettlement: the business's own account, where settlement can go. recipient: someone the business pays (saved by a payout to a new account).
otpobject or objectRequired 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"livemodebooleanbank_codestringbank_namestringaccount_number_last4stringaccount_namestringAs returned by the bank's name enquiry.
purposesettlement | recipientsettlement: 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
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"
}'{
"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 pathrequiredResponses
- 200The removed accountobject
Show the fields
idstring (uuid)object"bank_account"livemodebooleanbank_codestringbank_namestringaccount_number_last4stringaccount_namestringAs returned by the bank's name enquiry.
purposesettlement | recipientsettlement: 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
curl -X POST https://sandbox.api.biftpay.com/v1/bank_accounts/{id}/delete \
-H "Authorization: Bearer bp_test_..." \
-H "Idempotency-Key: $(uuidgen)"{
"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 query1 to 100 · default 20
starting_afterstring (uuid)in queryThe id of the last item on the previous page.
qstringin querySearch: 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 queryOnly payouts in this status.
Responses
- 200A page of payoutsPayoutList
Show the fields
object"list"dataarray of PayoutFields of data
idstring (uuid)Also the reference sent to the bank.
object"payout"livemodebooleanamountintegerMinor units (kobo, cents).
at least 0
feeintegerMinor units (kobo, cents).
at least 0
vatintegerMinor units (kobo, cents).
at least 0
total_debitedintegeramount + fee + vat
at least 0
currencyNGN | USDstatusawaiting_approval | queued | processing | paid | failed | canceledawaiting_approval(Biftpay is reviewing it first, e.g. a large amount) ->queued->processing(sent, waiting for the bank's confirmation) ->paidorfailed.canceledis only possible before sending.narrationstring | nullbrandstring (uuid)The brand whose balance pays it.
review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jumpWhy 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_accountobjectapproved_atstring (date-time) | nullfailure_codestring | nullbank_referencestring | nullThe 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) | nullfailed_atstring (date-time) | nullcanceled_atstring (date-time) | nullbatchstring (uuid) | nullThe bulk payout it was part of.
has_moreboolean - 401Missing or invalid API key
curl https://sandbox.api.biftpay.com/v1/payouts \
-H "Authorization: Bearer bp_test_..."{
"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 headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
amountintegerrequiredat least 1
currencyNGN | USDrequiredbank_account_idstring (uuid)A saved, name-checked account. Send this or new_bank_account.
new_bank_accountobjectA 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_codestringrequiredaccount_numberstringrequirednarrationstringup to 100 characters
brandstring (uuid)Pay out of this brand's balance. Defaults to the business's own brand.
otpobject or objectRequired 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"livemodebooleanamountintegerMinor units (kobo, cents).
at least 0
feeintegerMinor units (kobo, cents).
at least 0
vatintegerMinor units (kobo, cents).
at least 0
total_debitedintegeramount + fee + vat
at least 0
currencyNGN | USDstatusawaiting_approval | queued | processing | paid | failed | canceledawaiting_approval(Biftpay is reviewing it first, e.g. a large amount) ->queued->processing(sent, waiting for the bank's confirmation) ->paidorfailed.canceledis only possible before sending.narrationstring | nullbrandstring (uuid)The brand whose balance pays it.
review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jumpWhy 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_accountobjectFields of bank_account
idstring (uuid)bank_namestringaccount_number_last4stringaccount_namestringapproved_atstring (date-time) | nullfailure_codestring | nullbank_referencestring | nullThe 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) | nullfailed_atstring (date-time) | nullcanceled_atstring (date-time) | nullbatchstring (uuid) | nullThe 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
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"
}'{
"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 pathrequiredResponses
- 200The payoutPayout
Show the fields
idstring (uuid)Also the reference sent to the bank.
object"payout"livemodebooleanamountintegerMinor units (kobo, cents).
at least 0
feeintegerMinor units (kobo, cents).
at least 0
vatintegerMinor units (kobo, cents).
at least 0
total_debitedintegeramount + fee + vat
at least 0
currencyNGN | USDstatusawaiting_approval | queued | processing | paid | failed | canceledawaiting_approval(Biftpay is reviewing it first, e.g. a large amount) ->queued->processing(sent, waiting for the bank's confirmation) ->paidorfailed.canceledis only possible before sending.narrationstring | nullbrandstring (uuid)The brand whose balance pays it.
review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jumpWhy 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_accountobjectFields of bank_account
idstring (uuid)bank_namestringaccount_number_last4stringaccount_namestringapproved_atstring (date-time) | nullfailure_codestring | nullbank_referencestring | nullThe 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) | nullfailed_atstring (date-time) | nullcanceled_atstring (date-time) | nullbatchstring (uuid) | nullThe bulk payout it was part of.
- 401Missing or invalid API key
- 404Not found, or not visible to this key
curl https://sandbox.api.biftpay.com/v1/payouts/{id} \
-H "Authorization: Bearer bp_test_..."{
"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 pathrequiredIdempotency-Keystringin headerrequiredA 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"livemodebooleanamountintegerMinor units (kobo, cents).
at least 0
feeintegerMinor units (kobo, cents).
at least 0
vatintegerMinor units (kobo, cents).
at least 0
total_debitedintegeramount + fee + vat
at least 0
currencyNGN | USDstatusawaiting_approval | queued | processing | paid | failed | canceledawaiting_approval(Biftpay is reviewing it first, e.g. a large amount) ->queued->processing(sent, waiting for the bank's confirmation) ->paidorfailed.canceledis only possible before sending.narrationstring | nullbrandstring (uuid)The brand whose balance pays it.
review_reasonsarray of amount | new_bank_account | account_review | security_change | unusual | many_recipients | volume_jumpWhy 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_accountobjectFields of bank_account
idstring (uuid)bank_namestringaccount_number_last4stringaccount_namestringapproved_atstring (date-time) | nullfailure_codestring | nullbank_referencestring | nullThe 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) | nullfailed_atstring (date-time) | nullcanceled_atstring (date-time) | nullbatchstring (uuid) | nullThe 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
curl -X POST https://sandbox.api.biftpay.com/v1/payouts/{id}/cancel \
-H "Authorization: Bearer bp_test_..." \
-H "Idempotency-Key: $(uuidgen)"{
"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 query1 to 100 · default 20
Responses
- 200Bulk payoutsobject
Show the fields
object"list"dataarray of PayoutBatchSummaryFields of data
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
amountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNhas_moreboolean - 401Missing or invalid API key
curl https://sandbox.api.biftpay.com/v1/payout_batches \
-H "Authorization: Bearer bp_test_..."{
"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 headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
namestringrequiredWhat 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 objectrequiredFields of items
bank_codestringrequiredaccount_numberstringrequiredamountintegerrequiredIn kobo.
at least 1
narrationstringup to 100 characters
referencestringYour own reference for the row (staff ID, invoice number).
up to 100 characters
Responses
- 201CreatedPayoutBatch
Show the fields
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
Fields of counts
itemsintegerpendingintegerverifiedintegerfailedintegerduplicatesintegerremovedintegerpaidintegerin_progressintegerpayouts_failedintegeramountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNneeds_second_approverbooleanSomeone other than the uploader must submit it.
can_submit_as_youbooleanquoteobject | nullBefore submitting, what it costs and whether it can go now. Null once submitted or canceled.
Fields of quote
fee_eachintegerMinor units (kobo, cents).
at least 0
vat_eachintegerMinor units (kobo, cents).
at least 0
fee_with_vat_eachintegerWhat each payout costs: its fee and the VAT on it.
at least 0
feesintegerFees and VAT for every row.
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
sufficientbooleanwithin_limitsbooleanover_per_payout_limitbooleanover_daily_limitbooleanover_third_party_limitbooleanOver the limit for payouts to other people's accounts.
limitsobjectitemsarray of objectFields of items
idstring (uuid)lineintegerbank_codestringbank_namestring | nullaccount_number_last4stringaccount_namestring | nullThe name the bank gave, once checked.
amountintegerMinor units (kobo, cents).
at least 0
narrationstring | nullreferencestring | nullduplicate_of_lineinteger | nullcheck_statuspending | verified | failedcheck_messagestring | nullremovedbooleanpayoutobject | null - 400Invalid request
- 401Missing or invalid API key
- 422Idempotency-Key reused with a different request
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
}
]
}'{
"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 pathrequiredResponses
- 200The bulk payoutPayoutBatch
Show the fields
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
Fields of counts
itemsintegerpendingintegerverifiedintegerfailedintegerduplicatesintegerremovedintegerpaidintegerin_progressintegerpayouts_failedintegeramountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNneeds_second_approverbooleanSomeone other than the uploader must submit it.
can_submit_as_youbooleanquoteobject | nullBefore submitting, what it costs and whether it can go now. Null once submitted or canceled.
Fields of quote
fee_eachintegerMinor units (kobo, cents).
at least 0
vat_eachintegerMinor units (kobo, cents).
at least 0
fee_with_vat_eachintegerWhat each payout costs: its fee and the VAT on it.
at least 0
feesintegerFees and VAT for every row.
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
sufficientbooleanwithin_limitsbooleanover_per_payout_limitbooleanover_daily_limitbooleanover_third_party_limitbooleanOver the limit for payouts to other people's accounts.
limitsobjectitemsarray of objectFields of items
idstring (uuid)lineintegerbank_codestringbank_namestring | nullaccount_number_last4stringaccount_namestring | nullThe name the bank gave, once checked.
amountintegerMinor units (kobo, cents).
at least 0
narrationstring | nullreferencestring | nullduplicate_of_lineinteger | nullcheck_statuspending | verified | failedcheck_messagestring | nullremovedbooleanpayoutobject | null - 404Not found, or not visible to this key
curl https://sandbox.api.biftpay.com/v1/payout_batches/{id} \
-H "Authorization: Bearer bp_test_..."{
"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 pathrequireditemIdstring (uuid)in pathrequiredResponses
- 200The bulk payoutPayoutBatch
Show the fields
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
Fields of counts
itemsintegerpendingintegerverifiedintegerfailedintegerduplicatesintegerremovedintegerpaidintegerin_progressintegerpayouts_failedintegeramountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNneeds_second_approverbooleanSomeone other than the uploader must submit it.
can_submit_as_youbooleanquoteobject | nullBefore submitting, what it costs and whether it can go now. Null once submitted or canceled.
Fields of quote
fee_eachintegerMinor units (kobo, cents).
at least 0
vat_eachintegerMinor units (kobo, cents).
at least 0
fee_with_vat_eachintegerWhat each payout costs: its fee and the VAT on it.
at least 0
feesintegerFees and VAT for every row.
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
sufficientbooleanwithin_limitsbooleanover_per_payout_limitbooleanover_daily_limitbooleanover_third_party_limitbooleanOver the limit for payouts to other people's accounts.
limitsobjectitemsarray of objectFields of items
idstring (uuid)lineintegerbank_codestringbank_namestring | nullaccount_number_last4stringaccount_namestring | nullThe name the bank gave, once checked.
amountintegerMinor units (kobo, cents).
at least 0
narrationstring | nullreferencestring | nullduplicate_of_lineinteger | nullcheck_statuspending | verified | failedcheck_messagestring | nullremovedbooleanpayoutobject | null - 404Not found, or not visible to this key
- 409The object is in a state that doesn't allow this
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches/{id}/items/{itemId}/remove \
-H "Authorization: Bearer bp_test_..." \
-H "Idempotency-Key: $(uuidgen)"{
"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 pathrequiredResponses
- 200The canceled bulk payoutPayoutBatch
Show the fields
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
Fields of counts
itemsintegerpendingintegerverifiedintegerfailedintegerduplicatesintegerremovedintegerpaidintegerin_progressintegerpayouts_failedintegeramountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNneeds_second_approverbooleanSomeone other than the uploader must submit it.
can_submit_as_youbooleanquoteobject | nullBefore submitting, what it costs and whether it can go now. Null once submitted or canceled.
Fields of quote
fee_eachintegerMinor units (kobo, cents).
at least 0
vat_eachintegerMinor units (kobo, cents).
at least 0
fee_with_vat_eachintegerWhat each payout costs: its fee and the VAT on it.
at least 0
feesintegerFees and VAT for every row.
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
sufficientbooleanwithin_limitsbooleanover_per_payout_limitbooleanover_daily_limitbooleanover_third_party_limitbooleanOver the limit for payouts to other people's accounts.
limitsobjectitemsarray of objectFields of items
idstring (uuid)lineintegerbank_codestringbank_namestring | nullaccount_number_last4stringaccount_namestring | nullThe name the bank gave, once checked.
amountintegerMinor units (kobo, cents).
at least 0
narrationstring | nullreferencestring | nullduplicate_of_lineinteger | nullcheck_statuspending | verified | failedcheck_messagestring | nullremovedbooleanpayoutobject | null - 404Not found, or not visible to this key
- 409The object is in a state that doesn't allow this
curl -X POST https://sandbox.api.biftpay.com/v1/payout_batches/{id}/cancel \
-H "Authorization: Bearer bp_test_..." \
-H "Idempotency-Key: $(uuidgen)"{
"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 pathrequiredIdempotency-Keystringin headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
otpobject or objectResponses
- 200The submitted bulk payoutPayoutBatch
Show the fields
idstring (uuid)object"payout_batch"livemodebooleannamestringbrandstring (uuid) | nullstatuschecking | ready | submitted | canceledchecking: accounts being checked with their banks; ready: can be submitted; submitted: the payouts were made; canceled.
created_by_namestring | nullcreated_atstring (date-time)submitted_atstring (date-time) | nullcanceled_atstring (date-time) | nullcountsobjectRows (not removed) by check result, and once submitted, their payouts by status.
Fields of counts
itemsintegerpendingintegerverifiedintegerfailedintegerduplicatesintegerremovedintegerpaidintegerin_progressintegerpayouts_failedintegeramountintegerThe rows' total (not removed).
at least 0
paid_amountintegerWhat's been paid so far.
at least 0
currencyNGNneeds_second_approverbooleanSomeone other than the uploader must submit it.
can_submit_as_youbooleanquoteobject | nullBefore submitting, what it costs and whether it can go now. Null once submitted or canceled.
Fields of quote
fee_eachintegerMinor units (kobo, cents).
at least 0
vat_eachintegerMinor units (kobo, cents).
at least 0
fee_with_vat_eachintegerWhat each payout costs: its fee and the VAT on it.
at least 0
feesintegerFees and VAT for every row.
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
sufficientbooleanwithin_limitsbooleanover_per_payout_limitbooleanover_daily_limitbooleanover_third_party_limitbooleanOver the limit for payouts to other people's accounts.
limitsobjectitemsarray of objectFields of items
idstring (uuid)lineintegerbank_codestringbank_namestring | nullaccount_number_last4stringaccount_namestring | nullThe name the bank gave, once checked.
amountintegerMinor units (kobo, cents).
at least 0
narrationstring | nullreferencestring | nullduplicate_of_lineinteger | nullcheck_statuspending | verified | failedcheck_messagestring | nullremovedbooleanpayoutobject | null - 400Invalid request
- 404Not found, or not visible to this key
- 409The object is in a state that doesn't allow this
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 '{}'{
"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 queryrequiredat least 1
currencyNGNin querybrandstring (uuid)in querybank_accountstring (uuid)in queryWhere it goes: a recipient (someone else's account) counts toward the limit for payouts to others.
to_new_accounttrue | falsein querytrue: to a new account (someone else's).
Responses
- 200The quoteobject
Show the fields
object"payout_quote"currencyNGNamountintegerMinor units (kobo, cents).
at least 0
feeintegerMinor units (kobo, cents).
at least 0
vatintegerMinor units (kobo, cents).
at least 0
total_debitedintegerMinor units (kobo, cents).
at least 0
availableintegerMinor units (kobo, cents).
at least 0
max_amountintegerMinor units (kobo, cents).
at least 0
max_reasonbalance | per_payout | daily | third_partyWhat holds max_amount where it is.
sufficientbooleanThe balance covers amount + fee + VAT.
within_limitsbooleanthird_partybooleanTo someone else's account.
limitsobjectFields of limits
tierstringcustombooleanper_payoutintegerdailyintegerused_todayintegerthird_partyobjectPayouts to other people's accounts: ₦100,000 a day until Biftpay approves disbursements; then a cap staff set, or the daily limit.
- 400Invalid request
curl https://sandbox.api.biftpay.com/v1/payouts/quote \
-H "Authorization: Bearer bp_test_..."{
"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"enabledbooleansettle_walletstring | nullsettingsUsdtSettingsFields of settings
enabledbooleancooling_hoursintegermin_usdintegermax_usdinteger | nullupdated_bystringupdated_atstring (date-time)walletsarray of CryptoWalletFields of wallets
idstring (uuid)object"crypto_wallet"asset"USDT"networktron | ethereum | polygon | bscnetwork_labelstringaddressstringlabelstring | nullusablebooleanPast the cooling-off period: can receive payouts.
usable_fromstring (date-time)created_atstring (date-time)
curl https://sandbox.api.biftpay.com/v1/usdt \
-H "Authorization: Bearer bp_test_..."{
"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 queryCents.
at least 1
brandstring (uuid)in queryResponses
- 200OKUsdtPreview
Show the fields
object"usdt_preview"usd_availableintegermin_usdintegermax_usdinteger | nullavailable_nowbooleanUSDT payouts are on and a partner is connected.
usd_amountintegerfeeintegervatintegernet_usdintegerusdt_estimatestringUSDT the wallet should receive.
curl https://sandbox.api.biftpay.com/v1/usdt/preview \
-H "Authorization: Bearer bp_test_..."{
"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 CryptoPayoutFields of data
idstring (uuid)object"crypto_payout"livemodebooleanwalletstring (uuid)networkstringaddressstringusd_amountintegerfeeintegervatintegerfee_with_vatintegerThe fee and the VAT on it, together.
net_usdintegerusdt_amountstring | nullUSDT the wallet received, as the partner reports it.
statusqueued | processing | paid | failedtx_hashstring | nullThe on-chain transaction.
failure_codestring | nullcreated_atstring (date-time)paid_atstring (date-time) | nullhas_moreboolean
curl https://sandbox.api.biftpay.com/v1/usdt/payouts \
-H "Authorization: Bearer bp_test_..."{
"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 headerrequiredA unique key per logical request, for example a UUID. Up to 255 characters.
up to 255 characters
Body
usd_amountintegerrequiredat least 1
walletstring (uuid)requiredbrandstring (uuid)otpobject or objectResponses
- 201QueuedCryptoPayout
Show the fields
idstring (uuid)object"crypto_payout"livemodebooleanwalletstring (uuid)networkstringaddressstringusd_amountintegerfeeintegervatintegerfee_with_vatintegerThe fee and the VAT on it, together.
net_usdintegerusdt_amountstring | nullUSDT the wallet received, as the partner reports it.
statusqueued | processing | paid | failedtx_hashstring | nullThe on-chain transaction.
failure_codestring | nullcreated_atstring (date-time)paid_atstring (date-time) | null - 400Invalid request
- 409The object is in a state that doesn't allow this
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": "…"
}'{
"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": "…"
}