Execute payment to beneficiary with specified bank details.
Security
bearerAuth
Any of:
Any of:
Unique ID provided by API user. Alphanumerics and -, _, ., # only.
[ 1 .. 128 ] characters
string(ExternalIdStr)
Source currency (the currency will be automatically converted to local currency using the provided quote)
Enum:"BHD""EUR""KWD""MYR""OMR""QAR""SAR""SGD""TRY""AED"
Valid currency quote id (UUID) as returned by POST /v3/quote. Quote currency must match base currency.
The payout amount, in the destination (local) currency. Send the quote's amount_destination verbatim; do not recompute it from rate. It must fall inside the quote's limits.min_amount_destination / limits.max_amount_destination band.
senderSender[B2X, PaymentCountry, PaymentMethod] (object) or Sender[C2X,PaymentCountry,PaymentMethod] (object)(Sender)required
Any of:
Sender details
- Mock serverhttps://docs.leanx.me/_mock/openapi/v3/payment
- Leanx Test serverhttps://api.leanxtest.me/v3/payment
- Leanx Production serverhttps://api.leanx.me/v3/payment
curl -i -X POST \
'https://docs.leanx.me/_mock/openapi/v3/payment?timeout=30' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"external_id": "string",
"payment_type": "B2B",
"payment_country": "IND",
"payment_method": "bank_transfer",
"payment_details": {},
"currency": "BHD",
"quote": "ac2490ad-7b17-416c-8a94-838b251071f6",
"amount": 1,
"sender": {
"name": "string",
"address": "string",
"country": "str",
"id": "string"
},
"beneficiary": {
"name": "string",
"address": "string",
"country": "str"
},
"remarks": "string",
"payment_currency": "BDT"
}'Successful Response
orderPayment[B2B,India,BankTransfer] (object) or Payment[B2C,India,BankTransfer] (object) or Payment[C2B,India,BankTransfer] (object) or Payment[C2C,India,PaymentMethod] (object) or Payment[C2C,Pakistan,PaymentMethod] (object) or Payment[C2C,Nigeria,PaymentMethod] (object)(PaymentOrder)required
Any of:
The payment as you submitted it.
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "quote": { "amount_destination": 8488.79, "amount_source": 100, "country": "IND", "currency": "USD", "id": "00000000-0000-7000-8000-000000000000", "limits": { … }, "payment_method": "bank_transfer", "rate": 84.887912, "timestamp": "2024-12-01T01:02:03.000000Z", "wallet_info": { … } }, "order": { "external_id": "string", "payment_type": "B2B", "payment_country": "IND", "payment_method": "bank_transfer", "payment_details": {}, "currency": "BHD", "quote": "ac2490ad-7b17-416c-8a94-838b251071f6", "amount": 1, "sender": { … }, "beneficiary": { … }, "remarks": "string", "payment_currency": "BDT" }, "response": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "external_id": "string", "timestamp": "2019-08-24T14:15:22Z", "status": "queued", "msg": "string", "quote": "ac2490ad-7b17-416c-8a94-838b251071f6", "amount": 0, "currency": "BDT", "exchange_info": { … }, "wallet_info": { … }, "payment_reference": "string" }, "account": { "status": "valid" } }