Get Loyalty Events

Retrieves the details of loyalty events triggered for the customer.

Prerequisites

  • Basic or OAuth credentials
  • Read access to Points access group resource

API endpoint example

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'

Resource Information

FieldValue
URIv2/[customerId]/loyaltyEvents
HTTP MethodGET
Rate LimitedYes
AuthenticationYes (Bearer token)
Batch SupportNo

Request Parameters

Path Parameters

ParameterTypeDescription
customerIdlongUnique ID of the customer.

Query Parameters

ParameterTypeDescriptionDefault
limitintMaximum records per page.10
offsetintRecords to skip (zero-based).0
pageintPage number (overrides offset if both provided).1
eventTypestringFilter by event type (e.g., EARN, REDEEM, EXPIRE, TRANSFER).null
fromDatestringStart date for filtering events (format: YYYY-MM-DD).null
toDatestringEnd date for filtering events (format: YYYY-MM-DD).null

Response Parameters

ParameterTypeDescription
idlongUnique identifier for the loyalty event.
customerIdlongUnique ID of the customer associated with the event.
datestringTimestamp of the event in ISO 8601 format (e.g., "2025-02-28T06:16:16Z").
eventNamestringName/type of the event (e.g., "CustomerRegistration",
"CustomerUpdate").
orgIdlongUnique ID of the organization where the event occurred.
statusstringStatus of the event (e.g., "SUCCESS", "FAILED").
uniqueIdstringUnique 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": []
}

API specific Response

Error codeDescriptionReason
8069Merged customer foundAPI request is made for a customer who
has been merged
8015Customer not found for the given identifiersInvalid Customer ID passed
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!