OnLink
API reference

Change a customer

Changes any of displayName, email, phone, externalRef (send null to clear it) and countryOfResidence, and sends customer.updated. countryOfResidence can be corrected only while the customer is pending_kyc, and only to a country we can open accounts in (otherwise 422 CUSTOMER_RESIDENCE_NOT_SUPPORTED). type and legalName are never yours to change: sending either is 422 CUSTOMER_FIELD_KYC_OWNED with details.field naming it. An empty change is 400 NOTHING_TO_UPDATE. A closed customer cannot be changed.

PATCH
/v1/customers/{id}

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*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 PATCH "https://example.com/v1/customers/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f",  "type": "individual",  "status": "pending_kyc",  "externalRef": "acme-cust-0042",  "displayName": "Amina Wanjiru",  "email": "amina@example.com",  "phone": "+447700900123",  "countryOfResidence": "GB",  "legalName": null,  "createdAt": "2026-11-17T09:30:00.000Z",  "updatedAt": "2026-11-17T09:30:00.000Z",  "closedAt": null}

Send a business customer’s company details PATCH

Sends the facts about the company the verification could not read from the registry: its businessType, its businessIndustry (a 4-digit NAICS code), its physicalAddress (structured, in the customer’s country of residence, never a PO box), its incorporationDate (needed for a company the registry gave no date for: every company registered outside Kenya, and a Kenyan one the registry missed), its companyTaxId (a Kenyan company’s KRA PIN when the registry has none; a US company’s EIN) and, optionally, which directors own it and how much (owners). Send any of them: this changes only the fields it carries, and a body with none is refused. Each director’s residential address is not sent here: the director gives it on their own invitation page. When the customer is waiting on its details (status needs_info, reason business_details_incomplete) and this write supplies the last missing fact, the verification continues by itself: the status moves to kyc_in_review (reason finalising) and customer.kyc.updated tells you; there is nothing to submit. The details can change only until the account is being created: from then on, and until a refused creation reopens them, this answers 409 KYB_DETAILS_LOCKED and changes nothing. A field this call does not take is refused with 400 UNKNOWN_BODY_FIELD.

Open a collection POST

Mints a reference and returns the USD deposit instructions a contributor pays to. expectedAmount is advisory — stored with the collection and never used to refuse anything.