User Points History

Retrieves the points history for a user's loyalty program. First, it retrieves loyalty benefits associated with the user and loyalty program. It sorts the benefits by creation date in descending order. Then, it maps each benefit to extract relevant information like points added or redeemed, transaction type, item details, and status. Additionally, it calculates total transaction count, points earned, and points redeemed. Finally, it returns a success response containing the points information and transaction details in a structured format.

Language
Credentials
Header
Click Try It! to start a request and see the response here!