OnLink
API reference

Move money between your account and your customers

Moves money in one currency from your own account to a customer, from a customer to you, or from one customer to another. Both customers must be verified and hold an account in the currency. The amount, and your fee if you attach one, are reserved on the sending account until the transfer ends. Nothing moves until the code sent 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 transfer is returned already confirmed and runs at once. A partnerFee is paid from the sending customer account to your own account after the transfer completes: at most the lower of a share and a ceiling set for your account; with no terms set only "0.00" is accepted. OnLink charges nothing on a transfer between accounts of your own book.

POST
/v1/internal-transfers

Authorization

partner-key
X-OnLink-Key<token>

In: header

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/internal-transfers" \  -H "Content-Type: application/json" \  -d '{    "from": {      "type": "customer"    },    "to": {      "type": "customer"    },    "amount": {      "currency": "USD",      "value": "250.00"    },    "idempotencyKey": "int-2026-11-19-000123"  }'
{  "id": "df9f1e6a-0000-4000-8000-000000000050",  "status": "awaiting_confirmation",  "from": {    "type": "customer",    "customerId": "df9f1e6a-0000-4000-8000-000000000041"  },  "to": {    "type": "customer",    "customerId": "df9f1e6a-0000-4000-8000-000000000041"  },  "amount": {    "value": "250.00",    "currency": "USD"  },  "fees": {    "onlink": "0.00",    "partner": "1.50"  },  "partnerReference": "ACME-INT-000123",  "confirmation": {    "id": "df9f1e6a-0000-4000-8000-000000000030",    "channel": "email",    "deliveredTo": "o***@partner.co.ke",    "expiresAt": "2026-09-11T00:15:00.000Z",    "resendAvailableAt": "2026-09-11T00:00:15.000Z",    "webhookDelivery": {      "status": "delivered",      "attempts": 1,      "lastAttemptAt": "2026-09-11T00:00:02.000Z"    },    "waiverNotApplied": "key_without_ip_allowlist"  },  "failureCode": "CUSTOMER_NOT_ACTIVE",  "createdAt": "2026-11-19T08:00:00.000Z",  "completedAt": null}