Bitnob Virtual accounts API
Naira accounts that receive bank transfers, for your company or for a customer, and temporary KES and UGX accounts that collect one mobile money payment.
Naira accounts that receive bank transfers, for your company or for a customer, and temporary KES and UGX accounts that collect one mobile money payment.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/bitnob:bitnob-virtual-accounts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Bitnob API requests Virtual accounts API
version: 1.0.0
description: 'What you send to the Bitnob API: path and query parameters, request bodies and auth headers. Responses are left out; see the full Bitnob API spec for those.'
servers:
- description: Production
url: https://api.bitnob.com
security:
- ClientId: []
Timestamp: []
Nonce: []
Signature: []
- ClientId: []
Secret: []
tags:
- description: Naira accounts that receive bank transfers, for your company or for a customer, and temporary KES and UGX accounts that collect one mobile money payment.
name: Virtual accounts
paths:
/api/virtual-accounts:
get:
tags:
- Virtual accounts
summary: List virtual accounts
description: Lists your virtual accounts, with optional filters.
operationId: virtualAccountsList
parameters:
- description: Page size. Must be positive; values above 100 are capped at 100.
example: 20
in: query
name: first
schema:
default: 20
maximum: 100
minimum: 1
type: integer
- description: Opaque cursor from page_info.next_cursor.
example: eyJ0aW1lc3RhbXAiOiIyMDI2LTEwLTI4VDE0OjA1OjMwWiIsImlkIjoiMDE5YTNjODAifQ
in: query
name: after
schema:
maxLength: 512
type: string
- description: Filter by account status.
example: active
in: query
name: status
schema:
$ref: '#/components/schemas/VirtualAccountsStatus'
- description: Currency code, case-insensitive.
example: NGN
in: query
name: currency
schema:
example: NGN
type: string
- description: Filter by account type.
example: business
in: query
name: account_type
schema:
enum:
- individual
- business
type: string
- description: Filter by lifetime, case-insensitive.
example: temporary
in: query
name: lifetime
schema:
enum:
- permanent
- temporary
type: string
- description: Filter by rail, case-insensitive.
example: mobile_money
in: query
name: rail
schema:
enum:
- bank
- mobile_money
type: string
- description: true returns only the organisation's own accounts (no customer); false only customer accounts. Absent returns all.
examples:
customer_accounts:
summary: Only customer accounts
value: false
own_accounts:
summary: Only the organisation's own accounts
value: true
in: query
name: company_owned
schema:
type: boolean
post:
tags:
- Virtual accounts
summary: Create a virtual account
description: Opens an NGN virtual bank account for an existing customer, using the KYC details on the customer record. Reusing a reference returns the existing account. Deposits arrive as webhooks.
operationId: virtualAccountsCreate
requestBody:
content:
application/json:
examples:
business_with_alias:
summary: A business customer at a named bank, with a display alias
value:
account_alias: Acme Collections
bank: globus
currency: NGN
customer_id: 019a3c11-7a8b-7c9d-8e0f-1a2b3c4d5e61
reference: va_ref_sbx_0002
individual:
summary: An individual customer, default bank
value:
currency: NGN
customer_id: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
reference: va_ref_sbx_0001
kes_collection:
summary: Collect 1,500 KES from a payer's phone
value:
account_name: Sandbox Payer
account_number: '254700000000'
amount: 150000
currency: KES
description: Invoice 1042
lifetime: temporary
network: MPESA
rail: mobile_money
reference: col_ref_sbx_0001
ugx_collection_with_customer:
summary: Collect 20,000 UGX and link the payer's customer record
value:
account_number: '256700000000'
amount: 2000000
country: UG
currency: UGX
customer_id: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
network: MTN
rail: mobile_money
reference: col_ref_sbx_0002
schema:
$ref: '#/components/schemas/VirtualAccountsCreateRequest'
required: true
/api/virtual-accounts/supported-currencies:
get:
tags:
- Virtual accounts
summary: List supported currencies
description: Lists the currencies a virtual account can be opened in.
operationId: virtualAccountsListSupportedCurrencies
parameters:
- description: Values below 1 use the default; values above 100 are capped at 100.
example: 20
in: query
name: limit
schema:
default: 20
maximum: 100
minimum: 1
type: integer
- description: Number of results to skip.
example: 0
in: query
name: offset
schema:
default: 0
minimum: 0
type: integer
/api/virtual-accounts/{id}:
get:
tags:
- Virtual accounts
summary: Get a virtual account
description: Returns one of your virtual accounts.
operationId: virtualAccountsGet
parameters:
- description: ID of the virtual account.
example: 019a3c80-6a7b-7c8d-9e0f-1a2b3c4d5e81
in: path
name: id
required: true
schema:
format: uuid
type: string
/api/virtual-accounts/{id}/alias:
patch:
tags:
- Virtual accounts
summary: Update a virtual account alias
description: Sets the display alias of a virtual account. Send an empty string to clear it.
operationId: virtualAccountsUpdateAlias
parameters:
- description: ID of the virtual account.
example: 019a3c81-7b8c-7d9e-8f01-2b3c4d5e6f92
in: path
name: id
required: true
schema:
format: uuid
type: string
requestBody:
content:
application/json:
examples:
clear:
summary: Clear the alias
value:
account_alias: ''
set:
summary: Set the alias
value:
account_alias: Acme Collections
schema:
$ref: '#/components/schemas/VirtualAccountsUpdateAliasRequest'
required: true
/api/virtual-accounts/{id}/simulate-deposit:
post:
tags:
- Virtual accounts
summary: Simulate a deposit (sandbox)
description: Sandbox only. Credits 10,000 NGN to a sandbox virtual account and sends the virtual_account.deposit.success webhook, like a real deposit.
operationId: virtualAccountsSimulateDeposit
parameters:
- description: ID of the virtual account.
example: 019a3c80-6a7b-7c8d-9e0f-1a2b3c4d5e81
in: path
name: id
required: true
schema:
format: uuid
type: string
requestBody:
content:
application/json:
examples:
collection_failed:
summary: End a mobile money collection unpaid
value:
outcome: failed
collection_paid:
summary: Settle a mobile money collection
value:
outcome: success
empty:
summary: 'No body fields: every call credits again'
value: {}
with_idempotency_key:
summary: A replay with the same key returns the first credit
value:
idempotency_key: sim_sbx_20261030_01
schema:
$ref: '#/components/schemas/VirtualAccountsSimulateDepositRequest'
required: false
/api/virtual-accounts/{id}/transactions:
get:
tags:
- Virtual accounts
summary: List virtual account transactions
description: Lists the transactions on one of your virtual accounts.
operationId: virtualAccountsListTransactions
parameters:
- description: ID of the virtual account.
example: 019a3c80-6a7b-7c8d-9e0f-1a2b3c4d5e81
in: path
name: id
required: true
schema:
format: uuid
type: string
- description: Values below 1 use the default; values above 100 are capped at 100.
example: 20
in: query
name: limit
schema:
default: 20
maximum: 100
minimum: 1
type: integer
- description: Number of results to skip.
example: 0
in: query
name: offset
schema:
default: 0
minimum: 0
type: integer
components:
schemas:
VirtualAccountsStatus:
enum:
- pending
- active
- failed
- suspended
- closed
type: string
VirtualAccountsUpdateAliasRequest:
properties:
account_alias:
description: New alias; an empty string clears it.
maxLength: 100
type: string
required:
- account_alias
type: object
VirtualAccountsCreateRequest:
else:
required:
- customer_id
if:
additionalProperties: true
properties:
rail:
const: mobile_money
required:
- rail
properties:
account_alias:
description: Shown instead of the customer name on the account. On a collection it defaults to account_name.
maxLength: 100
type: string
account_name:
description: The payer's name. Collections only.
maxLength: 100
type: string
account_number:
description: The payer's phone number. Required on the mobile_money rail. Local or international form; it is stored as digits with the country code, which must match phone_pattern from GET /api/virtual-accounts/supported-currencies.
example: '254700000000'
maxLength: 20
type: string
amount:
description: Amount to collect, in base units (cents; 100 is 1 KES or 1 UGX). Required on the mobile_money rail. KES 2000 to 14500000; UGX 50000 to 400000000. GET /api/virtual-accounts/supported-currencies gives the limits.
example: 150000
format: int64
minimum: 1
type: integer
bank:
description: Bank to open the account at, case-insensitive. Omit to use the default bank. Bank rail only; ignored on the mobile_money rail.
enum:
- nomba
- globus
type: string
country:
description: ISO 3166-1 alpha-2 country, case-insensitive. Collections only, where it must be KE for KES and UG for UGX; omit to use the currency's country.
example: KE
maxLength: 2
minLength: 2
type: string
currency:
description: NGN on the bank rail; KES or UGX on the mobile_money rail. Case-insensitive.
pattern: ^([Nn][Gg][Nn]|[Kk][Ee][Ss]|[Uu][Gg][Xx])$
type: string
customer_id:
description: An existing customer; register them first with POST /api/customers. Required on the bank rail. Optional on the mobile_money rail, where it links the payer's customer record.
format: uuid
type: string
description:
description: A note for the collection, returned in metadata.description. Collections only.
maxLength: 255
type: string
lifetime:
description: Case-insensitive. permanent on the bank rail, temporary on the mobile_money rail. Omit to get the rail's only lifetime; any other pairing is 400.
enum:
- permanent
- temporary
type: string
network:
description: Mobile money network. Required on the mobile_money rail. MPESA for KES; MTN or AIRTEL for UGX. Any case, and the network's display name is accepted (M-Pesa).
example: MPESA
maxLength: 32
type: string
rail:
default: bank
description: How the account receives money, case-insensitive. mobile_money opens a collection, which prompts the payer's phone for amount.
enum:
- bank
- mobile_money
type: string
reference:
description: Your unique reference for the account.
maxLength: 100
type: string
required:
- reference
- currency
then:
required:
- amount
- network
- account_number
type: object
VirtualAccountsSimulateDepositRequest:
properties:
idempotency_key:
description: Your unique key for this simulated deposit, so a retry is safe. Ignored on a collection, which can only settle once.
maxLength: 128
type: string
outcome:
description: 'Temporary mobile_money accounts only: how the collection ends. Omit to settle it. Sent for any other account, it is 400.'
enum:
- success
- failed
type: string
type: object
securitySchemes:
ClientId:
type: apiKey
in: header
name: X-Auth-Client
description: Your client id. Required in both auth modes.
Nonce:
type: apiKey
in: header
name: X-Auth-Nonce
description: A unique random string for this request.
Secret:
type: apiKey
in: header
name: X-Auth-Secret
description: 'Secret mode only: your client secret, sent instead of the timestamp, nonce and signature.'
Signature:
type: apiKey
in: header
name: X-Auth-Signature
description: Hex HMAC-SHA256 of `{client_id}:{timestamp}:{nonce}:{body}` using your secret. The body is empty for GET.
Timestamp:
type: apiKey
in: header
name: X-Auth-Timestamp
description: The current Unix time in seconds. Requests more than 5 minutes off are refused.