LoyaltyLion MCP by usefulapi
v1.2.1Read customers, points, rewards and orders; add or remove customer points in LoyaltyLion.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
loyaltylion_whoami Check the API key
Check that the API key works and show the loyalty program it belongs to. Call this first to confirm the connection. LoyaltyLion API: GET /v2/identity/whoami.
loyaltylion_list_sites List sites
List the program's sites (storefronts) with their ids, locales and status. Use the site id in other tools, such as available rewards. LoyaltyLion API: GET /v2/sites.
loyaltylion_list_customers List customers
List loyalty customers with their points balance, tier, enrollment and tags. Filter by email (partial match) or by created or updated time. LoyaltyLion API: GET /v2/customers.
| Parameter | Type | Description |
|---|---|---|
created_at_max | string | ISO 8601 datetime: only records created before this time. |
created_at_min | string | ISO 8601 datetime: only records created on or after this time. |
cursor | string | Cursor from the previous response's cursor.next, for the next page. |
email | string | Only customers whose email contains this text. |
limit | integer | Max results per request (1-500, default 100). |
sort_direction | string | Sort direction. |
sort_field | string | Field to sort by (default id). |
updated_at_max | string | ISO 8601 datetime: only records updated before this time. |
updated_at_min | string | ISO 8601 datetime: only records updated on or after this time. |
loyaltylion_list_customer_transactions List a customer's points transactions
List the points transactions (earned, redeemed, added, removed) of one customer, newest first. LoyaltyLion API: GET /v2/customers/{merchant_id}/transactions.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | The customer's id in the shop platform (merchant_id). |
created_at_max | string | ISO 8601 datetime: only records created before this time. |
created_at_min | string | ISO 8601 datetime: only records created on or after this time. |
cursor | string | Cursor from the previous response's cursor.next, for the next page. |
limit | integer | Max results per request (1-500, default 100). |
loyaltylion_list_available_rewards List a customer's available rewards
List the rewards one customer can claim now, optionally for one site or country. LoyaltyLion API: GET /v2/customers/{merchant_id}/available_rewards.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | The customer's id in the shop platform (merchant_id). |
country | string | ISO 3166-1 alpha-2 country code, for example US. |
site_id | number | Only rewards for this site id (from loyaltylion_list_sites). |
loyaltylion_list_orders List orders
List orders the program has received, with amounts, payment and refund status, and the points earned. Filter by created or updated time. LoyaltyLion API: GET /v2/orders.
| Parameter | Type | Description |
|---|---|---|
created_at_max | string | ISO 8601 datetime: only records created before this time. |
created_at_min | string | ISO 8601 datetime: only records created on or after this time. |
cursor | string | Cursor from the previous response's cursor.next, for the next page. |
limit | integer | Max results per request (1-500, default 100). |
updated_at_max | string | ISO 8601 datetime: only records updated before this time. |
updated_at_min | string | ISO 8601 datetime: only records updated on or after this time. |
loyaltylion_get_order Get an order
Get one order by its shop-platform id (merchant_id), with payments, refunds and totals. LoyaltyLion API: GET /v2/orders/{merchant_id}.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | The order's id in the shop platform (merchant_id). |
loyaltylion_list_transactions List points transactions
List points transactions for the whole program, newest first. Optionally limit to one LoyaltyLion customer id. LoyaltyLion API: GET /v2/transactions.
| Parameter | Type | Description |
|---|---|---|
created_at_max | string | ISO 8601 datetime: only records created before this time. |
created_at_min | string | ISO 8601 datetime: only records created on or after this time. |
cursor | string | Cursor from the previous response's cursor.next, for the next page. |
customer_id | number | Only transactions for this LoyaltyLion customer id (numeric id, not merchant_id). |
limit | integer | Max results per request (1-500, default 100). |
loyaltylion_list_activities List activities
List the customer activities the program has recorded, such as reviews and custom events, newest first. LoyaltyLion API: GET /v2/activities.
| Parameter | Type | Description |
|---|---|---|
created_at_max | string | ISO 8601 datetime: only records created before this time. |
created_at_min | string | ISO 8601 datetime: only records created on or after this time. |
cursor | string | Cursor from the previous response's cursor.next, for the next page. |
limit | integer | Max results per request (1-500, default 100). |
loyaltylion_list_webhooks List webhooks
List the webhooks registered for the program, with their event names and target URLs. LoyaltyLion API: GET /v2/webhooks.
loyaltylion_list_unsubscribes List email unsubscribes
List the email addresses that unsubscribed from loyalty emails. LoyaltyLion API: GET /v2/loyalty_emails/unsubscribes (scope read_unsubscribes).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max results per request (1-500, default 100). |
loyaltylion_add_points Add points to a customer
WRITE: adds points to one customer's balance. Each successful call changes the balance, so confirm the customer and amount first. LoyaltyLion API: POST /v2/customers/{merchant_id}/points.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | The customer's id in the shop platform (merchant_id). |
points * | integer | Number of points (1 to 1,000,000). |
reason | string | Optional message. The shopper sees it, and it appears on the customer's page in the LoyaltyLion admin. |
loyaltylion_remove_points Remove points from a customer
WRITE: removes points from one customer's balance. Each successful call changes the balance, so confirm the customer and amount first. LoyaltyLion API: POST /v2/customers/{merchant_id}/remove_points.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | The customer's id in the shop platform (merchant_id). |
points * | integer | Number of points (1 to 1,000,000). |
reason | string | Optional message. The shopper sees it, and it appears on the customer's page in the LoyaltyLion admin. |