Manage your customers
Create, find, change and close the customers you move money for, with one set of calls and two webhook events.
A customer is an individual or a business you act for. It is an account holder,
not a user: it has no login of its own, and everything it does, you do on its
behalf. Customers are available on a Remittance account. They need the
customers:write scope to create, change and close, and customers:read to
read and search — see Products and scopes.
A Collections or USDT rails account has no customers and is refused with
product_not_supported.
Every customer belongs to you alone. A customer of another partner reads exactly like one that does not exist, and no call can ever name another partner's.
1. Create a customer
POST /v1/customers
Content-Type: application/json{
"type": "individual",
"externalRef": "acme-cust-0042",
"displayName": "Amina Wanjiru",
"email": "amina@example.com",
"phone": "+447700900123",
"countryOfResidence": "GB"
}typeisindividualorbusiness, and it can never be changed afterwards.externalRefis your own id for the customer, and is optional. It is 1 to 64 characters of letters, digits and. _ : -, and unique among your own customers. Create a second customer with the same one and you get409 CUSTOMER_EXTERNAL_REF_TAKEN.displayNameis what you call them, up to 200 characters. It is the name you see in lists and searches, not a legal name.phoneis E.164, for any country: a+, then 8 to 15 digits, the first not zero.0712345678is refused;+254712345678is accepted. It is not unique.countryOfResidenceis an ISO 3166-1 alpha-2 code in upper case:GB, notUK. It must be a country we can open accounts in. For a customer who lives anywhere else, the call is refused with422 CUSTOMER_RESIDENCE_NOT_SUPPORTEDand nothing is created: the message names the country (for exampleIran (IR)) anddetails.countrycarries the code you sent. It is checked here, rather than after the customer has been through identity verification, so nobody is verified for an account that cannot open.emailis stored in lower case.
The answer is a 201 with the customer:
{
"id": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f",
"type": "individual",
"status": "pending_kyc",
"externalRef": "acme-cust-0042",
"displayName": "Amina Wanjiru",
"email": "amina@example.com",
"phone": "+447700900123",
"countryOfResidence": "GB",
"legalName": null,
"createdAt": "2026-11-17T09:30:00.000Z",
"updatedAt": "2026-11-17T09:30:00.000Z",
"closedAt": null
}Send only the fields above. A body carrying any other field, such as status
or legalName, is refused with 400 UNKNOWN_BODY_FIELD and details.fields
names them, rather than being accepted with the extra field quietly dropped.
Statuses
status is one of eight values: pending_kyc, kyc_in_review, needs_info,
awaiting_terms, verified, rejected, suspended and closed. A customer you
create starts at pending_kyc. Identity verification moves it through the
others, and until it has run for a customer, that customer stays pending_kyc.
closed is final: nothing moves a closed customer back.
legalName is null until identity verification sets it from the customer's
documents. It is never something you send.
2. Find a customer
List your customers, newest first. For example, ?q=amina&status=pending_kyc&limit=25
finds up to 25 customers at pending_kyc that match "amina":
GET /v1/customersEvery parameter is optional, and they combine:
| Parameter | What it does |
|---|---|
q | Searches display name, legal name, email, phone number and your externalRef. 2 to 100 characters, any case, matches anywhere. |
status | Only customers at this status. |
externalRef | Your own id, matched exactly. The way to look a customer up from a record of yours. |
limit | Page size. The default is 50, and a value above 100 is treated as 100. |
cursor | The nextCursor of the previous page. |
A parameter this list does not take is ignored, not refused: a misspelt
?staus=closed returns an unfiltered page. Check the spelling when a filter
seems to do nothing.
Search by what you know about the customer, not by an id. q=amina, q=+4477,
q=example.com and q=acme-cust all work. A q of one character is refused
with a validation error naming q.
The answer is a 200 with one page:
{
"data": [
{
"id": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f",
"type": "individual",
"status": "pending_kyc",
"externalRef": "acme-cust-0042",
"displayName": "Amina Wanjiru",
"email": "amina@example.com",
"phone": "+447700900123",
"countryOfResidence": "GB",
"legalName": null,
"createdAt": "2026-11-17T09:30:00.000Z",
"updatedAt": "2026-11-17T09:30:00.000Z",
"closedAt": null
}
],
"nextCursor": null
}nextCursor is null on the last page. Otherwise pass it back as cursor
for the next page. It is opaque: pass back only a value this list gave you, or
you get 400 INVALID_CURSOR, and start again from the first page.
Read one customer back with GET /v1/customers/{id}. That call, and the list,
keep working while your own account is suspended; everything that writes does not.
3. Change a customer
PATCH /v1/customers/{id}
Content-Type: application/json{
"displayName": "Amina K. Wanjiru",
"phone": "+254712345678"
}You can change displayName, email, phone, externalRef and
countryOfResidence. Send only what changes: the answer is the whole customer
after the change.
What you cannot change:
typeandlegalNameare never yours to set. Sending either is422 CUSTOMER_FIELD_KYC_OWNED, anddetails.fieldsays which. Nothing is changed, so the other fields in that request were not applied either.countryOfResidencecan be corrected only while the customer ispending_kyc. Once identity verification has started, the country is what it is checked against, and a change is422 CUSTOMER_FIELD_KYC_OWNEDwithdetails.fieldofcountryOfResidence. The new country must be one we can open accounts in, as at create: otherwise422 CUSTOMER_RESIDENCE_NOT_SUPPORTED, and nothing is changed.externalRefcan be changed, andnullclears it. The new value must still be unique among your customers.- A closed customer cannot be changed at all:
409 CUSTOMER_CLOSED. - A change that names no field is
400 NOTHING_TO_UPDATE. - If the customer changes again while your change is being applied (for example
their identity check moves them on at the same moment), nothing is changed and
the answer is
409 CUSTOMER_UPDATE_CONFLICT. Read the customer, and send the change again if it still applies.
4. Close a customer
DELETE /v1/customers/{id}
Content-Type: application/json{
"reason": "Left the programme"
}The body is optional. Send { "reason": "…" } (up to 500 characters) to record
why the customer was closed; leave the body out and the customer is closed
without a reason. The answer is a 200 with the customer, now closed and with
closedAt set, not a 204.
A close is soft. The customer stays readable, by id and in lists, at
status: closed, and cannot be changed again. To work with that person or
business again, create a new customer. Closing one that is already closed is
409 CUSTOMER_ALREADY_CLOSED: nothing to do, and a read confirms it.
A customer with accounts
A customer is closed together with its accounts, and only when nothing of the customer's is in them, on its way in, or on its way out: an internal transfer, a payout, a conversion or a partner fee that has not finished (still waiting for its code, queued, being sent, or with the bank) counts as moving, so the close waits for it rather than strand the money. The close is refused, before anything is closed, for the first of these that is true, and each refusal names its own cause because the next step differs:
| Status | Code | What it means | What to do |
|---|---|---|---|
409 | CUSTOMER_ACCOUNT_OPENING | An account is still being opened. details.currencies names it. | Read the accounts, wait until it is active, then close again. |
409 | CUSTOMER_HAS_HELD_DEPOSITS | Deposits for this customer are under review. details.deposits counts them. | Contact us to have them released or returned. Waiting does not clear it. |
409 | CUSTOMER_ACCOUNT_FROZEN | An account is frozen or dormant. details.currencies names it, details.state says which. It cannot be read, so it is never shown empty. | Contact us to have the account reviewed. Retrying does not clear it. |
409 | CUSTOMER_HAS_MOVEMENTS_IN_FLIGHT | A transfer, payout, conversion or fee of this customer is still moving, or moved while the close ran. details counts each kind (internalTransfers, payouts, conversions, feeLegs), never ids. | Wait until they finish, then close again. A SWIFT or RTGS payout can take several days; if anything else is still in flight after an hour, contact us. |
409 | CUSTOMER_HAS_BALANCE | An account holds money. details.currencies names the accounts that do. | Move it out first, with a payout or an internal transfer to your own account (no OnLink fee, so it can bring the balance to exactly zero), then close again. If you cannot move it, contact us to arrange returning it. |
503 | CUSTOMER_BALANCE_UNAVAILABLE | A balance could not be read, so it cannot be known to be empty. Nothing was changed. | Try again shortly. A balance we cannot read is never treated as zero. |
409 | CUSTOMER_DEPOSITS_IN_FLIGHT | A deposit has arrived and is still being credited. details.deposits counts them. A frozen or dormant account is refused first. | Wait a few minutes and close again. If it persists past an hour, contact us. |
503 | CUSTOMER_ACCOUNT_CLOSE_UNCONFIRMED | The customer's US bank details could not be confirmed switched off. The customer was not closed, but its US bank details may already be off. | Try again. A repeat is safe and finishes the job. |
When none applies, the customer's US bank details are switched off, the customer's
accounts are closed and the customer is closed, in one step: you get the closed
customer and one customer.updated webhook, and you never see a customer closed
with an account left open. A closed account is never reused; a new customer gets
new accounts. Closing from the portal applies the same rule and returns the same
codes.
The close and a new movement cannot cross. A transfer or payout for a
customer whose close has already been recorded is refused 409 CUSTOMER_NOT_ACTIVE
(the customer is closed). One created while the close was running is counted by the
close, even if it has already finished, and the close answers
CUSTOMER_HAS_MOVEMENTS_IN_FLIGHT: close again once it is done. Either way no money is
left moving on, or newly arrived in, an account that has been closed.
A refused close can still have switched the US bank details off. The switch-off is a call to the account provider and cannot be undone with the close. If a close is refused after it (a deposit arrived in the meantime, or switching off a second account failed), the customer stays open, with the refusal's own code, but its US bank details may already be off. Close the customer again once the refusal is resolved: a repeat is safe and finishes the job. Until then a payer using those details cannot pay in.
Two things a close does not do. It does not give the customer's money back: that is
why a balance blocks it. And it does not stop the bank accepting a KES payment sent
later to the closed customer's account number, because that account itself stays
open at the bank. You are not told when that happens: the account reads closed
and no webhook is sent for a payment to it. Tell the customer to stop using the
details once the customer is closed, and contact us if a payment is made to a closed
customer's KES number, so we can trace and return it. The US bank details are
switched off, and a USD deposit that still reaches a closed customer is held for
review and can only be returned, never credited.
5. Verify a customer on the hosted page
POST /v1/customers/{id}/kyc-link gives you a URL for a page that is yours, not
ours: your name, your colour and your support address. The page's own text names
neither us nor any provider. The one exception is the identity-check consent the law
requires: before the check begins, the customer reads a notice that names the company
running the checks and the processors it uses, and a business representative and
each director see it too. The identity check and the account terms open in
frames that keep their own styling. Send the customer there (in your app's web
view, or in a message). For an individual, the page collects the customer's address
and account-use answers, runs the identity check, and asks them to accept the
account terms. For a business, it walks the company's representative through the
company's details, documents and directors, then asks them to accept the account
terms (see "A business customer on the page" below). The customer never signs in,
and the link is the only credential they hold.
The call needs customers:write, takes no body, and answers 201 with
{ "url": "…", "expiresAt": "…", "purpose": "widget" }. The url is shown once and
is a credential: we keep only a hash of it, so a lost link cannot be read back, and
you send a new one instead. A new link replaces the earlier one of the same kind.
purpose is widget for the identity and details page, and terms for a customer
whose identity is approved and who has not accepted the account terms: that customer
gets the terms page alone, because there is no identity step left. Only a customer
at pending_kyc, needs_info or awaiting_terms can be sent a link, and so can a
business at kyc_in_review whose reason is not finalising (it is still waiting
on company documents or on its directors, and its first link may have expired by now).
An individual at kyc_in_review, and a business that is finalising, have nothing
left to do on the page; any other status is 409 CUSTOMER_KYC_NOT_OPEN, and
details.status names it. You can issue at most 20 links a minute for your account.
The hosted page can be switched off for the platform. While it is, asking for an
identity link is 503 KYC_WIDGET_DISABLED and identity links you sent earlier stop
opening, but terms links and the API route in section 6 are not affected. Contact us;
retrying does not clear it.
A business customer on the page
Send the same link for a business customer (type business); you do not need to
verify a business through the API unless you prefer to (section 7). While the company
is under review and still owes documents or director checks, send a fresh link when
the earlier one has expired: it opens the step still owed and never asks for a step
that is finished. The page shows the
company's representative their own steps instead of the individual's, and a business
link never asks for an identity check of one person:
- Business terms. The representative accepts the business terms before anything about the company is looked up. We record the acceptance with the application.
- The company. The country the company is registered in, then its registration details. For a company registered in Kenya that is the registration number, the postal code and the P.O. Box, and the company's name, address and directors come from the business registry. For a company registered anywhere else it is the company's name, registration number and address, and optionally its tax number.
- Documents. The company documents. A company registered outside Kenya must upload its certificate of incorporation; for a Kenyan company they are optional. A Kenyan company the registry could not find is invited to upload its certificate to help the reviewer, and is never blocked for not doing so.
- Directors. The page lists each director and owner. The representative invites each one who has not verified, by email; the director opens their own link on their own device, verifies their identity and gives their home address. The invitation link is never shown on the page.
- Hand in. The representative hands the application in. If something is still outstanding (a director not yet invited, or a document still wanted), the page says what instead of closing.
Once the company is approved, the customer reaches awaiting_terms and the page asks
for the account terms, exactly as it does for an individual. Everything on this page is
the same state and the same customer.kyc.updated history as the API route in section
7, so you can read it with GET /v1/customers/{id}/kyb. A company detail or a
director's home address that has not been given keeps the customer at needs_info with
business_details_incomplete, and the page asks for it; you can also send company
details yourself with PATCH …/kyb/details.
The page opens the steps that match the customer's type: a link for an individual
never opens the company steps, and a link for a business never opens the individual
ones. Both show the same "link is no longer valid" screen when they stop opening.
How your brand appears
- Name. Your brand display name, or your account name when none is set.
- Colour. Used for the top band only when it is a six-digit hex colour such
as
#0A7F5C. Anything else, or no colour, gives a neutral band; nothing is guessed or repaired. - Logo. Shown only when it is an
httpsimage. With no usable logo, the page shows the initials of your name instead. Logos cannot be set yet, so today every page shows initials. - Support address. Shown to the customer when you have set one.
One screen for every dead link
A link that does not open shows the same screen, "This link is no longer valid", whatever the reason. The page never says whether the link expired, was used, was replaced or never existed, so a stranger holding a link learns nothing about the customer behind it. The fix is always the same: issue a new link for that customer and send it.
A link stops opening when:
- it has been used, replaced by a newer link of the same kind, or is more than 24 hours old;
- the customer is
verified,rejected,suspendedorclosed; - it is a business link and the customer is
verified(or the link is 24 hours old). Until then it keeps opening while the company still has documents, directors or company details to give, and accepting the terms early does not use it up. A company held for its details that has them all on file is offered the terms again on the same link; - it is the identity page and the customer has reached
awaiting_terms. From then on that link still opens the account terms and nothing else, so a review that finishes while the customer is reading the terms does not lose their acceptance. The terms link is the one to send a customer whose identity check is submitted, and it opens while the customer iskyc_in_revieworawaiting_terms, and in no other status; - your partner account is not
active(for example, it is suspended): none of your customers' links open; - the hosted verification page is switched off for the platform: identity links
stop opening, and a new one cannot be issued (
503 KYC_WIDGET_DISABLED). Terms links keep opening; - Remittance is switched off for the platform: every link stops opening, and they open again when it is switched back on.
Attempts and errors
Each link allows a limited number of attempts a minute. Past it the page says
"Too many attempts" and asks the customer to wait a minute and try again; behind
it the answer is 429 with a Retry-After in seconds. This is a different
screen from a dead link, so a customer who is only rushing is not told to ask
you for a new one.
The residence the customer enters must be the countryOfResidence on their
customer record (the page shows it and does not let them change it), and
residents of a country we cannot onboard are refused with a message on that
field. A customer who lives in Kenya or the US also enters a tax number on this
step: the KRA PIN for Kenya, the Social Security number for the US. Without it the
step does not finish, and the page says which number is missing. For every other
country the page does not ask for one. If you change a customer's countryOfResidence after they have entered
their details, the details step shows as not done again and they enter them once
more, tax number included: the one they gave for the old country is cleared. The customer can change their details only before the
identity check is submitted, or after it has been sent back (needs_info);
while it is in review they are locked, and the page says to wait rather than that
the link is dead.
When the identity check is handed in and the terms are accepted, the customer
moves on by itself and you hear about each change in customer.kyc.updated.
6. Verify a customer by API
If you collect the customer's details and documents yourself, send them in one
call instead of using the hosted page. It needs customers:write, works for an
individual customer only (a business is refused with 422 CUSTOMER_NOT_INDIVIDUAL),
and the customer must be pending_kyc or needs_info.
POST /v1/customers/{id}/kyc
Content-Type: multipart/form-dataThe body is multipart/form-data: the details as form fields and the images as
file parts.
| Part | Required | What it is |
|---|---|---|
firstName, lastName | Yes | As on the ID document. middleName is optional. |
dateOfBirth | Yes | YYYY-MM-DD. The customer must be at least 18. |
idDocumentType | Yes | passport, national_id or drivers_license. |
idNumber | Yes | The number on the document. |
idIssuingCountry | Yes | ISO 3166-1 alpha-2, upper case. |
addressLine1, city | Yes | The residential address. addressLine2, subdivision and postalCode are optional where the country does not need them. |
country | Yes | The residence country. It must equal the customer's countryOfResidence. |
taxId | Kenya, US | The customer's tax number. Required when countryOfResidence is KE (the KRA PIN: a capital letter, nine digits, a capital letter, such as A012345678Z) or US (the Social Security number: only its nine digits, such as 123456789). Optional for every other country, where it is ignored and not stored. |
employmentStatus, occupationCode, accountPurpose, sourceOfFunds, expectedMonthlyUsd, actingAsIntermediary | Yes | The account-use answers. occupationCode is six digits; actingAsIntermediary is true or false. |
idFront | Yes | A JPEG or PNG, at most 10 MB. The photo page for a passport. |
idBack | No | A JPEG or PNG, at most 10 MB. Leave it out for a passport: sending one with a passport is refused. |
selfie | Yes | A JPEG or PNG, at most 10 MB. |
The tax number. A customer who lives in Kenya or the US has to give one, or the
accounts cannot be opened and the customer would wait with nothing to tell them why.
So leaving taxId out for such a customer, or sending one in the wrong format, is a
400 that names taxId and changes nothing. The number is kept only to open the
customer's accounts: it is never returned by any call or shown on any page, and the
error never repeats what you sent. If a customer reaches the point of opening accounts
with no number on file (they were submitted before it was asked for), they go back to
needs_info with the reason details_incomplete; if the number is later refused as
wrong, with data_mismatch. Either way, send the corrected details again.
The type of an image is read from the file itself, not from the Content-Type you
put on the part, so a PDF sent as image/jpeg is refused. Send only those parts: a
field or file the call does not take is a 400, not silently dropped.
Signing. Serialise the form once, take the sha256 of those exact bytes, sign it
as the body hash, and send the same lowercase hex digest in an X-Body-SHA256
header. The signature then covers every field and every image, and a body that
does not hash to the digest is refused with 401 before anything is read or saved.
Node and Python samples are in Signing a multipart
upload. Every other
call in this guide is JSON and signs its body as usual.
The answer is a 202: the details are saved, the check has started, and the
customer is kyc_in_review.
{
"customerId": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f",
"kyc": {
"status": "kyc_in_review",
"reason": null,
"nextAction": null,
"termsAccepted": false,
"endorsements": { "usd": null, "gbp": null, "eur": null },
"updatedAt": "2026-11-18T10:00:00.000Z"
},
"termsUrl": "https://www.onlink.africa/verify/terms/Zm9vYmFyYmF6cXV4MTIzNDU2Nzg5MGFiY2Q",
"termsUrlExpiresAt": "2026-11-19T10:00:00.000Z"
}The account terms
Every customer has to accept the account terms before its accounts open, and only
the customer can: they do it on a page we host. termsUrl is that page. It is
shown once and it is a credential, so send it to the customer only. It opens as soon
as the call returns, while the customer is kyc_in_review, and stays open once the
status is awaiting_terms (identity approved), which you hear in
customer.kyc.updated: the customer does not have to wait for the review to accept
the terms, and the accounts open when both are done. It works for 24 hours, or until
you issue a newer one. A customer who is not submitted yet (pending_kyc) or has been
sent back (needs_info) has nothing to accept: that link shows the "This link is no
longer valid" screen, and asking for one is a 409 CUSTOMER_KYC_NOT_OPEN.
What the page shows depends on the country the customer lives in, which is the
countryOfResidence you gave when you created the customer, so a customer's residence
has to be correct before they open the page.
- A customer who lives outside the United States and the European Economic Area
reads OnLink's own terms of service on the page, in OnLink's name, with a link to the
privacy policy. The customer ticks one box to confirm they have read and accept the
terms, and the "Accept and continue" button stays disabled until they do. We keep a
record of each acceptance (which version of the terms the customer saw, and when), so
you have nothing to store or send: the only signal you need is
kyc.termsAcceptedand thecustomer.kyc.updatedevent. If we publish a newer version of the terms while a customer has the page open, the page shows the current version and asks them to tick and accept it again; the tick does not carry over to the new version. - A customer who lives in the United States or the European Economic Area is shown the existing terms step instead, for now. It is the same page and the same link, and nothing changes in what you call or in the signals you receive. These countries move onto OnLink's own terms once that text is published.
The page chooses the right step by itself: you do not pick one, and there is no
parameter for it. A customer who accepts either way ends in the same place
(kyc.termsAccepted: true).
termsUrl and termsUrlExpiresAt are null in three cases, and kyc.termsAccepted
with kyc.status tell them apart:
termsAccepted: true: the customer accepted the terms earlier (a resubmission afterneeds_info), so there is nothing to send.termsAccepted: falseandkyc.statuskyc_in_revieworawaiting_terms: the link could not be issued this time. The submission still stands (do not submit again: the customer is no longerpending_kycorneeds_info, so a second submission is409 CUSTOMER_KYC_NOT_OPEN), andPOST /v1/customers/{id}/kyc/terms-linkgives you the link.termsAccepted: falseandkyc.statusrejected,suspended,closedorneeds_info: the customer was moved on between your submission and the link (a fast review sent it back or declined it, or it was suspended or closed), so there are no terms to accept.POST …/kyc/terms-linkanswers409 CUSTOMER_KYC_NOT_OPENtoo; readkyc.reasonandkyc.nextActioninstead.
POST /v1/customers/{id}/kyc/terms-linkIt answers 201 with { "url": "…", "expiresAt": "…" }, replacing any earlier
terms link for that customer. 409 CUSTOMER_TERMS_ALREADY_ACCEPTED means there is
nothing to accept. A customer that is not kyc_in_review or awaiting_terms (not
submitted yet, sent back, verified, rejected, suspended or closed) has no terms step
open: 409 CUSTOMER_KYC_NOT_OPEN, with details.status.
Reading the status
GET /v1/customers/{id}/kyc (customers:read) returns the same kyc object as
the answer above, and it is the same shape customer.kyc.updated carries:
status, reason, nextAction (what to do about the reason, in words you can
show), termsAccepted, endorsements for usd, gbp and eur (approved,
pending, unavailable, or null when that currency was not requested), and
updatedAt.
Statuses and reasons
status says where the customer is; reason says why they are held, and is null
once nothing is outstanding. The same values come from GET …/kyc, from GET …/kyb
and in customer.kyc.updated, for an individual and for a business.
status | Meaning | What you do |
|---|---|---|
pending_kyc | Created, nothing submitted yet. | Submit the customer (section 6) or send the hosted link. |
kyc_in_review | Submitted, or the accounts are being opened. Read reason. | Wait for customer.kyc.updated; send the terms link if needed. |
needs_info | Something is missing or was refused, and the customer can fix it. reason says what. | Correct it and resubmit, as the reason says. |
awaiting_terms | Identity is approved. The customer has not accepted the account terms. | Send the terms link; only the customer can accept. |
verified | The customer is set up. Currencies are approved one at a time: read endorsements. | Nothing. |
rejected | Final. Nothing the customer sends will change it. | Nothing. Contact us if you think it is a mistake. |
suspended | The customer is paused. Their verification links stop opening. Read reason. | Contact us. |
closed | You closed the customer. Final. | Create a new customer to work with them again. |
reason | Status | What to do |
|---|---|---|
document_unreadable | needs_info | Send a clearer photo of the ID: all four corners visible, no glare, no blur. |
document_expired | needs_info | Send a current document. |
document_unsupported | needs_info | Send a passport, national ID card or driver's licence. |
selfie_mismatch | needs_info | Send a new selfie in good light, facing the camera, nothing covering the face. |
data_mismatch | needs_info | Correct the name, date of birth, ID number or issuing country to match the document exactly, and resubmit. |
resubmission_requested | needs_info | Send the identity details and documents again. |
details_incomplete | needs_info | Complete the address, the tax number (Kenya and the US) and the account-use answers, and resubmit. |
identity_rejected | rejected | Nothing: it cannot be retried. |
awaiting_terms | awaiting_terms | Send the terms link. |
finalising | kyc_in_review | Nothing: the accounts are being opened, usually within minutes. |
directors_pending | kyc_in_review (business) | Invite each director who has not verified, and resend any open invitation. |
business_documents_required | kyc_in_review (business) | Nothing is required: a reviewer is checking the company. A company registered outside Kenya needs its certificate of incorporation (listed in missingDocuments until uploaded); every other document is optional. |
business_details_incomplete | needs_info (business) | Send the company details in missingDetails; each director gives their own home address. It then continues by itself. |
business_rejected | rejected (business) | Nothing: it cannot be retried. |
provider_declined | suspended | Contact us. Account services for this customer have been stopped, so money no longer moves for them. |
nextAction carries the matching sentence, worded so you can show it to your customer. For a
business customer, data_mismatch, document_unreadable, resubmission_requested
and document_unsupported refer to a director's details and ID photo: section 7
says what each means there.
When it fails, and trying again
401 body_digest_missing,401 body_digest_malformedor401 body_digest_mismatch: the signature check could not be completed.body_digest_missingmeansX-Body-SHA256was left off.body_digest_malformedmeans it is there but is not 64 lowercase hex characters (upper case, asha256:prefix, base64): send the plain lowercase hex digest.body_digest_mismatchmeans the body we received does not hash to the digest you signed: it changed between hashing and sending, or your library encoded the form a second time with a new boundary. Nothing was saved. Serialise once, send those bytes, and sign again with a fresh nonce (the refused one is spent).503 KYC_PROVIDER_UNAVAILABLE: the check could not be started. Your details were saved, nothing was submitted and the status did not move. Send the same request again as it is.- A customer sent back (
needs_info) is resubmitted with this same call: send the corrected details and images. The check is run on the details you send now, so a corrected name or date of birth replaces the one from the first submission. - At most 6 submissions an hour for each customer, and a refused attempt counts.
At most 10 submissions a minute across all your customers. Past either,
429. The per-customer limit carries the wait, in seconds, in aRetry-Afterheader; the 10 a minute limit carries it inRetry-After-partner. - A customer that is not yours, does not exist, is a business or is not
pending_kycorneeds_infois refused (404,422,409) before the images are read, so a refused call is fast and costs no upload. - An address in a country other than
countryOfResidenceis a400that names the country the address must be in, and only that: it is not also refused for a tax number or a state the customer does not owe. Correct it withPATCH /v1/customers/{id}while the customer ispending_kyc, or send the address that matches. - A wrong detail is
400withmessageValidation failed on:and the field names, anddetails.fieldssays what is wrong with each. No value you sent is repeated.
If a fast review comes back before the call returns, the answer is still 202 and
kyc.status is whatever the customer is now (awaiting_terms, for example).
7. Verify a business customer by API
A business customer (type business) is verified through its company and its
directors, not through one person's identity (section 6 is the call for an
individual, and refuses a business with CUSTOMER_NOT_INDIVIDUAL). Five calls run it. All need the
customers:write scope except the read, which needs customers:read, and all are
refused 422 CUSTOMER_NOT_BUSINESS for an individual. They work while the customer
is pending_kyc, needs_info or kyc_in_review; any other status is 409 CUSTOMER_KYC_NOT_OPEN, naming the status in details.status. The read works in
every status.
Start. Opens the application and records the company.
POST /v1/customers/{id}/kyb{
"countryOfRegistration": "KE",
"registrationNumber": "CPR/2015/123456",
"postalCode": "00100",
"postalAddress": "1234",
"consent": {
"consentVersion": "2026-07-business-kyb-v1",
"customerConsentedAt": "2026-11-17T09:30:00Z",
"partnerAttestation": true
}
}A company registered in Kenya is looked up in the business registry from the four
company fields, all required: the registry supplies its name, its address and its
directors. registrationNumber is required for every country. A company
registered anywhere else also needs legalName and registeredAddress (taxId
is optional) and goes to a reviewer. The
answer is the application, and lists each director with an id:
{
"status": "kyc_in_review",
"reason": "directors_pending",
"nextAction": "Each director and owner must complete their own identity check. Resend any invitations that are still open.",
"applicationStatus": "directors_pending",
"company": {
"name": "Acme Trading Limited",
"registrationNumber": "CPR/2015/123456",
"countryOfRegistration": "KE",
"registeredAddress": "5th Floor, Waiyaki Way, Nairobi"
},
"directors": [
{
"id": "6a1d0c5e-3b7f-4e0a-9c2d-8f1b2a3c4d5e",
"name": "JANE WANJIKU DOE",
"email": null,
"type": "individual",
"status": "not_started",
"invitedAt": null,
"residentialAddressProvided": false,
"ownershipPercentage": null
}
],
"documents": [],
"missingDocuments": ["certificate_of_incorporation"],
"missingDetails": []
}status, reason and nextAction are the same ones GET /v1/customers/{id}/kyc
carries for an individual, so one status screen can serve both. The customer moves
to kyc_in_review as soon as the application is open, and stays there while it
waits on documents or directors. In that state, POST /v1/customers/{id}/kyc-link
(section 5) gives the representative a fresh hosted link whenever the earlier one has
expired, unless reason is finalising.
Start is safe to repeat, and a business has one application for good:
- While the application is open it returns the same one, and does not look the company up again.
- If a repeat arrives while the first call is still applying the company details,
it answers the application as it stands (
applicationStatusdraft, with no directors yet) and does nothing else. Read it withGET …/kyba moment later. - Once the application is verified or rejected, start is
409 KYB_APPLICATION_CLOSEDand no new application is opened. A rejected business cannot be retried; if the customer's status has not caught up with the decision, this call brings it in line before refusing.
By calling start you confirm that you hold the company's authority to apply for it (your partner agreement), and we record which of your API keys made the call. The hosted page asks the company's own representative to accept the business terms instead; by API, the consent is yours to attest.
What you attest, and when. Every start carries a consent object, including a
repeat of the call. It says that the company's representative has accepted our
business terms, under your partner agreement, before you call.
What the customer agrees to. The terms your customer accepts are the same ones the hosted page shows the company's representative. By accepting, the representative confirms that:
- they are authorised to act for the company named in the application, and the information provided is accurate;
- we may check the company against the business registry and its tax registration with the tax authority, and verify each director's identity;
- identity verification, including the capture and biometric processing of ID documents and a selfie, is carried out for us by our identity processors, and they consent to that biometric processing for themselves. Each director invited to verify gives their own consent at their own link;
- their data is handled under our privacy policy and Kenya's Data Protection Act, 2019, and verification data is kept only as long as regulations require.
This is a plain summary of what the page shows, not the legal text: the full terms text
is being finalised and is pending legal review, so it is not yet published here. Make
sure your customer has read these points before you attest their consent. When the
final text is published, consentVersion changes and you show the new terms first.
| Field | What to send |
|---|---|
consentVersion | The business terms version in force now, 2026-07-business-kyb-v1. Any other value is refused; when we publish new terms, this value changes and you show your customer the new terms first. |
customerConsentedAt | The instant your customer consented, as an ISO 8601 time with a zone (2026-11-17T09:30:00Z or …+03:00). Not in the future (five minutes of clock skew are allowed) and not older than 30 days: past that, ask again. A date or time that does not exist, such as 30 February or 24:00, is refused. |
partnerAttestation | true. You attest that the customer consented to the business terms under your partner agreement. false, the text "true" and an absent field are all refused. |
We store it on the customer's application as an attested consent, apart from one
the company's representative gives on the hosted page, together with the key that
made the call. A consent the representative already gave on the hosted page, to the
current terms, is kept as it is. A missing or invalid consent (it must be one object,
not a list) is
400 VALIDATION_FAILED, nothing is created, and details.fields names each broken
field by its path: consent, consent.consentVersion, consent.customerConsentedAt
and consent.partnerAttestation.
A body that fails validation is 400 VALIDATION_FAILED, with each broken field in
details.fields as { "field", "message" }; the message names the rule and never
repeats what you sent.
Documents. Upload the company's documents as multipart/form-data: the
documentType as a text field and the file as the part named file.
POST /v1/customers/{id}/kyb/documentsA PDF, JPEG or PNG of at most 10 MB, decided from the file's own bytes and not from
the type the request declares, and at most 20 per application. Uploading the same
documentType again replaces the earlier file. The only required document is the
certificate of incorporation (certificate_of_incorporation), and only for a company
registered outside Kenya, which a reviewer cannot check without it. Every other type
is optional, and no call here is refused for a missing document: the hand-in
(POST …/kyb/submit) always goes through. missingDocuments in the application
lists the certificate until it is uploaded, whatever the country.
Signing. This call is signed like the individual verification in section 6:
serialise the form once, take the sha256 of those exact bytes, sign it as the body
hash, and send the same lowercase hex digest in an X-Body-SHA256 header. The
signature then covers the document type and the file, and a body that does not
hash to the digest is refused with 401 (body_digest_missing,
body_digest_malformed or body_digest_mismatch) before anything is read or
saved. A mismatch spends the nonce: sign again with a fresh one. Node and Python
samples are in Signing a multipart
upload. The other
five calls in this section are JSON and sign their body as usual.
Invite each director. A director verifies their own identity from an email we send them. The email is sent in your name and showing your brand:
POST /v1/customers/{id}/kyb/directors/{directorId}/invite{ "email": "jane.doe@acme.example" }Take directorId from directors in the application. The answer is the
application again: the director's invitedAt says the email went out, and is null
if it was not sent (the send failed), in which case invite again. The link in the
email is the director's own credential and is never returned to you. In the
sandbox, invitedAt records the request and the email may not be delivered. Inviting
the same director again sends a fresh link and ends the old
one, at most once a minute for each director (429 KYB_DIRECTOR_INVITE_COOLDOWN, with Retry-After). A company on the
board is not invited: it is verified from documents (422 KYB_DIRECTOR_NOT_INVITABLE, details.reason corporate); upload its documents
with directorId set. The page the email opens also asks the director for their own
home address, which is why you cannot send it for them.
A director who has already verified is not invited again (409 KYB_DIRECTOR_ALREADY_VERIFIED), with one exception: while their home address is
still missing (residentialAddressProvided is false on the director). Their first
link lasts seven days, so if it has expired before they gave the address, invite them
again: the new link opens only the address step, and there is no identity check to
repeat. The director can also ask for a new link themselves from the expired page.
A director can be invited after the application is verified, while that is what
the account is waiting for. A reviewer can verify an application while a director's
identity is still incomplete. The customer then waits at needs_info with reason
business_details_incomplete and directors in missingDetails. In exactly that
state the invitation is accepted even though the application is verified, so you can
send the director their link and they can give what is missing. The reviewer's
decision on the application stands and is not reopened. In any other state a verified
application still answers 409 KYB_APPLICATION_CLOSED to an invitation, and so does a
rejected one. Documents, kyb/submit and a new kyb application stay closed in
every verified or rejected state, this one included.
Send the company details. The registry does not tell us everything we need to open the company's accounts. You send the rest, and each director sends their own home address:
PATCH /v1/customers/{id}/kyb/details{
"businessType": "corporation",
"businessIndustry": "5223",
"physicalAddress": {
"line1": "5th Floor, Waiyaki Way",
"city": "Nairobi",
"postalCode": "00100",
"country": "KE"
}
}| Field | Needed | Meaning |
|---|---|---|
businessType | Always | corporation, llc, partnership, sole_prop, cooperative, trust or other. Where the registry's own company type means exactly one of these we fill it in; send it to set or correct it. |
businessIndustry | Always | The company's industry as a 4-digit NAICS code, for example 5223. |
physicalAddress | Always | Where the company operates: line1, city and country are required, line2, subdivision and postalCode where the country needs them (a US address needs the two-letter state). Never a PO box, and country must be the customer's countryOfResidence. |
incorporationDate | A company the registry gave no date for | YYYY-MM-DD. Every company registered outside Kenya, and a Kenyan one the registry missed. |
companyTaxId | A Kenyan company the registry has no KRA PIN for; a US company | The KRA PIN (a capital letter, nine digits and a capital letter, such as P051234567Z) or the EIN. |
owners | Optional | [{ "directorId", "ownershipPercentage" }]: which directors own the company, in whole percent from 1 to 100, adding up to at most 100. When sent it replaces the whole set. |
Send any of them: the call changes only the fields it carries, and a body with none
is refused. We never read the registry's free-text address, and the registered
address is not asked for. A broken field is 400 VALIDATION_FAILED with the field
named by its path in details.fields, for example physicalAddress.postalCode or
owners[0].ownershipPercentage.
Each director's home address is theirs to give, not yours. The provider needs
the residential address of every director we send it. The director enters it on
their own invitation page, the page they already use to verify their identity. You
cannot send it, and a residentialAddress in this body is refused
(400 UNKNOWN_BODY_FIELD).
There is nothing to submit afterwards. A customer whose accounts could not be
opened for missing details sits at needs_info with business_details_incomplete.
The write, or the director's address, that supplies the last missing fact moves it
on by itself: status becomes kyc_in_review with reason finalising, and
customer.kyc.updated tells you. POST …/kyb/submit is not part of this: once the
application is verified it is 409 KYB_APPLICATION_CLOSED.
The details can change only until the account is being created. While status
is kyc_in_review with reason finalising, and after a creation that may have
been accepted, PATCH …/kyb/details is 409 KYB_DETAILS_LOCKED and changes nothing.
A creation that is refused outright reopens them, and the customer is then at
needs_info again with business_details_incomplete. A customer that is verified,
rejected, suspended or closed is 409 CUSTOMER_KYC_NOT_OPEN.
Submit. Hands the application in for the verdict:
POST /v1/customers/{id}/kyb/submitIt never blocks. Whatever is outstanding, the application lands on a status: verified, waiting on directors, or with a reviewer. Safe to call again.
Read. GET /v1/customers/{id}/kyb returns the same application at any time,
or 404 KYB_NOT_STARTED before the first call. Besides missingDocuments it
carries missingDetails: the company facts the account still lacks, named as you
send them in PATCH …/kyb/details (businessType, businessIndustry,
physicalAddress, incorporationDate, companyTaxId, or a part such as
physicalAddress.postalCode for an address that is there but wrong). A director's own
home address appears as directors[<directorId>].residentialAddress: the director
gives it, not you. Each director shows residentialAddressProvided (a boolean, never
the address) and the ownershipPercentage you sent in owners, so what you sent is
visible. missingDetails is empty when nothing is missing, and also until the
application is verified: the account is created only after that, so nothing can be
missing from it yet.
Not everything missingDetails can name is yours to send. physicalAddress.country
means the address is in a different country from the customer's countryOfResidence:
send physicalAddress again with a matching country. These you cannot send at all:
| Entry | What it is |
|---|---|
legalName | The company's name. |
directors[<directorId>].name, .dateOfBirth, .idNumber, .idIssuingCountry, .identityCheck | The director's details, which come from the director's identity check. |
If one of them is listed, contact support: no call of yours supplies it. The only
fact about a director that is theirs to give is their home address
(directors[<directorId>].residentialAddress), on their own invitation page.
How the customer's status follows the application
You do not drive the customer's status; it follows the application, and you hear
each change in customer.kyc.updated.
| Application | Customer status | reason | What you do |
|---|---|---|---|
| waiting on directors | kyc_in_review | directors_pending | Invite every director that is outstanding, and resend any that are open. |
| with a reviewer | kyc_in_review | business_documents_required | A reviewer is checking the company. Upload its certificate of incorporation if it is outside Kenya and listed in missingDocuments; other documents are optional. |
| verified | awaiting_terms | awaiting_terms | Send the customer their terms link (POST /v1/customers/{id}/kyc-link). |
| verified, terms on file | kyc_in_review | finalising | Nothing: the accounts are being opened. |
| rejected | rejected | business_rejected | Nothing: a rejected business cannot be retried. |
Once a verified business has accepted its terms, we open its accounts from the
company details and from each verified director (name, date of birth, email, ID
number, ID images and address). If something needed for that is missing or was
refused, the customer moves to needs_info and reason says what to fix:
reason | Meaning |
|---|---|
business_details_incomplete | A company detail (type, industry, address, tax id, incorporation date) or a director's detail is missing. For a Kenyan company the tax id is its KRA PIN. |
data_mismatch | A director's name, date of birth or ID number was refused, or the director verified on a passport or licence: only a national ID card is accepted for a director for now. |
document_unreadable | A director's ID photo was refused, or the photos together are too large. |
resubmission_requested | A director's ID photo is missing. |
document_unsupported | A director's ID is of a type we cannot accept. |
A business reaches business_details_incomplete until its details are in. A
business that has accepted its terms before the company details and every director's
home address are recorded moves to needs_info with business_details_incomplete,
and its accounts are not opened. Send the company details with PATCH …/kyb/details (above) and have each director enter their home address on their
invitation page. The last of them moves the customer on by itself. To send the
details first, do it while the application is still open: the same call is accepted
from pending_kyc, kyc_in_review and awaiting_terms, so the terms never find
them missing.
The same goes for the director reasons above (data_mismatch,
document_unreadable, resubmission_requested, document_unsupported): they
name what was wrong, but a verified application is closed to new submissions (409 KYB_APPLICATION_CLOSED), so a director cannot verify again and the remedy is not
yet available to you. Treat them as informational until the details can be
collected and the accounts requested again.
A business with no director to verify (the registry returned none) goes to a reviewer rather than being verified. A late finding on a director can move a verified application back to review, and the customer with it, until the account terms are accepted.
Webhooks
Three events tell you what happened to a customer:
customer.createdwhen you create one.customer.updatedeach time one is changed or closed. Closing is a change: it arrives ascustomer.updatedwithdata.statusclosed.customer.kyc.updatedeach time identity verification or the account terms move the customer to a new status (the hosted page above is one source of them).
All use the same envelope as every other event, with the customer as it is after
the change under data, and all are sent to the webhook you registered.
Deduplicate on the envelope id. See Webhooks for the payload,
the signature and retries.
Errors worth handling
Every code is in Errors — Remittance. In every body
below except PARTNER_SUSPENDED the code is in errorCode as well as message;
product_not_supported is the one exception, a bare error field with no
errorCode.
| Status | Code | What to do |
|---|---|---|
400 | UNKNOWN_BODY_FIELD | Remove the fields details.fields names. |
400 | NOTHING_TO_UPDATE | Send at least one field to change. |
400 | INVALID_CURSOR | Start again from the first page; pass back only a nextCursor you were given. |
403 | product_not_supported | Your credential is for another product. It is in error, not errorCode. |
403 | PRODUCT_NOT_REMITTANCE | Rare: your account stopped being a Remittance account mid-request. Contact us. |
404 | CUSTOMER_NOT_FOUND | Check the id. A customer of another partner reads the same. |
409 | CUSTOMER_EXTERNAL_REF_TAKEN | Read the existing customer with ?externalRef=, or choose another reference. |
409 | CUSTOMER_CLOSED | The customer is closed. Create a new one instead. |
409 | CUSTOMER_ALREADY_CLOSED | Nothing to do. Read the customer to confirm. |
409 | CUSTOMER_UPDATE_CONFLICT | Read the customer; send the change again if it still applies. |
409 | CUSTOMER_HAS_BALANCE | A close was refused: an account holds money (details.currencies). Move it out with a payout or an internal transfer to your own account, then close again; if you cannot move it, contact us to arrange returning it. |
409 | CUSTOMER_DEPOSITS_IN_FLIGHT | A close was refused: a deposit is still being credited. Wait a few minutes and close again; if it persists past an hour, contact us. |
409 | CUSTOMER_HAS_MOVEMENTS_IN_FLIGHT | A close was refused: a transfer, payout, conversion or fee is still moving (details counts each kind). Wait until they finish, then close again; a SWIFT or RTGS payout can take several days, and anything else still in flight after an hour needs us. |
409 | CUSTOMER_HAS_HELD_DEPOSITS | A close was refused: deposits are under review. Contact us; waiting does not clear it. |
409 | CUSTOMER_ACCOUNT_OPENING | A close was refused: an account is still being opened. Wait until it is active, then close again. |
409 | CUSTOMER_ACCOUNT_FROZEN | A close was refused: an account is frozen or dormant (details.currencies, details.state). Contact us; retrying does not clear it. |
409 | PARTNER_SUSPENDED | Your account is suspended, so writes are refused. Reads still work. Contact us. |
409 | CUSTOMER_KYC_NOT_OPEN | The customer cannot be submitted or sent that link now; details.status says why. |
409 | CUSTOMER_TERMS_ALREADY_ACCEPTED | Nothing to send: the terms are accepted. |
422 | CUSTOMER_FIELD_KYC_OWNED | Remove the field details.field names. |
422 | CUSTOMER_RESIDENCE_NOT_SUPPORTED | We cannot open accounts for people in that country; the message names it. Do not retry. |
422 | CUSTOMER_NOT_INDIVIDUAL | Verify a business another way; this call is for an individual. |
422 | KYC_DOCUMENTS_INCOMPLETE | Send the parts details.missing names. |
422 | KYC_DOCUMENT_INVALID_TYPE | Send JPEG or PNG images; details.field names the part. |
422 | KYC_DOCUMENT_TOO_LARGE | Send an image of at most 10 MB. |
429 | (no code) | More than 6 submissions an hour for this customer (wait for Retry-After), or 10 a minute for your account (wait for Retry-After-partner). |
503 | KYC_PROVIDER_UNAVAILABLE | Send the same request again; your details were saved. |
503 | CUSTOMER_BALANCE_UNAVAILABLE | A close was refused: a balance could not be read. Nothing changed; try again shortly. |
503 | CUSTOMER_ACCOUNT_CLOSE_UNCONFIRMED | A close was refused: US bank details could not be confirmed switched off. The customer is not closed, but they may already be off; a repeat is safe and finishes it. |
503 | REMITTANCE_DISABLED | Remittance is not enabled right now. Contact us; retrying will not clear it. |
The business verification calls in section 7 add CUSTOMER_NOT_BUSINESS and the
KYB_* codes, each with what to do in Errors — Remittance.
A field that is the wrong shape is a 400 whose message reads
Validation failed on: followed by the field names, for example a phone that is
not E.164 or a country that is not a two-letter code. Nothing is created or
changed.
Collect in the US, pay out in Kenya
Collect USD from US contributors, be paid the net into your USD account, convert it to KES, and pay it out in Kenya in KES or USD — all live, on one credential.
Open accounts for your customers
Open a verified customer a KES, USD, GBP or EUR account, read their numbers and balances, and show a payer how to send money into it.