Partner API
Create a buy order (KES in, USDT out)
Consumes a buy quote and debits the KES directly from your own VA balance — there is nothing to send and no payment instructions to read. Delivery is asynchronous: nothing is sent until the debit is confirmed and the order reaches a terminal state. Register a webhook endpoint rather than assuming a create means the trade is done. Retry-safe: creating twice with the same partnerReference returns the original order rather than a second one.
post/v1/orders/buy
Request
- Base URLhttps://sandbox.onlink.africa
- AuthAPI key in header X-OnLink-Key
Request body
Example request
{
"expectedUsdtAmount": "10.000000"
}Response
Order created; your KES debit has been attempted and is awaiting the bank’s confirmation.
Example response
{
"orderId": "9c1e4b07-6d52-4a83-91fe-40ab72c5d318",
"status": "funds_reserved",
"kesAmount": "1281000.00",
"usdtAmount": "10000.000000",
"rate": "128.1000",
"kesTotalAmount": "1293820.00",
"fee": {
"kesAmount": "12820.00",
"currency": "KES",
"percentBps": 100,
"flatKesAmount": "10.00"
},
"expiresAt": "2026-09-02T09:30:00.000Z",
"kesDebit": {
"status": "reserved"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.