Skip to content
LoyaltyLion logo

Connectors / Marketing · HTTP Connector

Automate LoyaltyLion with Tray.ai

Add points, create an activity and create an order in LoyaltyLion, and start a workflow when LoyaltyLion sends “Customer updated”.

What can you do with LoyaltyLion on Tray.ai?

LoyaltyLion is a loyalty and rewards platform for online stores, running points, tiers, referrals and rewards for shoppers. Tray.ai connects to LoyaltyLion through the HTTP Connector, so your workflows can call the LoyaltyLion API alongside the rest of your stack.

  • When LoyaltyLion sends “Customer tier upgraded”, tag the customer in your email marketing tool.
  • Add points when your help desk resolves a complaint with a goodwill gesture.
  • When LoyaltyLion sends “Customer referral complete”, record the referral in your CRM.
  • Create an order when a sale is taken through your in-store point of sale system.
Connects through
HTTP Connector
Authentication
A bearer token or OAuth 2.0
Base URL
https://api.loyaltylion.com/v2

Set it up

Connect LoyaltyLion to Tray.ai

Each step uses LoyaltyLion's own API details, from its documentation.

Step 1

Save LoyaltyLion's API token

Save the token LoyaltyLion issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.loyaltylion.com/v2 as the base URL. Or paste a cURL example from LoyaltyLion's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List customers”

It's one of 17 documented actions, under Customers. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from LoyaltyLion events

Give LoyaltyLion the URL of a Tray.ai webhook trigger. “Customer updated” can then start a workflow, and so can 5 other events.

Workflows to build with LoyaltyLion

Each one uses actions and events from LoyaltyLion's own API documentation.

Sync LoyaltyLion tier upgrades to HubSpot

When

Customer tier upgraded

Then

  1. Update the contact's loyalty tier in HubSpot
  2. Post the upgrade to the customer team channel in Slack

With HubSpot and Slack

Add LoyaltyLion goodwill points from Zendesk tickets

When

A ticket is tagged for a goodwill gesture in Zendesk

Then

  1. Add points to the customer's account in LoyaltyLion
  2. Add a note to the ticket in Zendesk with the points given

With Zendesk

Apps you can build on LoyaltyLion data

Internal tools your team can build with an AI assistant, each one using LoyaltyLion calls from its API documentation.

Member points desk

Finds a shopper with their activity history and lets support add or remove points.

Reward claim log

Logs each reward claim as it happens and lets support refund a reward claimed by mistake.

Give your AI agents LoyaltyLion tools

Build an MCP server on LoyaltyLion in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List customers
  • List available rewards
  • List activities
  • List orders
  • List webhooks
  • Update a customer
  • Add points
  • Remove points

What the LoyaltyLion API covers

5 resources and 17 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Customers

  • List customers
  • Update a customer
  • Add points
  • Remove points

Customer rewards

  • List available rewards
  • Redeem a reward
  • Refund a reward

Activities

  • List activities
  • Create an activity
  • Update an activity

Orders

  • List orders
  • Get an order
  • Create an order
  • Update an order

Webhooks

  • List webhooks
  • Create a webhook
  • Delete a webhook

Events LoyaltyLion can send to a Tray.ai webhook trigger

  • Customer updated
  • Customer enrolled
  • Customer tier upgraded
  • Customer points earned
  • Customer claimed reward
  • Customer referral complete

Checked against LoyaltyLion's own documentation on 2026-10-27

developers.loyaltylion.com

Frequently asked questions

What can a Tray.ai workflow do in LoyaltyLion?

+

The LoyaltyLion API documents 17 actions across 5 resources (Customers, Customer rewards, Activities, Orders, Webhooks). For example: List customers; List available rewards; List activities. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with LoyaltyLion?

+

The LoyaltyLion API uses a bearer token and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which LoyaltyLion events can start a Tray.ai workflow?

+

LoyaltyLion sends 6 events to a webhook URL, for example: Customer updated; Customer enrolled; Customer tier upgraded; Customer points earned; Customer claimed reward; Customer referral complete. A Tray.ai webhook trigger receives them and starts a workflow.

See LoyaltyLion working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.