Point History
This API is used to display the customer’s loyalty point history, including both earned (addition) and redeemed or expired points.
Endpoint
URL : {BaseURL}/api/v1/rewards/my-activity
Method : GET
Header : Content-Type : Application/JSON
Header : Authorization : {{pwa_token}}
Request
This section describes the request parameters and provides examples of JSON requests used to retrieve the customer’s loyalty point history.
Sample JSON Request
curl --location --globoff '{{BaseURL}}/api/v1/rewards/my-activity' \
--header 'Authorization: {{pwa_token}}'
Response
This section describes the response parameters and provides JSON response examples returned by the API when retrieving the customer’s loyalty point history.
Description Parameter Response
| FIELD | DATA TYPE | MANDATORY | FORMAT | DESCRIPTION |
|---|---|---|---|---|
| requestID | String (36) | YES | UUID | Unique identifier for the request. |
| rc | Integer (3) | YES | Numeric | Response code indicating the status of the operation. |
| Message | String (200) | YES | Alphanumeric | A descriptive message regarding the response. |
| data | JSON Object | YES | JSON Object | Detail information from data. |
| name | String (200) | YES | Alphanumeric | Name or description of the transaction (e.g., promotion or campaign name). |
| type | String (200) | YES | Alphanumeric | Type of transaction, such as Earn Point or Manual. |
| point | Integer (10) | YES | Numeric | Number of points earned or adjusted in this transaction. |
| transactionDate | String (32) | YES | Timestamp | Date and time when the transaction occurred. |
| transactionExpired | String (32) | YES | Timestamp | Expiration date of the transaction (if applicable). Returns null if not set. |
| transactionNumber | String (36) | YES | UUID | Unique transaction number or identifier. |
Sample JSON Response
{
"requestID": "89144d5c-9db9-46dc-831a-df7134a1d9ee",
"rc": 200,
"message": "read data successfully",
"data": [
{
"name": "[Test] Stay \u0026 Earn",
"type": "Earn Point",
"point": 500,
"transactionDate": "2025-10-13T14:20:58.290725+07:00",
"transactionExpired": null,
"transactionNumber": "0b7fe247-0ef2-4a15-89b6-3d9f9364cb27"
},
{
"name": "",
"type": "Manual",
"point": 190,
"transactionDate": "2025-10-13T13:30:22.859125+07:00",
"transactionExpired": null,
"transactionNumber": "00000000-0000-0000-0000-000000000000"
},
{
"name": "",
"type": "Manual",
"point": 950,
"transactionDate": "2025-10-13T00:25:59.120445+07:00",
"transactionExpired": null,
"transactionNumber": "00000000-0000-0000-0000-000000000000"
},
{
"name": "",
"type": "Manual",
"point": 950,
"transactionDate": "2025-10-10T17:54:43.278771+07:00",
"transactionExpired": null,
"transactionNumber": "00000000-0000-0000-0000-000000000000"
},
{
"name": "",
"type": "Manual",
"point": 950,
"transactionDate": "2025-10-10T17:52:52.223925+07:00",
"transactionExpired": null,
"transactionNumber": "00000000-0000-0000-0000-000000000000"
}
]
}