Skip to main content

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
FIELDDATA TYPEMANDATORYFORMATDESCRIPTION
requestIDString
(36)
YESUUIDUnique identifier for the request.
rcInteger
(3)
YESNumericResponse code indicating the status of the operation.
MessageString
(200)
YESAlphanumericA descriptive message regarding the response.
dataJSON ObjectYESJSON ObjectDetail information from data.
nameString
(200)
YESAlphanumericName or description of the transaction (e.g., promotion or campaign name).
typeString
(200)
YESAlphanumericType of transaction, such as Earn Point or Manual.
pointInteger
(10)
YESNumericNumber of points earned or adjusted in this transaction.
transactionDateString
(32)
YESTimestampDate and time when the transaction occurred.
transactionExpiredString
(32)
YESTimestampExpiration date of the transaction (if applicable). Returns null if not set.
transactionNumberString
(36)
YESUUIDUnique 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"
}
]
}