Transactions List

How to Get All Transactions List?

Transaction List request has to be sent to our REST endpoint i.e. transactionServices/REST/v1/getTransactionList using POST method.



Request specification.


Parameter Description Format Required
authentication.memberId Unique merchant member ID provided by TWPayz. N10
[0-9]{1,10}
Yes
authentication.checksum MD5 checksum generated using merchant credentials for request authentication. AN32
[a-fA-F0-9]{32}
Yes
pagination.pageno MD5 checksum generated using merchant credentials for request authentication. AN32
[a-fA-F0-9]{32}
Yes
pagination.records MD5 checksum generated using merchant credentials for request authentication. AN32
[a-fA-F0-9]{32}
Yes
pagination.fromdate Request to inquire the detail information of the previously placed transaction. A2
((IN))
Yes
pagination.todate Unique transaction reference generated by the merchant. AN1024
[a-zA-Z0-9\\p{Space}\\-_.]{1,1024}
Yes
status This reference number is provided by the merchant, should be unique for the transactions and is visible on the end customer’s statement. AN100
[.\\p[0-9a-zA-Z\\p{Space}\\-]{0,100}
Yes

Response specification.


Parameter Description Format Required
result.code Response code indicating the transaction status. AN11
[0-9\.]{2,11}
Yes
result.description Description corresponding to the response code. AN255
[a-zA-Z0-9\\p{Space}\\,]+[a-zA-Z0-9\\p{Space}\\,]+
Yes
transaction.amount Transaction request amount. Decimal format needs to be followed. N13
[0-9]{1,10}\.[0-9]{2}
Yes
transaction.currency Currency of the transaction. A3
[a-zA-Z\\p{Space}\\,]+
Yes
systemPaymentId Currency of the transaction. A3
[a-zA-Z\\p{Space}\\,]+
Yes
merchantTransactionId Unique ID sent at the time of transaction. AN100
[.\\p[0-9a-zA-Z\\p{Space}\\-]{0,100}
Yes
transactionStatus Status of the transaction processed. Possible values are,
‘Y’ – Successfully processed
‘N’ – Failed
‘P’ – Pending
‘3D’ – Pending for 3D authentication
‘C’ – Cancelled
A2
[Y|N|P|3D|C]
Yes
captureamount Status of the transaction processed. Possible values are,
‘Y’ – Successfully processed
‘N’ – Failed
‘P’ – Pending
‘3D’ – Pending for 3D authentication
‘C’ – Cancelled
A2
[Y|N|P|3D|C]
Yes
refundamount Status of the transaction processed. Possible values are,
‘Y’ – Successfully processed
‘N’ – Failed
‘P’ – Pending
‘3D’ – Pending for 3D authentication
‘C’ – Cancelled
A2
[Y|N|P|3D|C]
Yes
chargebackamount Status of the transaction processed. Possible values are,
‘Y’ – Successfully processed
‘N’ – Failed
‘P’ – Pending
‘3D’ – Pending for 3D authentication
‘C’ – Cancelled
A2
[Y|N|P|3D|C]
Yes
payoutamount Status of the transaction processed. Possible values are,
‘Y’ – Successfully processed
‘N’ – Failed
‘P’ – Pending
‘3D’ – Pending for 3D authentication
‘C’ – Cancelled
A2
[Y|N|P|3D|C]
Yes
date Shows at what date the transaction has been placed. date
yyyy-MM-dd hh:mm:ss
Yes
transactionDate Shows at what date the transaction has been placed. date
yyyy-MM-dd hh:mm:ss
Yes
remark Transaction remark from respective gateway. AN255
[a-zA-Z0-9]
Yes
customer.givenName First name of the customer. AN
[a-zA-Z0-9\\p{Space}\\,.:'"-=+)({}[]]+
Yes
customer.surname Last name or surname of the customer. AN
[a-zA-Z0-9\\p{Space}\\,.:'"-=+)({}[]]+
Yes
customer.phone Phone number of the customer. N24
[0-9\+-. ]{6,24}
Yes
customer.email Email address of the customer. AN100
[A-Za-z0-9._%'-]+@[A-Za-z0-9.-]+\\.[a-zA-Z]{2,100}
Yes
customer.telnocc Country code of the customer. N4
[0-9]{1,4}
Yes
customer.country Country code of the customer. N4
[0-9]{1,4}
Yes
customer.city City code of the customer. AN50
[a-zA-Z0-9\\\\#&\\p{Space}\\p{L}\\p{M}\\-;.,~`/%$#@ ]{0,50}
Yes
customer.street Building name, and/ or street name of the customer's shipping address. AN100
[a-zA-Z0-9\\p{Space}\\,]+
Yes
card.bin First six digits (BIN) of the payment card. N6
[0-9]{6}
Yes
card.last4Digits Last four digits of the payment card. N4
[0-9]{4}
Yes
transactionReceiptImg Last four digits of the payment card. N4
[0-9]{4}
Yes
transactionReceiptImg Last four digits of the payment card. N4
[0-9]{4}
Yes
terminalid Last four digits of the payment card. N4
[0-9]{4}
Yes

Sample Request


Sample Response


Hashing Rule

TWPayz is supporting MD5 Cryptographic Hash for the authenticity of payment request send to the server.


Below are the description of fields used for generating checksum:
  • memberId <Merchant ID as shared by TWPayz>
  • secureKey <Secure Key that can be generated through TWPayz's dashboard>
  • paymentId <Id of previous transaction>

How to generate Checksum?

Checksum has to be calculated with following combination & needs to be send along with the authentication parameters in each server-to-server request:

Capture And Refund Payment:
<memberId>|<secureKey>|<paymentId>|<amount>

Inquire & Cancel Payment:
<memberId>|<secureKey>|<paymentId>

Get all transactions list:
<memberId>|<secureKey>


Sample Code