curl --request POST \
--url https://gateway-sandbox.matambaintelligence.com/v1/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"first_name": "Adaeze",
"last_name": "Okafor",
"gender": "F",
"date_of_birth": "1990-05-01",
"email": "adaeze@example.com",
"phone": "08000000000",
"mothers_maiden_name": "Example",
"street": "1 Example Street",
"city": "Ikeja",
"state": "LA",
"postcode": "100001",
"state_of_origin": "LA",
"lga_of_origin": "LA-IKJ",
"next_of_kin_name": "Ben Example",
"next_of_kin_phone": "08000000001",
"bank": "058",
"bank_account_name": "Adaeze Okafor",
"bank_account_number": "0000000021",
"bank_account_opened": "2015-06-01",
"bvn": "00000000101"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
first_name: 'Adaeze',
last_name: 'Okafor',
gender: 'F',
date_of_birth: '1990-05-01',
email: 'adaeze@example.com',
phone: '08000000000',
mothers_maiden_name: 'Example',
street: '1 Example Street',
city: 'Ikeja',
state: 'LA',
postcode: '100001',
state_of_origin: 'LA',
lga_of_origin: 'LA-IKJ',
next_of_kin_name: 'Ben Example',
next_of_kin_phone: '08000000001',
bank: '058',
bank_account_name: 'Adaeze Okafor',
bank_account_number: '0000000021',
bank_account_opened: '2015-06-01',
bvn: '00000000101'
})
};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/applications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/applications"
payload = {
"first_name": "Adaeze",
"last_name": "Okafor",
"gender": "F",
"date_of_birth": "1990-05-01",
"email": "adaeze@example.com",
"phone": "08000000000",
"mothers_maiden_name": "Example",
"street": "1 Example Street",
"city": "Ikeja",
"state": "LA",
"postcode": "100001",
"state_of_origin": "LA",
"lga_of_origin": "LA-IKJ",
"next_of_kin_name": "Ben Example",
"next_of_kin_phone": "08000000001",
"bank": "058",
"bank_account_name": "Adaeze Okafor",
"bank_account_number": "0000000021",
"bank_account_opened": "2015-06-01",
"bvn": "00000000101"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/applications"
payload := strings.NewReader("{\n \"first_name\": \"Adaeze\",\n \"last_name\": \"Okafor\",\n \"gender\": \"F\",\n \"date_of_birth\": \"1990-05-01\",\n \"email\": \"adaeze@example.com\",\n \"phone\": \"08000000000\",\n \"mothers_maiden_name\": \"Example\",\n \"street\": \"1 Example Street\",\n \"city\": \"Ikeja\",\n \"state\": \"LA\",\n \"postcode\": \"100001\",\n \"state_of_origin\": \"LA\",\n \"lga_of_origin\": \"LA-IKJ\",\n \"next_of_kin_name\": \"Ben Example\",\n \"next_of_kin_phone\": \"08000000001\",\n \"bank\": \"058\",\n \"bank_account_name\": \"Adaeze Okafor\",\n \"bank_account_number\": \"0000000021\",\n \"bank_account_opened\": \"2015-06-01\",\n \"bvn\": \"00000000101\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "application",
"id": "app_3rbw6yq2kd5mz7tcxf4n",
"state": "documents_required",
"reference": null,
"account": null,
"reason": null,
"reject_reason": null,
"param": null,
"created_at": "2026-09-25T05:58:40Z",
"updated_at": "2026-09-25T05:58:40Z",
"client_reference": null
}Apply for an account
Takes your customer’s application. We hold the identity details sealed, never logged, until the account opens or the application ends. If we haven’t asked the depository to open the account within 7 days of when you sent the application, or it becomes uncertain before we have, we erase them then. Then send its four documents with PUT /v1/applications/{id}/documents/{type}. After the fourth, we check the customer at the identity registries and their bank, open the account at the depository (CSCS) and add it to the broker. See How we check an application. Requires the apply scope.
curl --request POST \
--url https://gateway-sandbox.matambaintelligence.com/v1/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"first_name": "Adaeze",
"last_name": "Okafor",
"gender": "F",
"date_of_birth": "1990-05-01",
"email": "adaeze@example.com",
"phone": "08000000000",
"mothers_maiden_name": "Example",
"street": "1 Example Street",
"city": "Ikeja",
"state": "LA",
"postcode": "100001",
"state_of_origin": "LA",
"lga_of_origin": "LA-IKJ",
"next_of_kin_name": "Ben Example",
"next_of_kin_phone": "08000000001",
"bank": "058",
"bank_account_name": "Adaeze Okafor",
"bank_account_number": "0000000021",
"bank_account_opened": "2015-06-01",
"bvn": "00000000101"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
first_name: 'Adaeze',
last_name: 'Okafor',
gender: 'F',
date_of_birth: '1990-05-01',
email: 'adaeze@example.com',
phone: '08000000000',
mothers_maiden_name: 'Example',
street: '1 Example Street',
city: 'Ikeja',
state: 'LA',
postcode: '100001',
state_of_origin: 'LA',
lga_of_origin: 'LA-IKJ',
next_of_kin_name: 'Ben Example',
next_of_kin_phone: '08000000001',
bank: '058',
bank_account_name: 'Adaeze Okafor',
bank_account_number: '0000000021',
bank_account_opened: '2015-06-01',
bvn: '00000000101'
})
};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/applications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/applications"
payload = {
"first_name": "Adaeze",
"last_name": "Okafor",
"gender": "F",
"date_of_birth": "1990-05-01",
"email": "adaeze@example.com",
"phone": "08000000000",
"mothers_maiden_name": "Example",
"street": "1 Example Street",
"city": "Ikeja",
"state": "LA",
"postcode": "100001",
"state_of_origin": "LA",
"lga_of_origin": "LA-IKJ",
"next_of_kin_name": "Ben Example",
"next_of_kin_phone": "08000000001",
"bank": "058",
"bank_account_name": "Adaeze Okafor",
"bank_account_number": "0000000021",
"bank_account_opened": "2015-06-01",
"bvn": "00000000101"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/applications"
payload := strings.NewReader("{\n \"first_name\": \"Adaeze\",\n \"last_name\": \"Okafor\",\n \"gender\": \"F\",\n \"date_of_birth\": \"1990-05-01\",\n \"email\": \"adaeze@example.com\",\n \"phone\": \"08000000000\",\n \"mothers_maiden_name\": \"Example\",\n \"street\": \"1 Example Street\",\n \"city\": \"Ikeja\",\n \"state\": \"LA\",\n \"postcode\": \"100001\",\n \"state_of_origin\": \"LA\",\n \"lga_of_origin\": \"LA-IKJ\",\n \"next_of_kin_name\": \"Ben Example\",\n \"next_of_kin_phone\": \"08000000001\",\n \"bank\": \"058\",\n \"bank_account_name\": \"Adaeze Okafor\",\n \"bank_account_number\": \"0000000021\",\n \"bank_account_opened\": \"2015-06-01\",\n \"bvn\": \"00000000101\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "application",
"id": "app_3rbw6yq2kd5mz7tcxf4n",
"state": "documents_required",
"reference": null,
"account": null,
"reason": null,
"reject_reason": null,
"param": null,
"created_at": "2026-09-25T05:58:40Z",
"updated_at": "2026-09-25T05:58:40Z",
"client_reference": null
}Authorizations
Headers
A key you choose to identify this request. Send the same key every time you retry the request. Once used, a key stays tied to that request permanently. It must be printable ASCII with no spaces, and we compare it byte for byte. Send the header only once.
1 - 255^[!-~]+$Body
Your customer's details, for us to check and open their account.
We check that every required field is there; that each field is at most 200 characters, trimmed at both ends, with no control or invisible characters; that each name (first_name, middle_name, last_name, mothers_maiden_name, next_of_kin_name and bank_account_name) is Latin letters, with or without accents, and a single space, a hyphen, an apostrophe or a full stop between words, within its own maxLength; that dates are real dates on or after 1900-01-01 and not in the future; that the customer is 18 or older today in West Africa Time (WAT); that gender is M or F; that bvn and nin are 11 digits; that bank_account_number is 10 digits; that email is an address, as a browser's email field takes one, with a dot in its domain, and at most 40 characters; that state, state_of_origin, lga_of_origin and bank are shaped like the codes in the reference lists; and that bank isn't a bank whose licence the CBN revoked. Before the depository is asked, a state, state_of_origin or lga_of_origin the broker's lists don't hold ends the application rejected, with reject_reason invalid_field and param naming it, and a bank the depository doesn't take ends it rejected, with reject_reason declined_by_depository and param bank. The broker checks everything else when we add the account to it, after the depository has opened it: a field it can't accept ends the application rejected, with reject_reason rejected_by_broker. We reject unknown fields and any field that appears twice, even with different letter case.
The customer's email address, as a browser's email field takes one: one @, no spaces, at most 64 characters before the @, and a dot in the domain. At most 40 characters, the most the depository (CSCS) takes: a longer one is refused with 400 invalid_request, param set to email. In the sandbox, use a new value for each application: the sandbox's broker refuses one it has already accepted, from any partner.
1 - 40The customer's Bank Verification Number: 11 digits. We check it at the identity registry: the first and last names and the date of birth must match its record. In the sandbox, use one of the test identities.
^[0-9]{11}$The customer's existing CHN (Clearing House Number), from any broker, if they have one. We open the account under it, so the customer keeps one CHN. Letters and digits, 6 to 20 of them: we remove spaces and read letters as upper case. We take it only where we've enabled it for your company. Otherwise, and for a CHN of any other form, we refuse the application with 400 invalid_request, param set to chn.
200Your own reference for this, such as your internal ID, so you can find it again. 1 to 64 printable ASCII characters, with no spaces, matched exactly. We store it and return it. It's part of the request an Idempotency-Key stands for, so a retry with a different client_reference returns 409. Never put personal data in it: no names, phone numbers, email addresses, BVN, NIN or account numbers of your customers.
1 - 64^[!-~]{1,64}$"ord-88213"
Response
This idempotency key was already used for this same application, so we didn't send anything new. state is the application's state now. It reads sending while the first request is in progress, or after it if its outcome was not recorded.
An application to open a brokerage account for your customer.
sending: being stored, while your request is in progress. If it still reads sending after its request has ended, its outcome was not recorded, and our operations team reconciles it. documents_required: we have it, and need the customer's four documents. submitted: we have its four documents, and are checking the customer's identity and opening the account. opened: account is the new account, and you can trade for it. uncertain: we couldn't read an answer from a registry, the depository or the broker, or couldn't confirm a step, or we hadn't asked the depository to open the account within 7 days of when you sent it, or another answer needs a person; reason says which. Our operations team settles it: it becomes submitted again, and opens or ends as any other application does, or it ends unplaced. One that becomes uncertain before we've asked the depository can only end unplaced. rejected: see reject_reason and param. refused: we couldn't take it, and sent nothing. unplaced: our operations team found that no account was opened for it. You can send it again under a new key. New values can be added: handle an unrecognised value with a safe default.
sending, documents_required, submitted, opened, uncertain, rejected, refused, unplaced Why the application was rejected. Set only when state is rejected. New values can be added: handle an unrecognised value with a safe default.
invalid_field, already_at_broker, rejected_by_broker, declined_by_broker, identity_mismatch, bank_account_mismatch, identity_unverified, declined_by_depository, null