The Transaction List API returns you the list of the transaction that matches your query. PayWay recommends using this API to reconcile your transactions with PayWay database after you receive payment success pushback notification.
TESTING URL:
https://checkout-sandbox.payway.com.kh/api/payment-gateway/v1/payments/transaction-list
PRODUCTION URL:
https://checkout.payway.com.kh/api/payment-gateway/v1/payments/transaction-list
# | Field name | Data type | Remark | Example |
---|---|---|---|---|
1 |
language
optional | HEADER/ string[2] | Support [en, km] – to be included on header of the request to request Payment page in specific language. en – English km – Khmer | en |
2 |
req_time
mandatory | Timestamp [UTC] | Format YYYYmmddHis | 20210123234559 |
3 |
merchant_id
mandatory | String [30] | onlinesshop24 | |
4 |
from_date
optional | Search from date YYYY-mm-dd H:i:s. Default is today 00:00:00 | ||
5 |
from_amount
optional | Search amount in transaction | ||
6 |
from_amount
optional | Search amount in transaction | ||
7 |
to_amount
optional | Search amount in transaction | ||
8 |
status
optional | Transaction Status [APPROVED, DECLINED, PENDING]. Separate value by comma, ex: Approved, DECLINED | ||
9 |
hash
mandatory | Base64 encode of hash hmac sha512 encryption • hash: (req_time + merchant_id + from_date + to_date + from_amount + to_amount + status) • Encrypt with: ["sha512_true","fb629880e9a741dc9862a4ad260f6668"] |
{
"req_time": "20210922080553",
"merchant_id": "ec000002",
"from_date": "2021-09-20 00:00:00",
"to_date": "2021-09-25 00:00:00",
"from_amount":"",
"to_amount": "",
"status": null,
"hash": "8LkYR4qU27iimCProPerTYiscwCCPyYu4JMrw/70HZJv+sGghd6MqBRinjalLwRtPbkgs4Oc1lE1jH6Uqhua1mg=="
}
{
"data": [
{
"transaction_id": "1632096553",
"transaction_date": "2021-09-20 07:10:50",
"apv": "239137",
"status": "APPROVED",
"payment_type": "ABA Pay",
"original_amount": "5.5 USD",
"refund_amount": "0 USD",
"payment_amount": "5.5 USD",
"first_name": "Theareak",
"last_name": "Chea",
"email": "[email protected]",
"phone": "+855123456789",
"bank_ref": "100FT30140517093" },
{
"transaction_id": "724734",
"transaction_date": "2021-09-22 14:49:44",
"apv": "344574",
"status": "APPROVED",
"payment_type": "ABA Pay",
"original_amount": "15 USD",
"refund_amount": "0 USD",
"payment_amount": "15 USD",
"first_name": "RAIN",
"last_name": "RAIN",
"email": "[email protected]",
"phone": "85512356461",
"bank_ref": "100FT30140517976" },
{
"transaction_id": "245435",
"transaction_date": "2021-09-22 15:02:04",
"apv": "171624",
"status": "APPROVED",
"payment_type": "ABA Pay",
"original_amount": "7.9 USD",
"refund_amount": "0 USD",
"payment_amount": "7.9 USD",
"first_name": "RAIN",
"last_name": "RAIN",
"email": "[email protected]",
"phone": "85512356461",
"bank_ref": "100FT30140518000" }
],
"status": {
"code": "00",
"message": "Success!",
"lang": "en" }
}
# | Field name | Data type | Remark | Example |
---|---|---|---|---|
1 | status | Array | { "code": "00", "message": "Success!", "lang": "en" } | |
2 | code | String [2] | Possible Values 00 – Success | 00 |
3 | lang | String [2] | Possible Values • en - English • km – Khmer | |
4 | data | json |