Who can have an account
An account is for one Nigerian who lives in Nigeria. We open every account as an individual’s, with Nigeria as country of residence and nationality, the only values the broker publishes. The API doesn’t open joint or company accounts. The customer must be 18 or older on the day you apply, in West Africa Time (WAT). We refuse a younger customer with400 invalid_request and param set to date_of_birth.
The broker decides each application: a refusal comes back as one of the application reject reasons, or as uncertain if the broker gives a reason it doesn’t publish.
Your customer’s identity
Know your customer (KYC) checks are yours: check your customer’s identity before you apply, as your own obligations require. Send the four documents after the application: see Send the documents. We also check the application, against the identity registries and the customer’s bank, before we open anything: see How we check an application. We hold the customer’s details and documents, sealed, only until the application ends: see Your customers’ data.1. Look up the codes
Four fields take a code from the broker’s lists, not free text:2. Send the application
SendPOST /v1/applications with a new Idempotency-Key. The example is one of the sandbox’s test identities. In the sandbox, change its email to an address of your own first: see In the sandbox.
Response
When we add the account, the broker checks the application too. It publishes these formats:
Where the broker publishes no format, we send the field as you write it, trimmed of spaces at each end, so check it before you send.
When the depository’s form can’t carry a field, such as an
lga_of_origin the broker’s list doesn’t name, the application ends rejected with reject_reason invalid_field and param naming the field, before anything is opened: correct the field and send it with a new key. The form takes the street on three lines of at most 35 characters each, split at commas and spaces, so a longer street, or a word longer than a line, is refused this way, before any identity check.
When the broker refuses a field or the application, it ends rejected with reject_reason rejected_by_broker and no param. The depository has already opened the customer’s account, so don’t send a corrected application, which would end already_at_broker: contact us with the application’s id instead.
An error never repeats a field’s value.
3. Read the answer
Nothing is checked or sent anywhere until the fourth document arrives. Every other refusal, and whether each stored your key, is in Idempotency.
Send the documents
The broker needs four documents for every account. Once the application isdocuments_required, send each in its own request, in any order, with the file as the body. We also take them while it’s submitted: sending one again is how you check it. $APPLICATION_ID is the application’s id:
--data-binary: -d changes its bytes. The answer is the document:
Response
Each must be a whole JPEG or PNG, sent with the
Content-Type of what it is (image/jpeg or image/png), smaller than 1,000,000 bytes and at most 8,000 pixels wide and high. A PDF is refused with 415 unsupported_media_type: convert it to an image. The broker doesn’t publish what each document must show, or how it wants a two-sided card; if its staff can’t use one, we tell you. We check each file and hold it, sealed, until the depository has opened the account, then send it to the broker and erase our copy once the account opens.
At most two of your documents are on their way to us at once, and four across all partners: send the four one or two at a time. One more is answered 429 rate_limited before its body is read.
Before you send:
- Keep each file, byte for byte, until it’s
delivered. An unconfirmed answer is settled by sending the same bytes again: a file compressed again is a different file. - If a request times out, send the same file again: the answer is
409 document_in_flightuntil the first request ends, then the document,deliveredonce we hold it. When we hold all four, the application becomessubmitted, with anapplication.submittedevent.
Every other answer is in the API reference’s Send a document:
400, 403, 404, and 503 while trading is paused or our service is.
How we check an application
When the fourth document arrives, the application issubmitted, and we open the account ourselves, in these steps:
- We check the codes:
stateandstate_of_originagainst the broker’s list of states,lga_of_originagainst its list for the state of origin, andbankagainst the banks the depository (CSCS) takes. - We check the customer’s BVN at the identity registry, their NIN too if you sent one, and their bank account at their bank.
- We open the customer’s account at the depository.
- We add the account to the broker, and send it the four documents.
opened, with an application.opened event carrying the account code.
Names and the date of birth must match what the identity registry holds under the BVN, and the NIN if you sent one:
When a check fails, the application ends
rejected, with an application.rejected event:
For
identity_mismatch and identity_unverified, check the field with the customer, correct it, and send the application again with a new key. For bank_account_mismatch, check bank and bank_account_number with the customer, and send an account in the customer’s own name, at the bank that holds it: a joint or business account doesn’t open one. Each of these three with a param counts toward the 3 below. For declined_by_depository with param bank, send it again under a new key, with the customer’s account at another bank; with no param, contact us before you send it again. Each reason is also in Application reject reasons.
Once the checks reject one BVN 3 times in 24 hours, from any partner, we stop checking it, so no one can learn a customer’s details one field at a time. An application with that BVN then ends identity_unverified with no param, without asking the registries. Check every field with the customer, wait 24 hours, then send it again with a new key.
If a registry or the customer’s bank doesn’t answer, the application stays submitted and we ask again 30 minutes later, then 2 hours after that, then 8 hours after that. If the fourth ask has no answer either, or an answer can’t be read, or we can’t confirm a step, the application becomes uncertain, and our operations team settles it. Either way, wait: don’t send it again under a new key.
If we haven’t asked the depository to open the account within 7 days of when you sent the application, it becomes uncertain, even if it’s still waiting for its documents. One that becomes uncertain for any reason before we’ve asked the depository can only end unplaced, so we erase what we held for it at once: once it’s unplaced, send it again with a new key, then its documents. Once we’ve asked the depository, we keep what we hold until the account opens or the application ends.
Our operations team settles an uncertain application according to how far it got:
4. Wait for the account to open
The depository opens an account in its own time: up to a day, it says, and the first opened through the API took under an hour and a half. Then we add the account to the broker and send it the four documents. The broker may review the account before it confirms it, in a time the broker sets: we don’t promise one. If it’s stillsubmitted at the end of the next business day after its fourth document, contact us with its id.
While your partner account is suspended or closed, or trading is paused for you or for every partner, your submitted applications wait: we take no further step, and one in progress stops before its next step. Once the suspension or pause is lifted, they go on where they stopped. The 7 days above keep running.
We look at applications waiting on a registry, the depository or the broker about every 10 seconds. Each look takes up to 10 applications, across all partners, the ones furthest along first, then the oldest. We look at each application at every look for 5 minutes after its last step, then less often as it waits, and at least every 10 minutes, until it opens or ends. One we haven’t yet asked the depository about becomes uncertain when it reaches the 7 days above.
When the broker confirms the account, we record the application as opened, with the account code in account, and you receive an application.opened event carrying it. reference is our reference for the account at the broker, set when we add it:
Opened application
GET /v1/accounts, with application set to the application’s id.
From the broker’s answer we read the account number or, when it gives none, the sentence it writes about the account. The broker doesn’t publish the statuses its answer can carry, so a decline can’t be read from it: our operations team records a declined application as rejected, with reject_reason declined_by_broker.
If the broker says it holds nothing under our reference, or gives no account and a status we can’t read, at least 10 minutes after the last document reached it, the application becomes uncertain, and our operations team reconciles it with the broker. Its reason reads The broker says it holds no application under this reference. or The broker gave no account for this application and said something about it we could not read., each followed by Our operations team is reconciling it with the broker. For both, wait, and don’t send it again under a new key. Either way it becomes submitted again, with an application.submitted event, and opens or ends as any other application does: if the broker doesn’t hold the account, we send it to the broker again first.
Application states
Each move to a state after
sending sends an application.<state> event.
A customer the broker already knows
Each person has one account. An application endsrejected with reject_reason already_at_broker, after its fourth document, when another application with the same BVN, from any partner, has already reached the depository, unless the depository declined it or it ended unplaced. It also ends that way when the broker already knows its BVN or its email address, as a customer’s or an applicant’s. The answer doesn’t say which, or through whom.
Don’t send the same application again. If your customer already has an account with the broker, we can link it to you. Contact us with the application’s id, and we tell you how to send the customer’s written consent. Once the broker confirms the account is theirs, we link it to you, and you use its account code like any other.
A customer who already has a CHN
A customer has one CHN (Clearing House Number) at the depository for life, and each broker’s account for them opens under it. If your customer already has one, from any broker, send it aschn: we open the account under it, so they don’t get a second. We take chn only where we’ve enabled it for your company. If the depository opens the account under another CHN, the application becomes uncertain, we don’t add the account to the broker, and our operations team reconciles it with the depository.
What the API doesn’t do yet
An application whose documents you won’t send becomesuncertain 7 days after you sent it, and what we held for it is erased. Our operations team then ends it unplaced. Until it’s uncertain, it counts toward your applications in progress.
The API can’t replace a delivered document. To replace one, such as one the broker’s staff can’t use, send us the application’s id and the document’s type, never the file, and we take it to the broker; we don’t promise a time.
Once an account is open, the API can’t yet change a customer’s details, close the account, or move its shares to another broker. For any of these, send us the account code and what you need, without the customer’s personal details, and we take it to the broker.
In the sandbox
The sandbox checks an application as live does, against registries and banks that hold only its test identities, and opens the account at its own depository. Use one of them: any other BVN, but the sandbox’s test values, endsidentity_unverified. Its depository takes the banks CSCS takes, so any other bank ends declined_by_depository with param bank, as in live. Each test identity whose account opens does so every time, for any partner, except Fatima Bello: she is held to one account, as every person is in live, so once hers is open an application with her BVN ends already_at_broker. That page also shows how to make each check fail, an identity the depository declines and one the broker rejects. Where we’ve enabled chn for you, the sandbox’s depository opens the account under the CHN you send.
The sandbox takes any whole JPEG or PNG for a document. Never send a real customer’s documents to the sandbox.
The sandbox’s broker refuses Ngozi Eze’s account, so you can rehearse rejected_by_broker, after the depository has opened the account, as in live: in live, don’t send it again, but contact us with its id. A state, state_of_origin or lga_of_origin that isn’t in its lists ends rejected with invalid_field and param naming the field, before anything is checked or opened, as in live.
The sandbox’s broker keeps the email address of every account added to it, from every partner, until the sandbox restarts, and an application with one of them ends already_at_broker. Before you send the example above, change its email to an address of your own. The Postman collection does this on each run.