curl --location 'https://eu.api.capillarytech.com/v2/customers/564955097/loyaltyEvents' \
--header 'Authorization: Basic =' \
--header 'Cookie: _cfuvid=SPpJZvR8VvAMacotHKvjCBzkT.A38OIejYNSsGOXido-1757310494558-0.0.1.1-604800000'
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 |
Header Key | Description |
---|
Authorization | Bearer token for authentication. Example: Bearer <your_access_token>. |
Content-Type | Specifies the media type of the request. Use application/json for JSON. |
Accept | Defines the response format. Example: application/json or application/xml. |
X-Capillary-OrgId | Unique organization ID for which the API is being called. |
X-Capillary-App-Key | Application key for API access. |
X-CAP-API-OAUTH-TOKEN | This header is a custom authentication header used to pass the OAuth access token for API authentication. Refer to https://docs.capillarytech.com/reference/oauth#/ |
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"). |
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": []
}
{
"data": [
{
"id": 1602578009,
"customerId": 564955097,
"date": "2025-02-18T03:54:14Z",
"eventName": "CustomerRegistration",
"orgId": 100737,
"status": "SUCCESS",
"uniqueId": "D76aXtwJPP"
}
],
"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 |