Bitnob Customers API
The people and businesses you serve. Creating and editing them needs the customers feature.
The people and businesses you serve. Creating and editing them needs the customers feature.
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-customers-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 Customers 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: The people and businesses you serve. Creating and editing them needs the customers feature.
name: Customers
paths:
/api/customers:
get:
tags:
- Customers
summary: List customers
description: Lists your customers, newest first, with optional filters. To get the next page, pass next_cursor as after.
operationId: customersList
parameters:
- description: Page size. limit is accepted as an alias. Values below 1 use the default; values above 50 are capped at 50.
example: 20
in: query
name: page_size
schema:
default: 20
maximum: 50
minimum: 1
type: integer
- description: Alias for page_size.
example: 20
in: query
name: limit
schema:
default: 20
maximum: 50
minimum: 1
type: integer
- description: Opaque cursor from the previous page's next_cursor.
example: eyJ0aW1lc3RhbXAiOiIyMDI2LTEwLTI3VDEwOjMxOjQ1LjEyWiIsImlkIjoiMDE5YTNjMTEifQ
in: query
name: after
schema:
type: string
- description: Alias for after.
example: eyJ0aW1lc3RhbXAiOiIyMDI2LTEwLTI3VDEwOjMxOjQ1LjEyWiIsImlkIjoiMDE5YTNjMTEifQ
in: query
name: cursor
schema:
type: string
- description: Alias for after.
example: eyJ0aW1lc3RhbXAiOiIyMDI2LTEwLTI3VDEwOjMxOjQ1LjEyWiIsImlkIjoiMDE5YTNjMTEifQ
in: query
name: next_cursor
schema:
type: string
- description: Case-insensitive match on part of the email. The value must itself be a valid email address (400 otherwise).
example: adaeze.okafor@example.com
in: query
name: email
schema:
format: email
type: string
- description: Exact phone number, without the dial code.
example: '8000000001'
in: query
name: phone_number
schema:
type: string
- description: Comma-separated list of customer types, at most 50 values.
examples:
one_type:
summary: Businesses only
value: business
several:
summary: Individuals and businesses
value: individual,business
in: query
name: customer_type
schema:
example: individual,business
type: string
- description: Case-insensitive match on part of the first name.
example: Adaeze
in: query
name: first_name
schema:
type: string
- description: Case-insensitive match on part of the last name.
example: Okafor
in: query
name: last_name
schema:
type: string
- description: Case-insensitive match on part of the company name.
example: Acme Logistics Ltd
in: query
name: company_name
schema:
type: string
- description: Comma-separated list of ISO 3166-1 alpha-3 country codes, at most 50 values.
example: NGA,GHA
in: query
name: country
schema:
type: string
- description: Comma-separated list of ID document types, at most 50 values.
example: bvn,nin
in: query
name: id_type
schema:
type: string
- description: Exact city.
example: Lekki
in: query
name: city
schema:
type: string
- description: Exact state.
example: Lagos
in: query
name: state
schema:
type: string
- description: Filter by whether the customer is active.
example: true
in: query
name: is_active
schema:
type: boolean
- description: Case-insensitive match on part of the first name, last name, email or company name.
example: okafor
in: query
name: search
schema:
maxLength: 255
type: string
- description: Creation-date window. When set it overrides start_date and end_date, except custom, which requires both with start_date before end_date, and all_time, which sets no window of its own so the dates still apply.
example: last_7_days
in: query
name: period
schema:
enum:
- all_time
- last_7_days
- last_1_month
- last_3_months
- last_6_months
- last_12_months
- year_to_date
- custom
type: string
- description: Start of the creation-date window, RFC 3339 or YYYY-MM-DD.
example: '2026-10-01'
in: query
name: start_date
schema:
type: string
- description: End of the creation-date window, RFC 3339 or YYYY-MM-DD. A bare date means the start of that day.
example: '2026-10-30T23:59:59Z'
in: query
name: end_date
schema:
type: string
post:
tags:
- Customers
summary: Create a customer
description: Creates a customer. If one with the same email, phone number or ID document already exists, that customer is returned instead, so retries are safe.
operationId: customersCreate
requestBody:
content:
application/json:
examples:
business:
summary: A business with a BVN, ready for an NGN virtual account; company_name and registration_number are required
value:
city: Apapa
company_name: Acme Logistics Ltd
country: NGA
customer_type: business
date_of_birth: '1985-02-17'
dial_code: '+234'
email: finance@acmelogistics.example.com
first_name: Tunde
id_number: '22200000000'
id_type: bvn
last_name: Bakare
line1: 4 Creek Road
metadata: '{"crm_id":"acct_sbx_2231"}'
phone_number: '8000000002'
registration_number: RC0000001
state: Lagos
individual:
summary: An individual with a BVN, ready for an NGN virtual account
value:
city: Lekki
country: NGA
customer_type: individual
date_of_birth: '1990-04-12'
dial_code: '+234'
email: adaeze.okafor@example.com
first_name: Adaeze
id_number: '22200000000'
id_type: bvn
last_name: Okafor
line1: 12 Admiralty Way
phone_number: '8000000001'
postal_code: '106104'
state: Lagos
minimal:
summary: Only the required fields
value:
customer_type: individual
email: kwame.mensah@example.com
schema:
$ref: '#/components/schemas/CustomersCreateRequest'
required: true
/api/customers/countries:
get:
tags:
- Customers
summary: List supported countries
description: Lists the countries you can onboard customers in.
operationId: customersListCountries
/api/customers/countries/{countryCode}/states:
get:
tags:
- Customers
summary: List states for a country
description: Lists the states or provinces of a country.
operationId: customersListStates
parameters:
- description: ISO 3166-1 alpha-2 or alpha-3 country code.
examples:
alpha2:
summary: ISO 3166-1 alpha-2, any case
value: gh
alpha3:
summary: ISO 3166-1 alpha-3
value: NGA
in: path
name: countryCode
required: true
schema:
example: NGA
maxLength: 3
minLength: 2
type: string
/api/customers/{customerId}:
get:
tags:
- Customers
summary: Get a customer
description: Returns one of your customers, including card counts and card KYC status.
operationId: customersGet
parameters:
- description: ID of the customer.
example: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
in: path
name: customerId
required: true
schema:
format: uuid
type: string
put:
tags:
- Customers
summary: Update a customer
description: Updates the fields you send and keeps the rest.
operationId: customersUpdate
parameters:
- description: ID of the customer.
example: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
in: path
name: customerId
required: true
schema:
format: uuid
type: string
requestBody:
content:
application/json:
examples:
change_contact:
summary: Change the phone number and address
value:
city: Ikoyi
line1: 7 Bourdillon Road
phone_number: '8000000009'
deactivate:
summary: Deactivate the customer
value:
is_active: false
schema:
$ref: '#/components/schemas/CustomersUpdateRequest'
required: true
delete:
tags:
- Customers
summary: Delete a customer
description: Deletes one of your customers.
operationId: customersDelete
parameters:
- description: ID of the customer.
example: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
in: path
name: customerId
required: true
schema:
format: uuid
type: string
components:
schemas:
CustomersIdType:
enum:
- passport
- drivers_license
- national_id
- bvn
- nin
- vnin
- voters_card
- ghana_card
type: string
CustomersWritableFields:
properties:
city:
description: City. On create, at least 2 characters and written in the Latin alphabet.
maxLength: 100
type: string
company_name:
description: Company name. Required for business customers. On create, at least 2 characters.
maxLength: 200
type: string
country:
description: ISO 3166-1 alpha-3 country code.
maxLength: 3
minLength: 3
type: string
customer_type:
$ref: '#/components/schemas/CustomersCustomerType'
date_of_birth:
description: YYYY-MM-DD. The customer must be at least 18, and the date no more than 120 years ago.
format: date
type: string
dial_code:
description: International dial code, for example +234.
example: '+234'
maxLength: 5
type: string
email:
description: Email address.
format: email
maxLength: 255
type: string
first_name:
description: First name.
maxLength: 100
type: string
id_number:
description: Number on the identity document. On create, 4 to 50 letters, digits, spaces, hyphens, slashes or dots.
maxLength: 50
type: string
id_type:
$ref: '#/components/schemas/CustomersIdType'
last_name:
description: Last name.
maxLength: 100
type: string
line1:
description: Address line 1. On create, at least 5 characters and written in the Latin alphabet.
maxLength: 200
type: string
metadata:
description: A JSON object encoded as a string, at most 5KB once stored. Stored but never returned. A value that is not a JSON object is stored as empty. On update it replaces what was stored.
type: string
phone_number:
description: Phone number without the dial code.
maxLength: 20
type: string
postal_code:
description: Postal code. On create, 3 to 12 characters using letters, digits, spaces and hyphens.
maxLength: 20
type: string
registration_number:
description: Business registration (RC) number; required for business customers, 4 to 50 characters.
maxLength: 50
type: string
state:
description: State. On create, at least 2 characters and written in the Latin alphabet.
maxLength: 100
type: string
type: object
CustomersUpdateRequest:
allOf:
- $ref: '#/components/schemas/CustomersWritableFields'
- properties:
is_active:
type: boolean
type: object
CustomersCreateRequest:
allOf:
- $ref: '#/components/schemas/CustomersWritableFields'
- required:
- email
- customer_type
type: object
CustomersCustomerType:
enum:
- individual
- business
- team_member
type: string
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.