cURL
curl --request GET \ --url https://sandbox.api.paylias.xyz/gateway/api/v1/csp/payments/{payment_id}/transactions \ --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 by Payment
The Organization ID header used for authorization
The Partner ID header used for authorization
The unique identifier for the payment
"pay_123456789"
Response containing transaction information
Standard response structure for successful operations
Indicates if the operation was successful
true
Contains the response data Transaction information
Show child attributes
Approval code of the transaction
"123456"
Creation time of the transaction
"2023-08-12T08:55:04Z"
Initiation time of the transaction
Payment identifier
Status of the transaction
0
1
2
3
4
5
6
7
Transaction identifier token
"trans_123456789"
Transaction identifier
"transaction_123456789"
List of transaction lines
Amount information
Currency code
"USD"
Total amount
"100.00"
Direction of the transaction (credit/debit)
TD_Credit
TD_Debit
"TD_Credit"
Partner identifier
"part_123456789"
Transaction line identifier token
"tline_123456789"
Type of the transaction
TT_PAYMENT
TT_REFUND
TT_REVERSAL
TT_FEE
"TT_PAYMENT"
Update time of the transaction
Was this page helpful?