Open a customer account
Makes sure a verified customer has an account in the currency: KES, USD, GBP or EUR. Answers 201 when this call opened it and 200 when it already existed, so posting again is safe. A KES account is paid into by M-PESA or bank transfer (kesInstructions, once it is active). A USD account also gets the customer’s own US bank details when the customer is approved for them; when not, the account still opens and namedAccount.reason says why and whether posting again can change it. A EUR account likewise gets its own euro bank details (an IBAN and a BIC, in depositDetails) when the customer is approved for them, with the same reasons plus EUR_DETAILS_UNAVAILABLE when issuing them failed and the attempt was closed (post again); a payment to those euro bank details is held and not credited yet. A USD, GBP or EUR account is paid into from outside the way a retail account is: depositRoutes lists a local bank transfer from a bank inside Kenya (RTGS in the account’s currency) and, for USD and GBP, an international transfer that must quote the account number as the payment reference. EUR has no international route yet, and depositRoutesNote says so. A new account is provisioning until its number lands: read it again shortly. The customer must be verified; the call is refused while your own account is suspended. Opening can be switched off per environment (503 CUSTOMER_ACCOUNTS_DISABLED) while reading keeps working. GBP and EUR answer 503 CUSTOMER_ACCOUNT_CURRENCY_DISABLED to every POST while they are not open for use yet, a repeat for an account that already exists included (read it with GET): retry after OnLink enables them.
Authorization
partner-key In: header
Path Parameters
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
application/json
curl -X POST "https://example.com/v1/customers/string/accounts" \ -H "Content-Type: application/json" \ -d '{ "currency": "USD" }'{ "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"}Convert between USD and KES POST
Debits the currency you convert from out of your account in it and credits the currency you convert to into your account in that, asynchronously: USD to KES, or KES to USD where it is enabled. Poll GET /v1/conversions/:id or wait for conversion.settled or conversion.failed. If the exchange cannot be completed after the amount you convert from was debited, it is returned to you and the conversion ends failed with the reason. No confirmation code: both accounts are your own.
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.