Retrieve balances

get/v1/balance

Read straight from the ledger. One entry per currency in each bucket. Each brand holds its own funds; without brand this is the whole business (the sum of its brands).

Parameters

brandstring (uuid)in query

One brand's own funds (default: the whole business)

Responses

  • 200Current balancesBalance
    Show the fields
    object"balance"
    livemodeboolean
    brandstring (uuid) | null

    The brand asked for; null for the whole business

    pendingarray of BalanceAmount

    Captured, not yet settleable.

    Fields of pending
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    availablearray of BalanceAmount

    Can be paid out.

    Fields of available
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    reservearray of BalanceAmount

    Rolling reserve held against chargebacks.

    Fields of reserve
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    payout_in_flightarray of BalanceAmount

    Sent to a bank, not yet confirmed.

    Fields of payout_in_flight
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    refund_in_flightarray of BalanceAmount

    Being refunded to customers, not yet confirmed by the provider.

    Fields of refund_in_flight
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    dispute_holdarray of BalanceAmount

    Held while a dispute is decided.

    Fields of dispute_hold
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

    owedarray of BalanceAmount

    What the business owes Biftpay from a lost chargeback its balances couldn't cover (the whole business's). Taken from available, then from payments still pending, as funds come in; payouts wait until it's paid. Only currencies with something owed.

    Fields of owed
    currencyNGN | USD
    amountinteger

    Minor units (kobo, cents).

    at least 0

  • 400Invalid request
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/balance \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "balance",
  "livemode": true,
  "pending": [
    {
      "currency": "NGN",
      "amount": 983875
    }
  ],
  "available": [
    {
      "currency": "NGN",
      "amount": 4520000
    }
  ],
  "reserve": [
    {
      "currency": "NGN",
      "amount": 120000
    }
  ],
  "payout_in_flight": [
    {
      "currency": "NGN",
      "amount": 0
    }
  ],
  "owed": []
}

Every movement on the merchant's balances, newest first

get/v1/balance_transactions

One row per ledger line on the merchant's accounts. amount is signed in the merchant's terms: positive adds to bucket, negative takes from it; balance_after is that bucket's balance after the line. Payment lines carry gross and fee (fee plus VAT). Lines of one entry share type and created_at. Paginate with starting_after=<id>.

Parameters

limitintegerin query

1 to 100 · default 20

starting_afterstringin query
brandstring (uuid)in query

One brand's own funds (default: the whole business)

currencyNGN | USDin query
bucketavailable | pending | reserve | payout_in_flight | refund_in_flight | dispute_holdin query
own_balancestrue | falsein query

true: only pending, available and reserve, so each event is one line (leaves out in-flight payouts and refunds and amounts held for disputes).

typestringin query

Comma-separated: payments, releases, payouts, refunds, disputes, conversions, moves, topups (corrections included).

fromstring (date)in query

Inclusive, Lagos time

tostring (date)in query

Inclusive, Lagos time

Responses

  • 200A page of balance transactionsBalanceTransactionList
    Show the fields
    object"list"
    dataarray of BalanceTransaction
    Fields of data
    idstring
    object"balance_transaction"
    typestring

    e.g. charge.capture, charge.release, payout.hold, payout.settle, refund.hold

    descriptionstring
    bucketpending | available | reserve | payout_in_flight | refund_in_flight | dispute_hold
    amountinteger

    Signed; positive adds to the bucket.

    balance_afterinteger

    The bucket's balance after this line.

    available_afterinteger

    The same brand's available balance after this line, whichever bucket it moved.

    detailsstring | null

    What it was for: the payment's description (or reference, or customer), or who a payout went to.

    grossinteger

    Payments (received and settled): what the customer paid. A payout taken from available: what was sent to the bank.

    feeinteger

    Payments: Biftpay's fee plus VAT, taken from gross. Payouts: the payout fee plus VAT.

    currencyNGN | USD
    source_idstring | null

    The payment, payout or refund that caused it.

    chargebackobject

    The chargeback on the payment behind the line, when its customer's bank disputed it.

    created_atstring (date-time)
    has_moreboolean
  • 400Invalid request
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/balance_transactions \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "10234",
      "object": "balance_transaction",
      "type": "charge.capture",
      "description": "Payment received",
      "bucket": "pending",
      "amount": 1000,
      "balance_after": 1000,
      "available_after": 1000,
      "details": "…",
      "currency": "NGN",
      "created_at": "…"
    }
  ],
  "has_more": true
}

The statement as CSV (up to 20,000 lines; narrow the dates for more)

get/v1/balance_transactions/export

