OnLink
API reference

Invite a director to verify their identity

Asks us to email one of the company’s directors a link to verify their own identity. The email is sent in your name, in your brand. Take directorId from the directors in the application (GET …/kyb). Inviting the same director again sends a fresh link and ends the old one, at most once a minute per director. A director who has already verified but has not yet given their own home address (residentialAddressProvided is false) can be invited again: the new link opens only that step. The answer shows the application; the director’s invitedAt says the email went out, and is null if it could not be sent, in which case invite again. In the sandbox, invitedAt records the request and the email may not be delivered. The link itself is never returned: it is the director’s own credential. Limited to 60 requests a minute per partner.

POST
/v1/customers/{id}/kyb/directors/{directorId}/invite

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*string
directorId*string

Request Body

application/json

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

curl -X POST "https://example.com/v1/customers/string/kyb/directors/string/invite" \  -H "Content-Type: application/json" \  -d '{    "email": "jane@acme.example"  }'
{  "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"  ]}

Convert a customer balance POST

Debits the currency you convert from out of the customer’s account in it and credits the currency you convert to into the customer’s account in that, asynchronously, at your rate: GBP, EUR or USD to KES, or KES to any of them. A conversion between two foreign currencies is two conversions through KES. The customer must be verified and hold an account in both currencies. The amount and your own fee are reserved on the source account until the conversion ends. Poll GET /v1/customers/:id/conversions/:id or wait for customer.conversion.updated. If the exchange cannot be completed after the amount was debited, it is returned to the customer and the conversion ends failed with the reason. A partnerFee is in the currency converted from and is paid from the customer account to your own account after the conversion settles: at most the lower of a share and a ceiling set for your account; with no terms set only "0.00" is accepted. No confirmation code: both accounts are the customer’s own.

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.