cURL
curl --request GET \ --url https://sandbox.api.paylias.xyz/gateway/api/v1/csp/payments/{payment_id}/transactions/{transaction_id} \ --header 'X-PAYLIAS-API-KEY: <api-key>' \ --header 'x-org-id: <x-org-id>' \ --header 'x-partner-id: <x-partner-id>'
{ "ok": true, "data": { "approval_code": "123456", "created_on": "2023-08-12T08:55:04Z", "initiated_on": "2023-08-12T08:55:04Z", "payment_id": "pay_123456789", "status": 1, "token": "trans_123456789", "transaction_id": "transaction_123456789", "updated_on": "2023-08-12T08:55:04Z", "transaction_lines": [ { "amount": { "currency": "USD", "total": "10000" }, "direction": "TD_Credit", "partner_id": "part_abc123", "token": "tline_1", "transaction_id": "transaction_123456789", "transaction_type": "TT_PAYMENT" }, { "amount": { "currency": "USD", "total": "10000" }, "direction": "TD_Debit", "partner_id": "part_xyz456", "token": "tline_2", "transaction_id": "transaction_123456789", "transaction_type": "TT_PAYMENT" } ] } }
Fetch Transaction
The Organization ID header used for authorization
The Partner ID header used for authorization
The unique identifier for the payment
"pay_123456789"
The unique identifier for the transaction
"transaction_ct2504s20or30kh8if00"
Response containing transaction information
Standard response structure for successful operations
Indicates if the operation was successful
true
Transaction information
Show child attributes
Was this page helpful?