Same filters as the list. The CSV comes in data, for a dashboard to save as file_name.

Parameters

brandstring (uuid)in query

One brand's own funds (default: the whole business)

currencyNGN | USDin query
bucketavailable | pending | reserve | payout_in_flight | refund_in_flight | dispute_holdin query
typestringin query

Comma-separated: payments, releases, payouts, refunds, disputes, conversions, moves, topups (corrections included).

fromstring (date)in query

Inclusive, Lagos time

tostring (date)in query

Inclusive, Lagos time

Responses

  • 200The statementobject
    Show the fields
    object"statement_export"
    file_namestring
    content_type"text/csv"
    rowsinteger
    truncatedboolean

    More lines matched than one export holds.

    datastring

    CSV text. Columns: Date (Lagos), Description, Brand (whose balance), Details (the payment's description, or who a payout went to), Customer, Merchant reference, Method, Balance, Currency, Gross, Fee incl. VAT, Amount, Balance after, Amount (formatted), Biftpay reference (the Biftpay ID of the payment, payout, refund or dispute).

  • 400Invalid request
  • 401Missing or invalid API key
bash
curl https://sandbox.api.biftpay.com/v1/balance_transactions/export \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "statement_export",
  "file_name": "biftpay-statement-live-NGN-2026-09-01_to_2026-09-30.csv",
  "content_type": "text/csv",
  "rows": 1000,
  "truncated": true,
  "data": "…"
}

Your rolling reserve - terms, what's held, and when it's released

get/v1/reserve

A rolling reserve holds a share of each payment for a set time against chargebacks. terms is null when none applies. A business that stops taking payments keeps its reserve until some days after its last payment. Held funds are released to available automatically, on the dates in releases (Lagos days).

Responses

  • 200OKobject
    Show the fields
    object"reserve"
    livemodeboolean
    termsobject | null
    Fields of terms
    percent_bpsinteger
    daysinteger
    reasonstring | null
    reason_textstring | null

    The reason in plain words.

    notestring | null
    sincestring (date-time) | null
    heldarray of object
    Fields of held
    currencystring
    amountinteger

    Minor units (kobo, cents).

    at least 0

    paymentsinteger
    next_release_atstring (date-time) | null
    held_after_last_paymentboolean

    No recent payments in this currency, so the reserve is kept until some days after the last one (next_release_at and releases show the actual dates).

    releasesarray of object
    Fields of releases
    datestring (date)
    currencystring
    amountinteger

    Minor units (kobo, cents).

    at least 0

bash
curl https://sandbox.api.biftpay.com/v1/reserve \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "reserve",
  "livemode": true,
  "terms": {
    "percent_bps": 1000,
    "days": 30,
    "reason": "…",
    "reason_text": "…",
    "note": "…",
    "since": "…"
  },
  "held": [
    {
      "currency": "…",
      "amount": 0,
      "payments": 1000,
      "next_release_at": "…"
    }
  ],
  "releases": [
    {
      "date": "2026-10-05",
      "currency": "…",
      "amount": 0
    }
  ]
}

Biftpay's dollar rate, the dollars available to convert, and (with usd_amount) the naira they'd give

get/v1/fx

Parameters

brandstring (uuid)in query
usd_amountintegerin query

Cents.

at least 1

Responses

  • 200OKFxPreview
    Show the fields
    object"fx_preview"
    rateFxRate or null
    usd_availableinteger
    min_usdinteger
    max_usdinteger

    The most that can convert now (balance, maximum and today's cap).

    daily_cap_usdinteger | null
    converted_today_usdinteger
    blockedconversions_paused | no_rate | rate_stale | balance_below_minimum | daily_cap_reached | null
    usd_amountinteger
    ngn_amountinteger

    The naira usd_amount gives at this rate (rounded down).

bash
curl https://sandbox.api.biftpay.com/v1/fx \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "fx_preview",
  "rate": {
    "id": "…",
    "rate": "…",
    "note": "…",
    "set_by": "…",
    "created_at": "…",
    "stale": true
  },
  "usd_available": 1000,
  "min_usd": 1000,
  "max_usd": 1000,
  "daily_cap_usd": 1000,
  "converted_today_usd": 1000,
  "blocked": "conversions_paused"
}

Your dollar-to-naira conversions, newest first

get/v1/fx/conversions

Responses

  • 200OKobject
    Show the fields
    object"list"
    dataarray of FxConversion
    Fields of data
    idstring (uuid)
    object"fx_conversion"
    livemodeboolean
    usd_amountinteger
    ratestring
    ngn_amountinteger
    brandstring | null
    sourcemerchant | auto | staff
    payoutstring | null
    created_atstring (date-time)
    has_moreboolean
