Loyaltey API

The REST API lets you read and write the same loyalty data you see in the dashboard: customers, programs, cards, stamps and redemptions. Use it to connect a system Loyaltey has no ready-made integration for.

Authentication

  • API access is included on the Pro and Enterprise plans (pricing).
  • Create an API key in the dashboard under Integrations → API. Keys start with lp_live_ or lp_test_ and are shown once; only a hash is stored.
  • Each key carries scopes, such as customers:read or stamps:write. A request outside the key's scopes is refused.
  • Send the key on every request: Authorization: Bearer YOUR_API_KEY.
  • Base URL: https://loyaltey.com/api/v1. Requests and responses are JSON. List endpoints accept page and pageSize.
  • Rate limit: 100 requests per hour per key. Over the limit you get HTTP 429 with Retry-After (seconds), X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
curl https://loyaltey.com/api/v1/customers?page=1&pageSize=20 \
  -H "Authorization: Bearer lp_live_..."

Customers

Loyalty members of your business.

EndpointScopeWhat it does
GET/customerscustomers:readList customers, with search, sorting and pagination.
POST/customerscustomers:writeCreate a customer.
GET/customers/{id}customers:readGet one customer.
PUT/customers/{id}customers:writeUpdate a customer.
DELETE/customers/{id}customers:writeDelete a customer.

Programs

Stamp and points programs.

EndpointScopeWhat it does
GET/programsprograms:readList programs.
POST/programsprograms:writeCreate a program.

Cards and stamps

A customer’s card in a program, and the stamps on it.

EndpointScopeWhat it does
GET/cardscards:readList loyalty cards.
POST/cardscards:writeEnroll a customer in a program.
GET/cards/{id}cards:readGet one card with its balance.
PUT/cards/{id}cards:writeUpdate a card.
POST/cards/{id}/stampsstamps:writeAward stamps or points to a card.

Redemptions

Rewards customers have claimed.

EndpointScopeWhat it does
GET/redemptionsredemptions:readList redemptions.
POST/redemptionsredemptions:writeRedeem a completed card.

POS lookup

For point-of-sale integrations that identify members at checkout.

EndpointScopeWhat it does
GET/pos/lookuppos:lookupLook up a member by identifier.

Webhooks

Add webhook endpoints in Integrations → Webhooks. Loyaltey sends these events today:

EventSent when
customer.createdA customer is created by the Shopify or WooCommerce integration.
card.createdA customer joins a loyalty program.
stamp.addedStamps are awarded automatically from a connected POS, Shopify or WooCommerce sale.
card.completedAn automatically awarded stamp completes a card.
redemption.createdA customer redeems a reward.
order.paidA connected Shopify or WooCommerce order is paid.
order.shippedA connected Shopify or WooCommerce order is marked shipped.
order.deliveredA connected Shopify or WooCommerce order is marked delivered.
order.cancelledA connected Shopify or WooCommerce order is cancelled.

The order.* events originate in your connected Shopify or WooCommerce store. Loyaltey does not take or process orders itself; it receives the store's order events to award stamps and passes them on.

Ready-made integrations

Before building your own, check the integrations: POS systems, Shopify, WooCommerce, email tools and more.

Try Loyaltey free

The Starter plan is free for up to 100 customers, with no credit card. Growth is €29/month for up to 2,500 customers.