Request a quote
curl https://sandbox.amnenpay.com/v1/quotes \
-X POST \
-H "Authorization: Bearer sk_test_51H8xExampleSandboxKeyOnly" \
-H "Idempotency-Key: idmp_quote_7c9e6679742548" \
-H "Content-Type: application/json" \
-d '{
"sourceCurrency": "ETB",
"targetCurrency": "KES",
"sourceAmount": 5000
}'Quote fields
| Field | Description |
|---|---|
sourceCurrency | Currency you are sending from (e.g. ETB). |
targetCurrency | Currency the recipient receives (e.g. KES). |
sourceAmount | Amount to debit, in the source currency. |
rate | Locked FX rate for this quote. |
fee | Total fees applied to the transfer. |
targetAmount | Amount the recipient will receive. |
expiresAt | When the locked rate expires and the quote must be refreshed. |
Using a quote
Pass the returned quoteId to POST /payments before expiresAt. If the quote has expired, request a fresh one — rates are never silently changed on an in-flight payment.