Get Loyalty Posting
This call is executed to fetch the Loyalty postings of customers by their customer IDs.
GET
/accounts/loyalty/postings
Request elements
Requires either phone number or email.
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | Yes | Unique ID generated for the customer |
phone | String | Yes | Phone number of the customer |
String | Yes | Email ID of the customer | |
pageSize | Integer | Yes | Number of objects per page, Eg:10 |
pageNumber | Integer | Yes | Page Number, Eg:1 |
Error messages
Error Code | Error Message |
---|---|
1005 | Data Not Found |
EXAMPLE REQUEST:
GET http://[subdomain].datanuum.com/accounts/loyalty/postings??phone=971520000000&pageSize=5&pageNumber=1
EXAMPLE RESPONSE:
{
"pageNumber": 1,
"pageSize": 5,
"totalCount": 6,
"data": [
{
"tierOrder": 3,
"tierName": "Gold",
"credit": 38.22,
"creditValue": 3.822,
"debit": 0.0,
"debitValue": 0.0,
"awardOn": 382.2,
"currency": "AED",
"postingDate": "2025-05-21T12:09:53.000+0000",
"txnDate": "2025-05-21T12:09:15.000+0000",
"receipt": "ORD000436",
"branchName": "Mall of the Emirates",
"brandName": "Pulp Juice Bars",
"countryIso": "AE",
"country": "United Arab Emirates",
"type": 2,
"postingType": 1
},
{
"tierOrder": 3,
"tierName": "Gold",
"credit": 0.0,
"creditValue": 0.0,
"debit": 0.0,
"debitValue": 0.0,
"awardOn": 0.0,
"currency": "AED",
"postingDate": "2025-05-21T11:30:15.000+0000",
"txnDate": "2025-05-21T11:29:41.000+0000",
"receipt": "ORD000455",
"branchName": "Mall of the Emirates",
"brandName": "Pulp Juice Bars",
"countryIso": "AE",
"country": "United Arab Emirates",
"type": 2,
"postingType": 1
},
{
"tierOrder": 3,
"tierName": "Gold",
"credit": 0.0,
"creditValue": 0.0,
"debit": 294.0,
"debitValue": 29.4,
"awardOn": null,
"currency": "AED",
"postingDate": "2025-05-21T11:29:42.000+0000",
"txnDate": "2025-05-21T11:29:41.000+0000",
"receipt": "ORD000455",
"branchName": "Mall of the Emirates",
"brandName": "Pulp Juice Bars",
"countryIso": "AE",
"country": "United Arab Emirates",
"type": 2,
"postingType": 2
},
{
"tierOrder": 1,
"tierName": "Green",
"credit": 656.0,
"creditValue": 65.6,
"debit": 0.0,
"debitValue": 0.0,
"awardOn": 6560.0,
"currency": "AED",
"postingDate": "2025-05-21T07:31:55.000+0000",
"txnDate": "2025-05-21T07:31:23.000+0000",
"receipt": "ORD000451",
"branchName": "Mall of the Emirates",
"brandName": "Pulp Juice Bars",
"countryIso": "AE",
"country": "United Arab Emirates",
"type": 2,
"postingType": 1
},
{
"tierOrder": 1,
"tierName": "Green",
"credit": 11.76,
"creditValue": 1.176,
"debit": 0.0,
"debitValue": 0.0,
"awardOn": 117.6,
"currency": "AED",
"postingDate": "2025-05-21T07:27:56.000+0000",
"txnDate": "2025-05-21T07:27:17.000+0000",
"receipt": "ORD000450",
"branchName": "Mall of the Emirates",
"brandName": "Pulp Juice Bars",
"countryIso": "AE",
"country": "United Arab Emirates",
"type": 2,
"postingType": 1
}
]
}
import