FX quotes

Every request goes to https://api.lemak.cash. About the reference.

Get an FX quote

GET /v1/fx/quotes

Returns the current exchange rate from from to to, markup included, and the estimated amount after conversion. The quote is indicative and locks no rate. The rate a payment uses is locked at the lock point set for your account.

Authentication

Bearer key. Your secret API key, which starts with sk_test_ or sk_live_. Send it as Authorization: Bearer <key>. A test key works as soon as your account exists. A production key returns 403 live_not_enabled until your account is activated.

Parameters

NameInTypeDescription
Api-Version optionalheaderstringThe API version for this request, as a date in YYYY-MM-DD format. When omitted, your account's version applies, which is set to the latest version on your first request. An unknown version returns 400 invalid_api_version. Pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
from requiredquerystringThe currency to convert from. Pattern ^[A-Z]{3,5}$.
to requiredquerystringThe currency to convert to. Only USD is supported. Any other value returns 400 unsupported_pair. Pattern ^[A-Z]{3,5}$.
payment_method optionalquerystringA payment method code. The rate can differ by payment method.
amount optionalqueryinteger (int64)The amount to convert, in the smallest unit of the from currency. Minimum 0.

Responses

200

Returns the quote.

application/json

FxQuote

FieldTypeDescription
indicative requiredtrueAlways true. A quote locks no rate.
from requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
to requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.
rate requiredstringThe rate that applies, markup included, as a decimal string.
estimated optionalMoney
Fields of estimated
FieldTypeDescription
amount requiredinteger (int64)The amount in the smallest currency unit, as an integer. For example, 1000 is 10.00 USD.
currency requiredstringA currency code in uppercase: an ISO 4217 code such as THB, or a token such as USDT. Pattern ^[A-Z]{3,5}$.

Errors

Every error answers with the error object.

StatusWhen
OtherAn error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second.

Example

curl "https://api.lemak.cash/v1/fx/quotes?from=PHP&to=USD" \
  -H "Authorization: Bearer sk_test_..." \
  -H "Api-Version: 2026-12-01"