https://eu.api.capillarytech.com/v2/customers/565039505/loyaltyEvents
curl --location 'https://eu.api.capillarytech.com/v2/customers/565039505/loyaltyEvents' \
--header 'Authorization: Basic
c2FudC5wXzEyMzpiMmVhMGFhYWI1ZThmODg5ZTAzNGE2NjA5NTIwM2FlNw==' \
--header 'Cookie:
_cfuvid=uEUwrBAfGGgkRhH8C6wGyc6ShByhFRsEdpQj1e8WSGU-1750831646379-0.0.1.1-
604800000'
Field | Value |
---|
URI | v2/[customerId]/loyaltyEvents |
HTTP Method | GET |
Rate Limited | Yes |
Authentication | Yes (Bearer token) |
Batch Support | No |
Parameter | Type | Description |
---|
customerId | long | Unique ID of the customer. |
Parameter | Type | Description | Default |
---|
limit | int | Maximum records per page. | 10 |
offset | int | Records to skip (zero-based). | 0 |
page | int | Page number (overrides offset if both provided). | 1 |
eventType | string | Filter by event type (e.g., EARN, REDEEM, EXPIRE, TRANSFER). | null |
| | | |
fromDate | string | Start date for filtering events (format: YYYY-MM-DD). | null |
toDate | string | End date for filtering events (format: YYYY-MM-DD). | null |
Parameter | Type | Description |
---|
id | long | Unique identifier for the loyalty event. |
customerId | long | Unique ID of the customer associated with the event. |
date | string | Timestamp of the event in ISO 8601 format (e.g., "2025-02-28T06:16:16Z"). |
eventName | string | Name/type of the event (e.g., "CustomerRegistration", |
"CustomerUpdate"). | | |
orgId | long | Unique ID of the organization where the event occurred. |
status | string | Status of the event (e.g., "SUCCESS", "FAILED"). |
uniqueId | string | Unique reference ID for the event (e.g., "eQmzQLEfVb"). |
{
"data": [
{
"id": 1603616021,
"customerId": 565039505,
"date": "2025-02-28T06:16:16Z",
"eventName": "CustomerRegistration",
"orgId": 100737,
"status": "SUCCESS",
"uniqueId": "eQmzQLEfVb"
},
{
"id": 1603618101,
"customerId": 565039505,
"date": "2025-02-28T06:56:04Z",
"eventName": "CustomerUpdate",
"orgId": 100737,
"status": "SUCCESS",
"uniqueId": "RnPyaWafs6"
}
],
"warnings": [],
"errors": []
}
Error code | Description | Reason |
---|
8069 | Merged customer found | API request is made for a customer who |
has been merged | | |
8015 | Customer not found for the given identifiers | Invalid Customer ID passed |