v1
latestOpenAPI 3.1.02026-07-2422707.0 MBRetrieve the loyalty points history of a guest
This API helps you to retrieve the loyalty points history of the specified guest.
You must specify the unique identifier of the guest as guest_id in the API request. You can also leverage the pagination feature by passing page_num and num_records query parameters if you have a large number of records to be displayed. By default, page_num is set as 1 and num_records is set as 10. num_records cannot be more than 100: which means that the maximum records per page cannot be more than 100.
Path parameters
Unique identifier of the guest for whom we are retrieving the loyalty points.
Query parameters
Optional Indicates whether grooming-related LPs are to be viewed.
Optional Number of the display page. Default value is 1.
Optional Number of records per page. Default value is 10.
Optional Indicates whether the displayed records are to be sorted in ascending order. Default value is true.
Response
200
Example response
{
"guest_points": {
"balance_points": 35,
"balance_amount": 35,
"exchange_rate": 1,
"guest_points_details": [
{
"earned_on": "2019-05-06T00:00:00",
"program": "Manually Added",
"points_earned": 15,
"balance": 15,
"redemption_end": "2019-05-16T00:00:00",
"center": "South Granville's"
}
]
}
}