OnLink
API reference

List a customer’s accounts

The customer’s accounts in the order KES, USD, GBP, EUR: the open one of each currency, else the latest closed or failed one. Each carries its status, number, balance and, for KES, how to pay into it; a USD account carries its own US bank details or why it has none; a USD, GBP or EUR account also carries depositRoutes (how to pay into it from outside). A balance that cannot be read is null with a reason, never zero. Still works while your account is suspended or opening is switched off.

GET
/v1/customers/{id}/accounts

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 GET "https://example.com/v1/customers/string/accounts"
{  "data": [    {      "id": "3f0c1f0e-5a3e-4d6e-9b53-0b8d2f6f4a10",      "customerId": "5f0c1a3e-2d4b-4c6a-8e9f-0a1b2c3d4e5f",      "currency": "USD",      "status": "active",      "accountNumber": "00000000123456",      "accountName": "Amina Wanjiru",      "balance": {        "available": "12.50",        "asOf": "2026-11-18T09:00:00.000Z",        "unavailableReason": null      },      "kesInstructions": [        {          "rail": "mpesa_paybill",          "paybill": "000000",          "accountReference": "00000000123456",          "beneficiaryName": "Amina Wanjiru",          "currency": "KES",          "instructions": "string"        }      ],      "namedAccount": {        "status": "active",        "beneficiaryName": "string",        "bankName": "string",        "routingNumber": "string",        "accountNumber": "string",        "rails": [          "ach",          "wire"        ],        "reason": {          "code": "ENDORSEMENT_PENDING",          "message": "string",          "retryable": true        }      },      "depositDetails": {        "scheme": "sepa",        "beneficiaryName": "Example Holder S.A.",        "bankName": "Example Bank S.A.",        "routingNumber": "string",        "accountNumber": "string",        "rails": [          "ach",          "wire"        ],        "iban": "DE00000000000000000000",        "bic": "EXAMPLLL"      },      "depositRoutes": [        {          "scheme": "local_bank",          "currency": "GBP",          "beneficiaryName": "Example Remit_Amina Wanjiru",          "bankName": "Example Bank Ltd",          "bankCode": "99",          "accountNumber": "00000000123456",          "transferType": "rtgs",          "weekdaysOnly": true,          "cutOffTime": "3:00 PM",          "maxBusinessDays": 3,          "swiftBic": "EXAMPLKX",          "branch": "string",          "branchCode": "string",          "reference": "00000000123456",          "referenceName": "string"        }      ],      "depositRoutesNote": "International transfers in EUR are not available yet.",      "createdAt": "2026-11-18T08:00:00.000Z"    }  ]}