Documentation Index Fetch the complete documentation index at: https://apidocs.paylias.xyz/llms.txt
Use this file to discover all available pages before exploring further.
A Transaction in the Paylias network is a fundamental ledger record that reflects the complete movement of funds between two partners. It adheres to double-entry accounting principles, meaning every transaction consists of both a debit and a credit line, ensuring the financial state of all parties remains consistent and auditable.
Transactions are system generated and represent the successful culmination of a payment flow whether initiated via a push or pull payment.
Key Characteristics
Every transaction:
Is linked to a specific payment via its payment_id
Contains one debit and one credit entry in transaction_lines
Records lifecycle timestamps for initiation, processing, and settlement
Includes optional approval or response codes
Reflects real-time status updates and error handling through defined enums
Transaction Fields
Field Type Description tokenstringUnique identifier for the transaction transaction_idstringExternal-facing reference for the transaction payment_idstringID of the related payment statusenumLifecycle status of the transaction transaction_linesarrayList of credit/debit entries (see below) response_codestringOptional processor response code approval_codestringOptional authorization code initiated_onintegerTimestamp when the transaction began processed_onintegerTimestamp when the transaction was processed settled_onintegerTimestamp when the transaction was settled expires_onintegerTimestamp when the transaction expires created_onintegerTimestamp when the transaction was created updated_onintegerTimestamp of last update
Transaction Lines
Each transaction line captures a single leg of the ledger entry—either a debit or a credit . Lines include:
Field Type Description tokenstringUnique identifier for this transaction line transaction_idstringParent transaction partner_idstringID of the partner associated with this line directionenumDirection of funds (see below) transaction_typeenumType of transaction (e.g., payment, refund) amountobjectObject with currency and total (amount in minor units)
Status Types
Enum Value Description TS_INITIATED1 Transaction started TS_PROCESSING2 Transaction is being processed TS_COMPLETED3 Successfully completed TS_FAILED4 Failed to complete TS_REVERSED5 Manually or programmatically reversed TS_EXPIRED6 Timed out TS_RECOVERED7 Recovered from a failure
Direction Types
Enum Value Description TD_Credit1 Funds received TD_Debit2 Funds sent
Transaction Types
Enum Value Description TT_PAYMENT1 Normal payment transaction TT_REFUND2 Refund transaction TT_REVERSAL3 Payment reversal TT_FEE4 Service or platform fee
Retrieve a Transaction
Fetch details of a specific transaction associated with a payment using the Fetch Transaction endpoint.
curl --request GET \
--url https://sandbox.paylias.xyz/gateway/api/v1/csp/payments/{payment_id}/transactions/{transaction_id} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-paylias-api-key: <API-KEY>' \
--header 'x-org-id: <Org-ID>' \
--header 'x-partner-id: <Partner-ID>'
Response
{
"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"
}
]
}
}
See all 37 lines