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

  1. Register the client with the registration endpoint: with its documents in document-upload mode, or with its details only in hosted-verification mode.
  2. In hosted-verification mode, redirect your customer to the returned verifyUrl to complete the verification.
  3. Wait for the outcome: the client KYC webhook, or call the registration endpoint again, which returns the current status without starting a second case.
  4. Once the client is APPROVED, request an IBAN with clientId set to its externalClientId.

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 verificationDocument upload
Who collects the evidenceYour customer completes a verification flow hosted by our providerYou upload the client's documents with the registration call
Documents on the requestNot accepted; ignored if sentRequired, see the registration endpoint
verifyUrl in the responsePresent; redirect your customer to itnull
DecisionIndividuals are approved as soon as the flow passes; businesses are also reviewed by complianceApproved straight away or after a compliance review, depending on your account
Retry after rejectionNot available; a rejected client stays rejectedRe-submit the same externalClientId with new documents

Client status

StatusFinalMeaning
NOT_STARTEDNoThe client exists but no verification case has been opened yet
IN_PROGRESSNoVerification is under way: the customer has not finished the hosted flow, or the submission is in review
APPROVEDYesThe client is verified and you can request an IBAN for it
REJECTED_FINALYesVerification 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

HTTPCodeNameCause
4091066CLIENT_ONBOARDING_NOT_ENABLEDClient onboarding is not enabled for your account
4091063CLIENT_ONBOARDING_PROVIDER_NOT_SUPPORTEDHosted verification is not configured for your account. Contact your account manager
4001067MISSING_REQUIRED_CLIENT_DOCUMENTSDocument-upload mode, and one or more required documents for the client's type are missing
4001068CLIENT_DOCUMENT_TOO_LARGEA document exceeds 10 MB, or all documents together exceed 20 MB
4001024MISSING_REQUEST_PARTThe requestBody part is missing
4001029INVALID_REQUEST_BODYThe requestBody part is not valid JSON or has an invalid value
4151027UNSUPPORTED_MEDIA_TYPEThe request was not sent as multipart/form-data
4093001COUNTRY_NOT_SUPPORTEDcountryCode is not supported for registration
4002000VALIDATION_FAILEDA 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:

PartRequired for
PROOF_OF_ID_FRONTINDIVIDUAL
PROOF_OF_ID_BACKINDIVIDUAL
PROOF_OF_ADDRESSINDIVIDUAL and BUSINESS
CERTIFICATE_OF_INCORPORATIONBUSINESS
ARTICLES_OF_ASSOCIATONBUSINESS (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-Signature header · string
X-Signature-Key-Id header · string

Request body

requestBody required ClientRegistrationRequest

Client details as JSON (Content-Type: application/json). X-Signature is computed over this part only

Show fields
externalClientId required string

Your own identifier for the client, unique within your merchant account. Pass it as clientId when requesting an IBAN for the client

type required string

INDIVIDUAL (KYC) or BUSINESS (KYB). Determines the required documents and the review path

Allowed values: INDIVIDUAL BUSINESS

name required string

The client's legal name. It becomes the account holder name on IBANs issued for the client

countryCode required string

ISO 3166-1 alpha-3 country code of the client. Must be supported for registration

PROOF_OF_ID_FRONT string · binary

Front of the identity document. Individuals, document-upload mode

PROOF_OF_ID_BACK string · binary

Back of the identity document. Individuals, document-upload mode

PROOF_OF_ADDRESS string · binary

Proof of residential (individual) or registered (business) address. Document-upload mode

CERTIFICATE_OF_INCORPORATION string · binary

Certificate of incorporation. Businesses, document-upload mode

ARTICLES_OF_ASSOCIATON string · binary

Articles of association (the part name is spelled ASSOCIATON). Businesses, document-upload mode

Responses

201 Client registered, or its current status when it already exists
externalClientId string

Your identifier for the client

type string

Client type

Allowed values: INDIVIDUAL BUSINESS

name string

The client's registered name. After hosted verification it may be the name confirmed by the provider

kycStatus string

Verification status, see Client status above

Allowed values: NOT_STARTED IN_PROGRESS APPROVED REJECTED_FINAL

verifyUrl string

Hosted-verification mode: the link to redirect your customer to. null in document-upload mode

400 The request is malformed or failed validation
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
401 Missing or invalid API credentials, or invalid request signature
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
409 The request conflicts with the merchant setup or the current state of the resource
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
429 Rate limit exceeded
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
500 Unexpected error
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string