OnLink
API reference

Submit a business customer’s application

Hands the application in for the verdict. It never blocks: whatever is still outstanding, the application lands on a status (verified, waiting on directors, or with a reviewer) and customer.kyc.updated tells you of each change. Safe to call again.

POST
/v1/customers/{id}/kyb/submit

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/customers/string/kyb/submit"
{  "status": "pending_kyc",  "reason": "document_unreadable",  "nextAction": "string",  "applicationStatus": "draft",  "company": {    "name": "Acme Trading Ltd",    "registrationNumber": "CPR/2015/123456",    "countryOfRegistration": "KE",    "registeredAddress": "string"  },  "directors": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "email": "string",      "type": "individual",      "status": "not_started",      "invitedAt": "2019-08-24T14:15:22Z",      "residentialAddressProvided": false,      "ownershipPercentage": 60    }  ],  "documents": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "documentType": "certificate_of_incorporation",      "directorId": "36254c85-3859-4e1b-ba81-159a76808304",      "fileName": "certificate.pdf",      "contentType": "application/pdf",      "sizeBytes": 182044,      "reviewStatus": "pending",      "uploadedAt": "2026-11-18T09:30:00.000Z"    }  ],  "missingDocuments": [    "certificate_of_incorporation"  ],  "missingDetails": [    "businessType",    "physicalAddress",    "directors[6a1d0c5e-3b7f-4e0a-9c2d-8f1b2a3c4d5e].residentialAddress"  ]}

Upload a business document POST

Stores one document for the customer’s application, as multipart/form-data: documentType as a form field and the file as the part named file. PDF, JPEG or PNG, at most 10 MB, at most 20 per application. Uploading the same documentType again replaces the earlier file (documentType other adds). Sign this request over the digest of the multipart body: take the sha256 of the exact bytes you send, sign it as the body hash and send the same lowercase hex in the X-Body-SHA256 header, so the signature covers the document type and the file. A body that does not hash to the header is refused 401 before anything is read or stored (body_digest_missing, body_digest_malformed or body_digest_mismatch). Limited to 30 requests a minute per partner.

Start a business customer’s verification POST

Opens the business application for a business customer and records its company details. A company registered in Kenya is looked up in the business registry from its registration number and postal details, which supplies the name, the address and the directors. A company registered anywhere else needs its legalName and registeredAddress here, and goes to a reviewer. Then upload the company’s documents (only a company registered outside Kenya must send its certificate of incorporation; every other document is optional) and invite each director; each director verifies their own identity from the email we send them, in your name. The customer must be pending_kyc, needs_info or kyc_in_review. Calling this again while the application is open returns it unchanged, without looking the company up again; a call that arrives while the first is still applying the company details answers the application as it stands. Once the application is verified or rejected a new one is never opened: 409 KYB_APPLICATION_CLOSED. By calling this you confirm you hold the company’s authority to apply for it, and the API key is recorded. Every call must also carry a consent object: consentVersion (the current business terms version), customerConsentedAt (the instant the customer consented: not in the future and not older than 30 days) and partnerAttestation: true (you attest the customer consented to the business terms under your partner agreement). It is stored on the application as an attested consent, marked api_attested. A field this call does not take is refused with 400 UNKNOWN_BODY_FIELD.