API referenceTransactions
List transactions
GET
Lists the transactions your integration key can reach, newest first.
Filter by trading_id or device_id, and by capture time with
captured_after and captured_before.
To pick up changes, sort by -updated_at: a void moves the sale it
voids, and a transaction uploaded late arrives with an old
captured_at but a new updated_at.
integrationKeyheader
AuthorizationBearer <token>Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>.
Narya issues it.
page?integerRange
1 <= valueDefault
1limit?integerRange
1 <= value <= 100Default
20trading_id?stringFormat
uuiddevice_id?stringFormat
uuidcaptured_after?stringInclusive lower bound on captured_at.
Format
date-timecaptured_before?stringExclusive upper bound on captured_at.
Format
date-timesort?stringOrders by updated_at, ascending, or descending with a - prefix. Ties
break on id. Without it the list is newest captured_at first.
Value in
"updated_at""-updated_at"A page of transactions
application/json- response
data*array<>page*integerRange
1 <= valuelimit*integerRange
1 <= value <= 100total_count*integerRange
0 <= valuetotal_is_capped*booleantotal_pages*integerRange
0 <= valuehas_more*booleanExample Request
curl -X GET 'https://api-narya-staging.pmadvisors.my/integration/v1/transactions'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "trading_id": "1697ee0a-d655-4892-9ce3-9e2a05ec9dc1", "acquirer_id": "32871e4c-4020-4557-b297-174c2d3721f9", "tid": "string", "mid": "string", "channel": "card", "type": "sale", "status": "approved", "acquirer_ref": "string", "response_code": "string", "invoice_no": "string", "batch_no": "string", "captured_at": "2019-08-24T14:15:22Z", "received_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "currency": "string", "amount_total": 0, "card_scheme": "string", "card_pan_last4": "string", "root_transaction_id": "80326e99-5851-470f-abfc-d26103ea144d", "original_transaction_id": "368700fc-be57-4411-8ef4-136caf5681c0", "voided_by_transaction_id": "4a6c7bbe-734a-4b52-b320-909980108587" } ], "page": 1, "limit": 1, "total_count": 0, "total_is_capped": true, "total_pages": 0, "has_more": true}