Get Transaction (cURL)

All information for testing has been provided in your sandbox account. If you don't have an account yet, just quickly sign up here.

Testing Server:

https://sandbox.payway.com.kh/api/{merchant_api_name}/get/transactions/

Production Server:

https://payway.ababank.com/api/{merchant_api_name}/get/transactions/

Parameters:

Parameter NameTypeMandatoryDescription
datedateYesget transactions by date (valid format: yyyy-mm-dd). Ex: 2017-11-30
statusstringNo

get transactions by status. Status could appear as the following:

  • Approved
  • Approved, Refunded, Pending (if value not set, it will select all status)
 
hashstringYesencrypt "merchant_id+date, key" with hash_hmac sha512 after that convert the output by using Base64. merchant_id and key - will be provided by ABA Bank once contract is signed.

Response JSON-object:

1. status (int)

Possible value:

Status CodeMessage
0Success
1Wrong hash
2Validation code required
7Wrong validation code
11Other - server side error

2. description (string) - description of the status

3. total (int) - total of transactions

4. transactions - json string of transactions

Possible value:

No#Parameter Name
1order_id
2name
3datetime
4total_amount
5currency
6status
7apv
8payment_type

Sample Json String:

{
  "status": 0,
  "description": "success",
  "total": 1,
  "transactions": [
	{
        "order_id": "68618",
	  "name": "Jonh Ben",
	  "phone": "0123456789",
	  "datetime": "11/10/2017 02:53:34 PM",
	  "total_amount": 4.2,
	  "currency": "USD",
	  "status": "APPROVED",
	  "apv": "1234567",
	  "payment_type": "MC"
	}
  ]
}