Get a loyalty customer's points balance

The Loyalty API is currently in beta.

Please contact our Support Team via our JIRA Service Desk for access to the Beta. If you don’t have access, please contact your account administrator for assistance.

Not yet integrated with Primer and interested in learning more? Contact us.

Create an API key with the loyalty-transactions:read scopes.

Get a loyalty customer by ID and connection ID. This includes the customer’s points balance.

The connectionId is the unique Primer identifier for your loyalty provider connection. Primer will provide this once the loyalty provider connection is created.

The customerId refers to the customer identifier on the loyalty provider’s side.

Path parameters

idstringRequired
The unique identifier for the customer on the loyalty provider.

Headers

X-API-KEYstringRequired

Query parameters

connectionIdstringRequired
ID of the Primer connection configuration.

Response

Successful Response
idstring or null
The unique identifier for the customer on the loyalty provider.
connectionIdstring or nullformat: "uuid"
ID of the Primer connection configuration.
connectionNamestring or null
Name of the loyalty provider.
balanceinteger or null
The loyalty customer's points balance.

Errors