List
Merchant can fetch their transactions.
Endpoint URL
Credentials
Parameters
Default parameters list will be applied (refer Default section), If no parameters are supply during API request.
Both start_date and end_date need to be supplied for date range search. E.g For daily transaction on 20/09/2020 need to set start_date=2020-09-20 and end_date=2020-09-20
Default
Per page: 10 Maximum per page: 100 (Please use pagination if data more than 100) Payment status: Success (True) Data search limit: 3 months (90 days)
Paginate
Fetch 5 payments per page
https://sandbox.securepay.my/api/v1/payments/list?per_page=5
Getting second page
https://sandbox.securepay.my/api/v1/transactions/list?per_page=5&page=2
Example fetch 100 payments
https://sandbox.securepay.my/api/v1/transactions/list?per_page=100
Example fetch 100 payments on page 3
https://sandbox.securepay.my/api/v1/transactions/list?per_page=100&page=3
Payment status
There are true and false for payment status.
True status - Payment successfully received
False Status - Payment not successfully go through
To request the list by payment status e.g:
1. request success payment status (default) https://sandbox.securepay.my/api/v1/transactions/list?payment_status
https://sandbox.securepay.my/api/v1/transactions/list?payment_status=true
2. request failed payment status https://sandbox.securepay.my/api/v1/transactions/list?payment_status=false
3. request success and failed statushttps://sandbox.securepay.my/api/v1/transactions/list?payment_status=all
4. request success payment status with 10 data on page 2 https://sandbox.securepay.my/api/v1/transactions/list?payment_status=true&per_page=10&page=2
By default, if no payment_status is set the API will return success (true) status.
Data created date and time
Each data will have two types of format:
Get daily transaction list
Below example set start_date = 2020-09-27 and end_date = 2020-09-27
Search by date range
Below example set start_date = 2020-09-15 and end_date = 2020-09-27
Example using curl
Example 2 with header
Response values
Last updated