About Loyalty Read API

The Loyalty Read API is a high-performance, read-only API that provides fast access to loyalty data stored in the Loyalty Engine.

The API is intended for use cases where loyalty data needs to be retrieved frequently, such as customer profile synchronization, reporting, data exports, customer-facing applications, and integrations with external platforms.

Retrieving data

The Loyalty Read API is optimized specifically for retrieving data.

Compared with APIs that also process writes and business logic, a dedicated read-only API provides several benefits:

  • Faster access to loyalty data
  • Better performance for high-volume read operations
  • More predictable response times
  • Safer integration patterns, as requests cannot modify loyalty data
  • Support for filtering, sorting, and paginating large result sets

For more information about using pagination, filtering, and sorting, see the Pagination, filtering, and ordering documentation.

🚧

Important

The Loyalty Read API is read-only, it cannot be used to create or update customers, register events, modify transactions, trigger workflows, or perform other operations that change loyalty data. Use the relevant write APIs for those operations.

Available endpoints

  • Retrieve customers
    Retrieve customer profiles, including standard customer data, loyalty balances, tiers, memberships, custom attributes, and other workspace-specific information.

    Use the GET /v1/customers or GET /v1/customers/{customer_id} endpoint.

  • Retrieve customer coupons
    Access coupons associated with a customer, including their current status, value, validity, redemption details, and related coupon pool information.

    Use the GET /v1/customers/{customer_id}/coupons endpoint.

  • Retrieve customer events
    Review events recorded for a customer, including their registered properties, point impact, source, related events, and processing details.

    Use the GET /v1/customers/{customer_id}/events endpoint.

  • Retrieve customer transactions
    Access a customer’s transactions, including transaction items, associated events, point values, processing status, and automatic acceptance details.

    Use the GET /v1/customers/{customer_id}/transactions endpoint.

Data returned

The fields included in a response may vary depending on the workspace configuration, the enabled modules, the data registered for the customer, and the custom attributes configured for the relevant entities or events. Some properties are returned only when they contain applicable data. Custom customer attributes and event properties may also appear in the response, and their names and value types depend on the workspace configuration.

API Principles

The Loyalty Read API follows RESTful principles, utilizing standard HTTP methods to interact with resources. All responses are formatted in JSON, ensuring easy integration into user interfaces.

Security and Compliance

All server-to-server calls must comply with the API security protocol and signing procedure and adhere to the defined API rate limits.