bash
curl https://sandbox.api.biftpay.com/v1/fx/conversions \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "list",
  "data": [
    {
      "id": "…",
      "object": "fx_conversion",
      "livemode": true,
      "usd_amount": 1000,
      "rate": "…",
      "ngn_amount": 1000,
      "brand": "…",
      "source": "merchant",
      "payout": "…",
      "created_at": "…"
    }
  ],
  "has_more": true
}

Convert dollars to naira at the rate you were shown

post/v1/fx/conversions

rate_id is the rate from GET /v1/fx. If Biftpay has published a new rate since, nothing converts and the error says the new rate (rate_changed). Naira is rounded down to the kobo.

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

Cents.

at least 1

rate_idstring (uuid)required
brandstring (uuid)

Responses

  • 201ConvertedFxConversion
    Show the fields
    idstring (uuid)
    object"fx_conversion"
    livemodeboolean
    usd_amountinteger
    ratestring
    ngn_amountinteger
    brandstring | null
    sourcemerchant | auto | staff
    payoutstring | null
    created_atstring (date-time)
  • 400Invalid request
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/fx/conversions \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "usd_amount": 1,
    "rate_id": "…"
  }'
response
{
  "id": "…",
  "object": "fx_conversion",
  "livemode": true,
  "usd_amount": 1000,
  "rate": "…",
  "ngn_amount": 1000,
  "brand": "…",
  "source": "merchant",
  "payout": "…",
  "created_at": "…"
}

The business's funding account, and what a top-up costs

get/v1/funding_account

Transfers into the business's own funding account top up its available balance straight away, less the top-up price when Biftpay set one (price null means free). account is null until it's opened.

Responses

  • 200OKFundingAccountStatus
    Show the fields
    object"funding_account_status"
    accountFundingAccount or null
    testobject

    Test mode only. How to send the account a test transfer.

    Fields of test
    can_simulateboolean

    POST /v1/funding_account/simulate_transfer works for it.

    test_bankobject or null

    The provider's demo bank to transfer from instead, with its published test login.

    priceobject or null

    What a top-up costs (null when free).

bash
curl https://sandbox.api.biftpay.com/v1/funding_account \
  -H "Authorization: Bearer bp_test_..."
response
{
  "object": "funding_account_status",
  "account": {
    "id": "…",
    "object": "funding_account",
    "livemode": true,
    "account_number": "…",
    "bank_name": "…",
    "account_name": "…",
    "currency": "NGN",
    "status": "active",
    "created_at": "…"
  },
  "price": {
    "fee_bps": 1000,
    "fee_flat": 1000,
    "fee_cap": 1000,
    "vat_bps": 1000
  }
}

Open the business's funding account (or return the one it has)

post/v1/funding_account

In live mode, once KYC is approved; it's opened in the business's name with its KYC phone and an owner's or director's BVN.

Parameters

Idempotency-Keystringin headerrequired

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

up to 255 characters

Responses

  • 200OKFundingAccountStatus
    Show the fields
    object"funding_account_status"
    accountFundingAccount or null
    testobject

    Test mode only. How to send the account a test transfer.

    Fields of test
    can_simulateboolean

    POST /v1/funding_account/simulate_transfer works for it.

    test_bankobject or null

    The provider's demo bank to transfer from instead, with its published test login.

    priceobject or null

    What a top-up costs (null when free).

  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/funding_account \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)"
response
{
  "object": "funding_account_status",
  "account": {
    "id": "…",
    "object": "funding_account",
    "livemode": true,
    "account_number": "…",
    "bank_name": "…",
    "account_name": "…",
    "currency": "NGN",
    "status": "active",
    "created_at": "…"
  },
  "price": {
    "fee_bps": 1000,
    "fee_flat": 1000,
    "fee_cap": 1000,
    "vat_bps": 1000
  }
}

Test mode only. A transfer into the funding account from the provider's sandbox bank

post/v1/funding_account/simulate_transfer

Parameters

Idempotency-Keystringin headerrequired

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

up to 255 characters

Body

amountintegerrequired

Kobo.

1 to 1000000000

Responses

  • 200OKobject
    Show the fields
    object"test_helper_result"
    simulatedboolean
  • 409The object is in a state that doesn't allow this
bash
curl -X POST https://sandbox.api.biftpay.com/v1/funding_account/simulate_transfer \
  -H "Authorization: Bearer bp_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 1
  }'
response
{
  "object": "test_helper_result",
  "simulated": true
}