Client Onboarding
Register your own end-customers (clients) with The Kingdom Bank and put them through KYC (individuals) or KYB (businesses). An approved client can then get an IBAN in its own name, see the client mode of IBAN Issuing.
A client is registered against an identifier you choose (externalClientId) and has its own verification case and status.
Nothing about a client's onboarding affects your merchant onboarding, or the other way round.
N.B Client onboarding is enabled per merchant account by The Kingdom Bank; until then registration returns CLIENT_ONBOARDING_NOT_ENABLED (1066).
Issuing IBANs for clients is a separate setting. Contact your account manager to enable either.
Flow
- Register the client with the registration endpoint: with its documents in document-upload mode, or with its details only in hosted-verification mode.
- In hosted-verification mode, redirect your customer to the returned
verifyUrlto complete the verification. - Wait for the outcome: the client KYC webhook, or call the registration endpoint again, which returns the current status without starting a second case.
- Once the client is
APPROVED, request an IBAN withclientIdset to itsexternalClientId.
Onboarding modes
One mode applies to your account. It is set when client onboarding is enabled, not per request; ask your account manager which one you are on.
| Hosted verification | Document upload | |
|---|---|---|
| Who collects the evidence | Your customer completes a verification flow hosted by our provider | You upload the client's documents with the registration call |
| Documents on the request | Not accepted; ignored if sent | Required, see the registration endpoint |
verifyUrl in the response | Present; redirect your customer to it | null |
| Decision | Individuals are approved as soon as the flow passes; businesses are also reviewed by compliance | Approved straight away or after a compliance review, depending on your account |
| Retry after rejection | Not available; a rejected client stays rejected | Re-submit the same externalClientId with new documents |
Client status
| Status | Final | Meaning |
|---|---|---|
NOT_ | No | The client exists but no verification case has been opened yet |
IN_ | No | Verification is under way: the customer has not finished the hosted flow, or the submission is in review |
APPROVED | Yes | The client is verified and you can request an IBAN for it |
REJECTED_ | Yes | Verification failed. In document-upload mode you can re-submit with new documents |
If a client's verification is later revoked, new IBAN requests for it may be refused. Treat APPROVED as valid at the time you read it.
Client KYC webhook
When a client's verification reaches a final state (APPROVED or REJECTED_FINAL), a notification is posted to the API notification URL configured on your account.
Intermediate states are never sent, so you receive at most one per case. Delivery is at least once: deduplicate on externalClientId + status.
{
"externalClientId": "cust-4711",
"status": "APPROVED",
"verifyUrl": "https://verify.example.com/inquiry/abc123"
}
verifyUrl is the verification link for the case, or null for clients onboarded by document upload.
Error codes
| HTTP | Code | Name | Cause |
|---|---|---|---|
| 409 | 1066 | CLIENT_ | Client onboarding is not enabled for your account |
| 409 | 1063 | CLIENT_ | Hosted verification is not configured for your account. Contact your account manager |
| 400 | 1067 | MISSING_ | Document-upload mode, and one or more required documents for the client's type are missing |
| 400 | 1068 | CLIENT_ | A document exceeds 10 MB, or all documents together exceed 20 MB |
| 400 | 1024 | MISSING_ | The requestBody part is missing |
| 400 | 1029 | INVALID_ | The requestBody part is not valid JSON or has an invalid value |
| 415 | 1027 | UNSUPPORTED_ | The request was not sent as multipart/form-data |
| 409 | 3001 | COUNTRY_ | countryCode is not supported for registration |
| 400 | 2000 | VALIDATION_ | A field of the requestBody part was rejected; cause lists the fields |
If your own merchant onboarding is not approved, registration currently fails with a generic 500.
Register a client
POST /v1/clients/register
Registers a client and starts its KYC/KYB. The call is idempotent on externalClientId: an existing client is not duplicated, and calling it again on an
in-progress or approved client returns its current status. A new verification case is opened only in document-upload mode, and only when the previous case
was rejected or never started. For an existing client, type, name and countryCode are not updated.
This endpoint takes multipart/form-data, not JSON. The client details go in a JSON part named requestBody, and each document in its own part.
X-Signature is computed over the raw contents of the requestBody part only; the file parts are not signed.
In document-upload mode the required documents depend on the client type. Part names are exact and case-sensitive:
| Part | Required for |
|---|---|
PROOF_ | INDIVIDUAL |
PROOF_ | INDIVIDUAL |
PROOF_ | INDIVIDUAL and BUSINESS |
CERTIFICATE_ | BUSINESS |
ARTICLES_ | BUSINESS (note the spelling: ASSOCIATON) |
Files can be up to 10 MB each and 20 MB in total. An incomplete set is rejected up front with MISSING_REQUIRED_CLIENT_DOCUMENTS (1067); nothing is stored
and no case is opened. In hosted-verification mode documents are not accepted and are ignored if sent.
Example: business client, document-upload mode
POST /v1/clients/register HTTP/1.1
Content-Type: multipart/form-data; boundary=----boundary
X-Api-Key: ...
X-Api-Secret: ...
X-Signature: <signature of the requestBody part>
X-Signature-Key-Id: ...
------boundary
Content-Disposition: form-data; name="requestBody"
Content-Type: application/json
{"externalClientId":"cust-4711","type":"BUSINESS","name":"Northwind Trading Ltd","countryCode":"GBR"}
------boundary
Content-Disposition: form-data; name="CERTIFICATE_OF_INCORPORATION"; filename="coi.pdf"
Content-Type: application/pdf
<binary>
------boundary
Content-Disposition: form-data; name="PROOF_OF_ADDRESS"; filename="poa.pdf"
Content-Type: application/pdf
<binary>
------boundary
Content-Disposition: form-data; name="ARTICLES_OF_ASSOCIATON"; filename="aoa.pdf"
Content-Type: application/pdf
<binary>
------boundary--
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
X-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
requestBodyrequired ClientRegistrationRequestClient details as JSON (
Content-Type: application/json).X-Signatureis computed over this part onlyShow fields
externalClientIdrequired stringYour own identifier for the client, unique within your merchant account. Pass it as
clientIdwhen requesting an IBAN for the clienttyperequired stringINDIVIDUAL(KYC) orBUSINESS(KYB). Determines the required documents and the review pathAllowed values:
INDIVIDUALBUSINESSnamerequired stringThe client's legal name. It becomes the account holder name on IBANs issued for the client
countryCoderequired stringISO 3166-1 alpha-3 country code of the client. Must be supported for registration
PROOF_OF_ID_FRONTstring · binaryFront of the identity document. Individuals, document-upload mode
PROOF_OF_ID_BACKstring · binaryBack of the identity document. Individuals, document-upload mode
PROOF_OF_ADDRESSstring · binaryProof of residential (individual) or registered (business) address. Document-upload mode
CERTIFICATE_OF_INCORPORATIONstring · binaryCertificate of incorporation. Businesses, document-upload mode
ARTICLES_OF_ASSOCIATONstring · binaryArticles of association (the part name is spelled ASSOCIATON). Businesses, document-upload mode
Responses
201 Client registered, or its current status when it already exists
externalClientIdstringYour identifier for the client
typestringClient type
Allowed values:
INDIVIDUALBUSINESSnamestringThe client's registered name. After hosted verification it may be the name confirmed by the provider
kycStatusstringVerification status, see Client status above
Allowed values:
NOT_STARTEDIN_PROGRESSAPPROVEDREJECTED_FINALverifyUrlstringHosted-verification mode: the link to redirect your customer to.
nullin document-upload mode
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring