Transaction Search
It is possible to query axept® PRO to provide more detailed information on a transaction level.
GET
/historyReports
URL
https://(TerminalIP):8080/POSitiveWebLink/1.1.0/rest/historyReports
An HTTPS GET
request should be sent to the above URL with the following parameters:
GET /historyReports Query String Parameters | |||
---|---|---|---|
Field Name | State | Data Type | Description |
tid | Mandatory | String | This is the serial number of the PAX IM30 that should process the transaction. |
dsablePrinting | Mandatory | String | This must be set to true otherwise the terminal will display the contents of the report on screen. |
GET /historyReports Header Parameters | |||
Authorization | Mandatory | String | This field should be populated with a value of “Bearer 6945595921271780” |
GET
Request Example
https://192.168.10.44:8080/POSitiveWebLink/1.1.0/rest/historyReports?tid=1640005298&disablePrinting=true
HTTP/1.1
Content-Type: application/json
Authorization: Bearer 6945595921271780
User-Agent: PostmanRuntime/7.26.8
Accept: */*
Host: 192.168.0.75:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
GET
Response Fields
In response to the GET
, axept® PRO will return one of five response codes:
HTTP Response Code | Description |
---|---|
200 | Request was successful. |
400 | Bad input parameter. Details would be returned in a text description. |
403 | Not Authorised |
404 | Not found. Details would be returned in a text description. |
408 | Request timeout. |
GET
Response 200
fields
GET /historyReports Response Body Parameters | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Field Name | Data Type | Description | ||||||||||
transType | String | Provides the transaction type that was performed:
| ||||||||||
totalAmountTrans | Integer | Total amount of the transaction in minor units including cashback\tips etc. | ||||||||||
transApproved | String | Indicates if the transaction was approve or the status of the approval. | ||||||||||
transDateTime | String | The date and time of the transaction in the format of yyyy-MM-dd hh:mm:ss | ||||||||||
cardPan | String | The masked PAN of the card for this transaction. | ||||||||||
retrievalReferenceNumber | String | The retrieval reference number for the transaction. | ||||||||||
receiptNumber | Integer | The number of the receipt for this transaction. |
GET
Example Response
HTTP/1.1 200
Content-Type: application/json
Date: Wed, 20 Jan 2021 17:17:09 GMT
Allow: POST, GET, OPTIONS, DELETE
Access-Control-Max-Age: 86400
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE
Access-Control-Allow-Headers: *
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Encoding: gzip
Transfer-Encoding: chunked
[{
"cardPan": "************0102",
"receiptNumber": 2,
"retrievalReferenceNumber": "000002970001",
"totalAmountTrans": 1000,
"transApproved": "APPROVED",
"transDateTime": "2021-01-19 11:26:57",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 3,
"retrievalReferenceNumber": "000003970001",
"totalAmountTrans": 100,
"transApproved": "DECLINED",
"transDateTime": "2021-01-19 11:29:25",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 4,
"retrievalReferenceNumber": "000004970001",
"totalAmountTrans": 100,
"transApproved": "APPROVED",
"transDateTime": "2021-01-19 11:32:01",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 5,
"retrievalReferenceNumber": "000005970001",
"totalAmountTrans": 100,
"transApproved": "APPROVED",
"transDateTime": "2021-01-19 11:32:30",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 13,
"retrievalReferenceNumber": "000013970001",
"totalAmountTrans": 100,
"transApproved": "APPROVED",
"transDateTime": "2021-01-20 03:26:21",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 14,
"retrievalReferenceNumber": "000014970001",
"totalAmountTrans": 100,
"transApproved": "DECLINED",
"transDateTime": "2021-01-20 03:29:00",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 15,
"retrievalReferenceNumber": "000015970001",
"totalAmountTrans": 102,
"transApproved": "DECLINED",
"transDateTime": "2021-01-20 03:31:18",
"transType": "SALE"
}, {
"cardPan": "************0102",
"receiptNumber": 16,
"retrievalReferenceNumber": "000016970001",
"totalAmountTrans": 100,
"transApproved": "APPROVED",
"transDateTime": "2021-01-20 04:04:49",
"transType": "SALE"
}
]