Create quote for use with payment.
country is also accepted as payment_country, the name POST /v3/payment uses for it.
country, payment_type and payment_method are independent enums, but only 4 of the 128 combinations they can spell between them can be paid end to end:
| Destination | Payment type | Payment method |
|---|---|---|
India (IND) | C2C | bank_transfer, instant_payment |
Pakistan (PAK) | C2C | bank_transfer |
Nigeria (NGA) | C2C | bank_transfer |
B2B, B2C and C2B have no payable combination on any corridor today, and BGD, EGY, NPL, PHL and VNM cannot be paid at all. Anything outside the table either fails the quote or, where POST /v3/payment still accepts the request, fails before the payment completes — do not build against it.
Whether a listed combination is enabled for your account is a separate question, answered by the provider routes configured for it.
Destination country. Also accepted as payment_country, the name POST /v3/payment uses for the same value.
Destination currency. Informational — it is fixed by country, and is rejected if it disagrees. Filled in from country when omitted.
Payment method/rail for the quote. Not every country/payment_type/payment_method combination has a payment variant — see the table on this operation for the supported set.
Source currency. Which currencies you can use depends on the exchange rates configured for your account and this corridor; a currency without a rate returns no quote.
- Mock serverhttps://docs.leanx.me/_mock/openapi/v3/quote
- Leanx Test serverhttps://api.leanxtest.me/v3/quote
- Leanx Production serverhttps://api.leanx.me/v3/quote
curl -i -X POST \
'https://docs.leanx.me/_mock/openapi/v3/quote?timeout=30' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 100,
"amount_type": "source",
"country": "IND",
"currency": "USD",
"payment_method": "bank_transfer",
"payment_type": "C2C"
}'Successful Response
Payment method/rail for the quote
Source currency
{ "amount_destination": 8488.79, "amount_source": 100, "country": "IND", "currency": "USD", "id": "00000000-0000-7000-8000-000000000000", "limits": { "expires": "2024-12-01T01:17:03.000000Z", "max_amount_destination": 100000, "min_amount_destination": 100 }, "payment_method": "bank_transfer", "rate": 84.887912, "timestamp": "2024-12-01T01:02:03.000000Z", "wallet_info": { "currency": "USDT", "rate": 84.887912 } }