OnLink
API reference

Quote a conversion of a customer balance

An indicative rate and what the customer would receive now, for an amount of the currency converted from: GBP, EUR or USD to KES, or KES to any of them. Nothing is reserved: the rate is fixed when a conversion executes, so the executed rate can differ slightly. A pair with no rate configured is refused FX_RATE_NOT_CONFIGURED.

GET
/v1/customers/{id}/conversions/quote

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*string

Query Parameters

from*string

The currency you convert from: USD, GBP or EUR (to KES), or KES (to USD, GBP or EUR). A pair between two foreign currencies is refused CONVERSION_PAIR_UNSUPPORTED (422): convert through KES in two steps.

to*string

The currency you convert to: KES (from a foreign currency) or a foreign one.

amount*string

The amount of from to convert, as a decimal string with at most 2 decimal places.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/customers/string/conversions/quote?from=GBP&to=KES&amount=100.00"
{  "rate": "170.00",  "source": "100.00",  "target": "17000.00",  "indicative": true,  "asOf": "2026-11-19T10:00:00.000Z"}