LoyaltyLion MCP by usefulapi

v1.2.1
io.usefulapi/loyaltylion Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
created_at_maxstringISO 8601 datetime: only records created before this time.
created_at_minstringISO 8601 datetime: only records created on or after this time.
cursorstringCursor from the previous response's cursor.next, for the next page.
emailstringOnly customers whose email contains this text.
limitintegerMax results per request (1-500, default 100).
sort_directionstringSort direction.
sort_fieldstringField to sort by (default id).
updated_at_maxstringISO 8601 datetime: only records updated before this time.
updated_at_minstringISO 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.

ParameterTypeDescription
merchant_id *stringThe customer's id in the shop platform (merchant_id).
created_at_maxstringISO 8601 datetime: only records created before this time.
created_at_minstringISO 8601 datetime: only records created on or after this time.
cursorstringCursor from the previous response's cursor.next, for the next page.
limitintegerMax 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.

ParameterTypeDescription
merchant_id *stringThe customer's id in the shop platform (merchant_id).
countrystringISO 3166-1 alpha-2 country code, for example US.
site_idnumberOnly 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.

ParameterTypeDescription
created_at_maxstringISO 8601 datetime: only records created before this time.
created_at_minstringISO 8601 datetime: only records created on or after this time.
cursorstringCursor from the previous response's cursor.next, for the next page.
limitintegerMax results per request (1-500, default 100).
updated_at_maxstringISO 8601 datetime: only records updated before this time.
updated_at_minstringISO 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}.

ParameterTypeDescription
merchant_id *stringThe 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.

ParameterTypeDescription
created_at_maxstringISO 8601 datetime: only records created before this time.
created_at_minstringISO 8601 datetime: only records created on or after this time.
cursorstringCursor from the previous response's cursor.next, for the next page.
customer_idnumberOnly transactions for this LoyaltyLion customer id (numeric id, not merchant_id).
limitintegerMax 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.

ParameterTypeDescription
created_at_maxstringISO 8601 datetime: only records created before this time.
created_at_minstringISO 8601 datetime: only records created on or after this time.
cursorstringCursor from the previous response's cursor.next, for the next page.
limitintegerMax 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).

ParameterTypeDescription
limitintegerMax 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.

ParameterTypeDescription
merchant_id *stringThe customer's id in the shop platform (merchant_id).
points *integerNumber of points (1 to 1,000,000).
reasonstringOptional 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.

ParameterTypeDescription
merchant_id *stringThe customer's id in the shop platform (merchant_id).
points *integerNumber of points (1 to 1,000,000).
reasonstringOptional message. The shopper sees it, and it appears on the customer's page in the LoyaltyLion admin.