Customer Purchase History

With this endpoint, you can retreive transactions of a particular customer, also access previosly purchased e-pin codes; using his/her phone number, filtered by date.

POST
/ reports / customerhistory

Request Parameters

Parameter Type Required Description
CLIENT_ID String Yes Partner identifier provided by EpinTower
CUSTOMER_PHONE_NUMBER String No Customers phone number eg. 905551112233
CUSTOMER_ID String No Customers id eg 12-3a_4b
START_DATE String Yes Format: YYYY-MM-DD H:M:S
END_DATE String Yes Format: YYYY-MM-DD H:M:S
PAGE String Yes Paginator
SIZE String Yes Records per page
SIGNATURE String Yes Params clientID.secretKey See security section

CUSTOMER_PHONE_NUMBER and CUSTOMER_ID fields are not compulsory, but if you want to track the customers activity, either one of them or both of them should be valid.

Response Parameters

Parameter Type Description
PINS JSON
"DATA": [ 
{
"id": "1623",
"orderDate": "2021-08-11 22:08:00",
"transactionId": "testTransaction97",
"productName": "Crocs Çocuk Terlik Çocuk Terlik",
"productImage": "https://epintower.com/resources/images/guest/logo.svg",
"purchasedEpins": [
{
"pin": "9960afd4-415f-41ef-b4c9-0e6eedc4677a",
"extra": "",
"expiryDate": ""
},
{
"pin": "c5ab3f9f-08ad-4d00-a0c7-2d8c554c86fa",
"extra": "",
"expiryDate": ""
}
]
}
]
PAGE String Current page
SIZE String Number of records on current page
TOTAL_RECORDS String Number of total records
TOTAL_PAGE String Number of total pages
RESPONSE_CODE Integer Returned value of “0” implies transaction is successfully completed.
If the code is not "0", it means an error. See error codes section.
RESPONSE_MESSAGE String Response message for requested transaction
SIGNATURE String Params clientID.secretKey See security section