Skip to content

Payment Get

Request

Get info about previously executed payment

Security
bearerAuth
Path
idstring(Id)required
Any of:

Payment id

string (uuid)
Query
externalboolean(External)

When true, the id supplied is external_id from the original payment request.

Default:false
curl -i -X GET \
  'https://docs.leanx.me/_mock/openapi/v3/payments/{id}?external=false' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required

Payment id.

quoteobject(QuoteResponse)required

The quote this payment was made against.

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.

responseobject(PaymentResponse)required

Current status and processing result.

accountValidateBeneficiaryResponsePublic (object) or null
Any of:

Beneficiary account validation result, when validation ran.

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" } }