Partner API

Quote a USD to KES conversion

An indicative rate and the KES you would receive for an amount of USD now. Nothing is reserved: the bank fixes its rate when a conversion executes, so the executed rate can differ slightly.

get/v1/conversions/quote

Request

  • Base URL
    https://sandbox.onlink.africa
  • Auth
    API key in header X-OnLink-Key

Query parameters

fromstring required
Example:USD

The currency you convert from. Only USD is supported.

tostring required
Example:KES

The currency you receive. Only KES is supported.

amountstring required
Example:100.00

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

Response

The indicative quote.

ratestring required

KES per 1 USD you would be paid at now, to 2 decimal places. Indicative: the bank fixes its rate when the conversion executes.

sourcestring required

The USD amount, 2 decimal places.

targetstring required

The KES you would receive at rate: source x rate, rounded down to the cent.

indicativeboolean required

Always true: a quote is not a commitment.

asOfstring required

When the rate was read, ISO 8601 UTC.

Example response

{
  "rate": "128.35",
  "source": "100.00",
  "target": "12835.00",
  "indicative": true,
  "asOf": "2026-10-24T10:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.