Submit a customer’s identity for verification
Submits an individual customer’s details and identity documents for review, as multipart/form-data. The customer must be pending_kyc or needs_info; it moves to kyc_in_review and you are told of the result in customer.kyc.updated. The answer carries termsUrl, the page where the customer accepts the account terms; it opens at once, while the status is kyc_in_review, and again once it is awaiting_terms, because the terms do not wait for the review. Sign this request over the sha256 of the raw multipart bytes and send that digest in X-Body-SHA256, so the signature covers every field and every image; a body that does not hash to it is refused with 401 before anything is read or saved. Send taxId for a customer who lives in Kenya or the US: without it the request is refused with 400. A field the request does not list is refused with 400, not ignored. Each customer may be submitted 6 times an hour, and every attempt counts, including refused ones; a partner may make 10 submissions a minute across all its customers. A customer that is not yours, does not exist or cannot be submitted is refused before the images are read. If the identity check cannot be started the answer is 503 KYC_PROVIDER_UNAVAILABLE, the details are saved, nothing is submitted and the same request can be sent again as it is.
Authorization
partner-key In: header
Path Parameters
Header Parameters
The lowercase hex sha256 of the exact multipart bytes you send (64 characters). Sign the same value as the body hash in the signature: the request signature then covers every field and every image. Absent: 401 body_digest_missing. Present but not 64 lowercase hex characters: 401 body_digest_malformed. Not the digest of the body received: 401 body_digest_mismatch.
^[0-9a-f]{64}$Request Body
multipart/form-data
The customer’s details as form fields and three images as file parts.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/customers/string/kyc" \ -H "X-Body-SHA256: string" \ -F firstName="Amina" \ -F lastName="Wanjiru" \ -F dateOfBirth="1990-04-12" \ -F idDocumentType="passport" \ -F idNumber="string" \ -F idIssuingCountry="GB" \ -F addressLine1="string" \ -F city="string" \ -F country="GB" \ -F employmentStatus="string" \ -F occupationCode="151252" \ -F accountPurpose="string" \ -F sourceOfFunds="string" \ -F expectedMonthlyUsd="string" \ -F actingAsIntermediary="true" \ -F idFront="string" \ -F selfie="string"{ "customerId": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f", "kyc": { "status": "kyc_in_review", "reason": null, "nextAction": null, "termsAccepted": false, "endorsements": { "usd": "approved", "gbp": "pending", "eur": null }, "updatedAt": "2026-11-18T10:00:00.000Z" }, "termsUrl": "https://www.onlink.africa/verify/terms/Zm9vYmFyYmF6cXV4MTIzNDU2Nzg5MGFiY2Q", "termsUrlExpiresAt": "2026-11-19T10:00:00.000Z"}Send a customer the account terms POST
Issues the page where the customer accepts the account terms, and returns its URL once. Issuing a new one replaces the previous terms link. A link works until the terms are accepted, or for at most 24 hours. It can be issued, and the customer can accept, while the status is kyc_in_review and once it is awaiting_terms. Before the customer has been submitted (pending_kyc or needs_info) there is nothing to accept yet: the request is refused with 409 CUSTOMER_KYC_NOT_OPEN. Limited to 20 requests a minute per partner.
Pay out of a customer account POST
Sends money from one of your customers’ accounts to a bank account or mobile wallet, over the same rails as a payout from your own account: KES on mpesa, pesalink, rtgs and eft, USD on rtgs, eft and swift, GBP and EUR on swift. The customer must be verified and hold an account in the currency. The amount, the transfer fee and your own fee are reserved on the customer account until the payout ends. Nothing is sent until the code delivered to your confirmation contact (or your webhook, as confirmation.code_issued) is verified with POST /v1/confirmations/:id, unless OnLink has enabled confirmation waiving for your account and the API key has an IP allowlist, in which case the payout is returned already confirmed and runs at once. A partnerFee is paid from the customer account to your own account after the payout settles: at most the lower of a share and a ceiling set for your account; with no terms set only "0.00" is accepted. The outcome is announced as customer.transfer.updated.