LemonSqueezy MCP Server

v1.1.5
io.github.YawLabs/lemonsqueezy-mcp Checked 13 hours ago Published 1 day ago

LemonSqueezy MCP server for managing your store from AI assistants

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ls_get_user

Get the authenticated user's information including name, email, and avatar.

ls_get_store

Get a specific store by ID, including name, slug, currency, and sales statistics.

ParameterTypeDescription
storeId *stringThe store ID
includestringComma-separated related resources to include (e.g. 'products,discounts,license-keys,subscriptions,webhooks')

ls_list_stores

List all stores for the authenticated user. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: LEMONSQUEEZY_ALLOWED_STORE_IDS does NOT gate this tool -- it has no storeId field and no parent ID filter to scope by, so it returns every store the API key can see, including stores outside the allowlist. Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'products,discounts,license-keys,subscriptions,webhooks')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)

ls_get_customer

Get a specific customer by ID, including name, email, city, country, MRR, total revenue, and customer portal URL.

ParameterTypeDescription
customerId *stringThe customer ID
includestringComma-separated related resources to include (e.g. 'store,orders,subscriptions,license-keys,affiliates')

ls_list_customers

List all customers, optionally filtered by store or email. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
emailstringFilter by customer email
includestringComma-separated related resources to include (e.g. 'store,orders,subscriptions,license-keys,affiliates')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID

ls_create_customer

Create a new customer in a store.

ParameterTypeDescription
email *stringCustomer's email address
name *stringCustomer's full name
storeId *stringThe store ID to create the customer in
citystringCustomer's city
countrystringCustomer's country (ISO 3166-1 alpha-2 code, e.g. 'US')
regionstringCustomer's region/state

ls_update_customer

Update an existing customer's name, email, city, region, country, or status. The only supported status value is 'archived'; setting it here archives the customer, the same operation as the dedicated archive-customer tool, and is treated as destructive (rate-limited and audited). Other field edits are not.

ParameterTypeDescription
customerId *stringThe customer ID to update
citystringNew city
countrystringNew country (ISO 3166-1 alpha-2 code)
emailstringNew email
namestringNew name
regionstringNew region/state
statusstringSet to 'archived' to archive the customer. Same effect as the dedicated archive-customer tool.

ls_archive_customer

Archive a customer. Sets their status to 'archived'. This is reversible by updating their status back.

ParameterTypeDescription
customerId *stringThe customer ID to archive

ls_get_product

Get a specific product by ID, including name, description, price, and status.

ParameterTypeDescription
productId *stringThe product ID
includestringComma-separated related resources to include (e.g. 'store,variants')

ls_list_products

List all products, optionally filtered by store. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,variants')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID

ls_get_variant

Get a specific product variant by ID, including billing interval and trial settings. WARNING: do NOT read `price` as the amount charged. For usage-based, per-seat or otherwise tiered variants it is vestigial and commonly reads the same value across products that bill very differently. The authoritative per-unit price lives on the variant's PRICE resource -- list the prices filtered by this variantId, take the newest record by `created_at`, and read its `effective_unit_price`.

ParameterTypeDescription
variantId *stringThe variant ID
includestringComma-separated related resources to include (e.g. 'product,files')

ls_list_variants

List all variants, optionally filtered by product. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. WARNING: do NOT read `price` as the amount charged -- for usage-based, per-seat or otherwise tiered variants it is vestigial and commonly reads the same value across products that bill very differently. The authoritative per-unit price lives on each variant's PRICE resource: list the prices filtered by the variantId, take the newest record by `created_at`, and read its `effective_unit_price`. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is…

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'product,files')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
productIdstringFilter by product ID

ls_get_price

Get a specific price by ID, including amount, currency, and billing interval. Every record is annotated with `effective_unit_price` (cents actually charged per unit) and `effective_unit_price_note`. READ THAT, not `unit_price`: on a tiered scheme (volume/graduated) `unit_price` is vestigial and is NOT the charged amount -- the real per-unit price lives in `tiers[]`, and such records also carry `unit_price_is_not_charged: true`. On `package` pricing `unit_price` IS charged, but it buys a block of `package_size` units, so `effective_unit_price` reports the per-unit figure and the record carries…

ParameterTypeDescription
priceId *stringThe price ID
includestringComma-separated related resources to include (e.g. 'variant')

ls_list_prices

List all prices, optionally filtered by variant. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Every record is annotated with `effective_unit_price` (cents actually charged per unit) and `effective_unit_price_note`. READ THAT, not `unit_price`: on a tiered scheme (volume/graduated) `unit_price` is vestigial and is NOT the charged amount -- the real per-unit price lives in `tiers[]`, and such records also carry `unit_price_is_not_charged: true`. On `package` pricing `unit_price` IS charged, but it buys a block of `package_size` units, so `effect…

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'variant')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
variantIdstringFilter by variant ID

ls_get_file

Get a specific file by ID, including name, size, download URL, and associated variant.

ParameterTypeDescription
fileId *stringThe file ID
includestringComma-separated related resources to include (e.g. 'variant')

ls_list_files

List all files, optionally filtered by variant. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: variantId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'variant')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
variantIdstringFilter by variant ID

ls_get_order

Get a specific order by ID, including status, total, currency, customer info, and payment details.

ParameterTypeDescription
orderId *stringThe order ID
includestringComma-separated related resources to include (e.g. 'store,customer,order-items,subscriptions,license-keys,discount-redemptions,affiliate')

ls_list_orders

List all orders, optionally filtered by store or user email. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,customer,order-items,subscriptions,license-keys,discount-redemptions,affiliate')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID
userEmailstringFilter by user email

ls_generate_order_invoice

Generate a PDF invoice for an order. Returns a download URL for the invoice.

ParameterTypeDescription
orderId *stringThe order ID
addressstringCustomer address on the invoice
citystringCustomer city
countrystringCustomer country
localestringInvoice language locale (e.g. 'en', 'fr', 'de')
namestringCustomer name on the invoice
notesstringAdditional notes to include on the invoice
statestringCustomer state/region
zipCodestringCustomer ZIP/postal code

ls_refund_order

Issue a refund for an order. This is irreversible — the refund amount is in cents (e.g. 1000 = $10.00).

ParameterTypeDescription
amount *integerRefund amount in cents (e.g. 1000 = $10.00)
orderId *stringThe order ID to refund

ls_get_order_item

Get a specific order item by ID, including product name, variant, price, and quantity.

ParameterTypeDescription
orderItemId *stringThe order item ID
includestringComma-separated related resources to include (e.g. 'order,product,variant')

ls_list_order_items

List all order items, optionally filtered by order or product. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: orderId, productId, variantId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'order,product,variant')
orderIdstringFilter by order ID
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
productIdstringFilter by product ID
variantIdstringFilter by variant ID

ls_get_subscription

Get a specific subscription by ID, including status, billing interval, renewal date, and customer info.

ParameterTypeDescription
subscriptionId *stringThe subscription ID
includestringComma-separated related resources to include (e.g. 'store,customer,order,order-item,product,variant,subscription-items,subscription-invoices')

ls_list_subscriptions

List all subscriptions, optionally filtered by store, order, product, variant, or status. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,customer,order,order-item,product,variant')
orderIdstringFilter by order ID
orderItemIdstringFilter by order item ID
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
productIdstringFilter by product ID
statusstringFilter by subscription status
storeIdstringFilter by store ID
userEmailstringFilter by user email
variantIdstringFilter by variant ID

ls_update_subscription

Update a subscription. Can change the variant (plan switch), pause/unpause, set billing anchor, or update invoice details. Pausing (`pause: 'void'` or `'free'`), switching plan (`variantId`), changing the billing anchor (`billingAnchor`), invoicing immediately (`invoiceImmediately: true`), or changing the trial end (`trialEndsAt`) changes what the customer pays or when, and is treated as destructive (rate-limited and audited); resuming (`pause: 'resume'`), un-cancelling (`cancelled: false`), `invoiceImmediately: false` and `disableProrations` are not. Cancellation is not done here; it is a sep…

ParameterTypeDescription
subscriptionId *stringThe subscription ID to update
billingAnchorintegerDay of month (1-28) to anchor billing to
cancelledbooleanSet to false to un-cancel a subscription before it expires. Cancelling is a separate cancel-subscription operation, not this field.
disableProrationsbooleanIf true, disable prorations when changing plans
invoiceImmediatelybooleanIf true, invoice immediately when updating (default false for prorated changes)
pausestringPause mode: 'void' (pause, skip billing), 'free' (pause, keep access free), or 'resume' to unpause
trialEndsAtSet trial end date (ISO 8601 format). Set to null to end trial immediately.
variantIdstringNew variant ID for plan switching

ls_cancel_subscription

Cancel a subscription. The subscription remains active until the end of the current billing period, then expires.

ParameterTypeDescription
subscriptionId *stringThe subscription ID to cancel

ls_get_subscription_invoice

Get a specific subscription invoice by ID, including status, total, billing reason, and payment details.

ParameterTypeDescription
subscriptionInvoiceId *stringThe subscription invoice ID
includestringComma-separated related resources to include (e.g. 'store,subscription,affiliate')

ls_list_subscription_invoices

List all subscription invoices, optionally filtered by store, subscription, or status. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,subscription,affiliate')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
refundedbooleanFilter by refunded status
statusstringFilter by invoice status
storeIdstringFilter by store ID
subscriptionIdstringFilter by subscription ID

ls_generate_subscription_invoice

Generate a PDF invoice for a subscription invoice. Returns a download URL.

ParameterTypeDescription
subscriptionInvoiceId *stringThe subscription invoice ID
addressstringCustomer address on the invoice
citystringCustomer city
countrystringCustomer country
localestringInvoice language locale (e.g. 'en', 'fr', 'de')
namestringCustomer name on the invoice
notesstringAdditional notes to include on the invoice
statestringCustomer state/region
zipCodestringCustomer ZIP/postal code

ls_refund_subscription_invoice

Issue a refund for a subscription invoice. This is irreversible — the refund amount is in cents (e.g. 1000 = $10.00).

ParameterTypeDescription
amount *integerRefund amount in cents (e.g. 1000 = $10.00)
subscriptionInvoiceId *stringThe subscription invoice ID to refund

ls_get_subscription_item

Get a specific subscription item by ID, including quantity, pricing, and associated subscription. Pass `include=price` for the price record behind it; embedded price records are annotated with `effective_unit_price` (cents actually charged per unit) -- read that, not the record's `unit_price`, which is vestigial on tiered pricing and per-package on package pricing.

ParameterTypeDescription
subscriptionItemId *stringThe subscription item ID
includestringComma-separated related resources to include (e.g. 'subscription,price,usage-records')

ls_list_subscription_items

List all subscription items, optionally filtered by subscription or price. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Pass `include=price` for the price records behind them; embedded price records are annotated with `effective_unit_price` (cents actually charged per unit) -- read that, not a record's `unit_price`, which is vestigial on tiered pricing and per-package on package pricing. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: subscriptionId, priceId. Even with that set, Pair with a sco…

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'subscription,price,usage-records')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
priceIdstringFilter by price ID
subscriptionIdstringFilter by subscription ID

ls_update_subscription_item

Update a subscription item's quantity. Used for seat-based or quantity-based billing.

ParameterTypeDescription
quantity *integerNew quantity for the subscription item
subscriptionItemId *stringThe subscription item ID to update

ls_get_subscription_item_usage

Get the current usage for a metered subscription item within the current billing period.

ParameterTypeDescription
subscriptionItemId *stringThe subscription item ID

ls_get_usage_record

Get a specific usage record by ID, including quantity and action type.

ParameterTypeDescription
usageRecordId *stringThe usage record ID
includestringComma-separated related resources to include (e.g. 'subscription-item')

ls_list_usage_records

List all usage records, optionally filtered by subscription item. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: subscriptionItemId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'subscription-item')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
subscriptionItemIdstringFilter by subscription item ID

ls_create_usage_record

Report usage for a metered subscription item. Use 'increment' action to add to the current usage, or 'set' to replace it.

ParameterTypeDescription
quantity *integerThe usage quantity to report
subscriptionItemId *stringThe subscription item ID to report usage for
actionstringHow to apply the quantity: 'increment' (add to current, default) or 'set' (replace current)

ls_get_discount

Get a specific discount by ID, including code, amount, type, and usage limits.

ParameterTypeDescription
discountId *stringThe discount ID
includestringComma-separated related resources to include (e.g. 'store,variants,discount-redemptions')

ls_list_discounts

List all discounts, optionally filtered by store. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,variants,discount-redemptions')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID

ls_create_discount

Create a new discount code. Supports percentage or fixed amount discounts with optional duration and usage limits.

ParameterTypeDescription
amount *integerDiscount amount — in cents for 'fixed' type (e.g. 1000 = $10.00), or percentage for 'percent' type (e.g. 20 = 20%)
amountType *stringDiscount type: 'percent' or 'fixed'
code *stringThe discount code customers will enter (e.g. 'SAVE20')
name *stringInternal name for the discount
storeId *stringThe store ID to create the discount in
durationstringHow long the discount applies: 'once' (first payment only), 'repeating' (for N months), or 'forever' (default)
durationInMonthsintegerNumber of months the discount applies (required when duration is 'repeating')
expiresAtstringWhen the discount expires (ISO 8601 format)
isLimitedToProductsbooleanIf true, the discount only applies to specific variants (set via variantIds)
maxRedemptionsintegerMaximum number of times this discount can be redeemed (0 = unlimited)
startsAtstringWhen the discount becomes active (ISO 8601 format)
variantIdsarrayArray of variant IDs this discount applies to (requires isLimitedToProducts: true)

ls_delete_discount

Permanently delete a discount. This is irreversible.

ParameterTypeDescription
discountId *stringThe discount ID to delete

ls_get_discount_redemption

Get a specific discount redemption by ID, showing when and where a discount was used.

ParameterTypeDescription
discountRedemptionId *stringThe discount redemption ID
includestringComma-separated related resources to include (e.g. 'discount,order')

ls_list_discount_redemptions

List all discount redemptions, optionally filtered by discount or order. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: discountId, orderId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
discountIdstringFilter by discount ID
includestringComma-separated related resources to include (e.g. 'discount,order')
orderIdstringFilter by order ID
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)

ls_get_license_key

Get a specific license key by ID, including key value, status, activation limit, and expiry date.

ParameterTypeDescription
licenseKeyId *stringThe license key ID
includestringComma-separated related resources to include (e.g. 'store,customer,order,order-item,product,license-key-instances')

ls_list_license_keys

List all license keys, optionally filtered by store, order, or product. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,customer,order,order-item,product,license-key-instances')
orderIdstringFilter by order ID
orderItemIdstringFilter by order item ID
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
productIdstringFilter by product ID
storeIdstringFilter by store ID

ls_update_license_key

Update a license key's activation limit, expiry date, or disabled status. Setting `disabled: true`, changing `activationLimit`, or changing `expiresAt` can revoke customer access and is treated as destructive (rate-limited and audited); `disabled: false` alone is not.

ParameterTypeDescription
licenseKeyId *stringThe license key ID to update
activationLimitMaximum number of activations allowed. Pass null for unlimited.
disabledbooleanSet to true to disable this license key
expiresAtExpiry date (ISO 8601 format). Set to null to remove expiry.

ls_get_license_key_instance

Get a specific license key instance (activation) by ID, including instance name and creation date.

ParameterTypeDescription
licenseKeyInstanceId *stringThe license key instance ID
includestringComma-separated related resources to include (e.g. 'license-key')

ls_list_license_key_instances

List all license key instances (activations), optionally filtered by license key. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: when LEMONSQUEEZY_ALLOWED_STORE_IDS is set, this tool requires at least one of: licenseKeyId. Even with that set, Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'license-key')
licenseKeyIdstringFilter by license key ID
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)

ls_get_checkout

Get a specific checkout by ID, including URL, expiry, and custom data.

ParameterTypeDescription
checkoutId *stringThe checkout ID (a UUID, as returned by ls_list_checkouts / ls_create_checkout)
includestringComma-separated related resources to include (e.g. 'store,variant')

ls_list_checkouts

List all checkouts, optionally filtered by store or variant. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,variant')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID
variantIdstringFilter by variant ID

ls_create_checkout

Create a new checkout URL for a product variant. Returns a URL where the customer can complete their purchase. Supports custom pricing, prefilled customer data, and checkout customization.

ParameterTypeDescription
storeId *stringThe store ID
variantId *stringThe variant ID for the product being purchased
billingAddressCountrystringPrefill billing country (ISO 3166-1 alpha-2)
billingAddressZipstringPrefill billing ZIP/postal code
customDataobjectCustom data object to attach to the order
customPriceintegerCustom price in cents (overrides the variant price)
discountCodestringPre-apply a discount code
emailstringPrefill customer email
enabledVariantsarrayArray of variant IDs to show on the checkout (for products with multiple variants)
expiresAtstringCheckout expiry date (ISO 8601 format)
namestringPrefill customer name
taxNumberstringPrefill tax/VAT number

ls_get_webhook

Get a specific webhook by ID, including URL, events, and last sent timestamp.

ParameterTypeDescription
webhookId *stringThe webhook ID
includestringComma-separated related resources to include (e.g. 'store')

ls_list_webhooks

List all webhooks, optionally filtered by store. Results are paginated — check meta.page in the response for currentPage, lastPage, and total.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
storeIdstringFilter by store ID

ls_create_webhook

Create a new webhook to receive event notifications. The signing secret is returned only once — save it immediately.

ParameterTypeDescription
events *arrayEvent types to subscribe to (e.g. ['order_created', 'subscription_created', 'subscription_updated', 'subscription_cancelled', 'subscription_payment_success', 'subscription_payment_failed', 'license_ke…
secret *stringA signing secret for verifying webhook payloads
storeId *stringThe store ID
url *stringThe URL to send webhook events to (must be a valid http/https URL)

ls_update_webhook

Update an existing webhook's URL, events, or secret. Setting `secret` rotates the signing secret and breaks signature verification on the receiver until they update their copy -- this is treated as destructive (rate-limited and audited).

ParameterTypeDescription
webhookId *stringThe webhook ID to update
eventsarrayUpdated list of event types to subscribe to
secretstringNew signing secret
urlstringNew URL to send webhook events to (must be a valid http/https URL)

ls_delete_webhook

Permanently delete a webhook. This is irreversible.

ParameterTypeDescription
webhookId *stringThe webhook ID to delete

ls_activate_license

Activate a license key for an instance. Does not require an API key — uses the license key itself for auth.

ParameterTypeDescription
instanceName *stringA name for this activation instance (e.g. machine name, user identifier)
licenseKey *stringThe license key to activate

ls_validate_license

Validate a license key or specific instance. Does not require an API key — uses the license key itself for auth.

ParameterTypeDescription
licenseKey *stringThe license key to validate
instanceIdstringOptional instance ID to validate a specific activation

ls_deactivate_license

Deactivate a license key instance, revoking that instance's access. Destructive: rate-limited and audited, with the license key masked in the audit entry. Does not require an API key — uses the license key itself for auth.

ParameterTypeDescription
instanceId *stringThe instance ID to deactivate
licenseKey *stringThe license key

ls_get_affiliate

Get a specific affiliate by ID, including commission rate, status, and earnings.

ParameterTypeDescription
affiliateId *stringThe affiliate ID
includestringComma-separated related resources to include (e.g. 'store,user')

ls_list_affiliates

List all affiliates for the authenticated user's stores, optionally filtered by user email. Results are paginated — check meta.page in the response for currentPage, lastPage, and total. Cross-store note: LEMONSQUEEZY_ALLOWED_STORE_IDS does NOT gate this tool -- it has no storeId field and no parent ID filter to scope by, so it returns affiliates tied to every store the API key can see, including non-allowed ones. Pair with a scoped LemonSqueezy API key for true cross-store enforcement -- the API key's visibility is the true boundary.

ParameterTypeDescription
includestringComma-separated related resources to include (e.g. 'store,user')
pageNumberintegerPage number (1-indexed)
pageSizeintegerResults per page (1-100)
userEmailstringFilter by affiliate's user email

ls_sink_events_list

List webhook events the sink has received, optionally filtered. Use `since` (received_at timestamp, exclusive) to checkpoint. Requires the sink at LEMONSQUEEZY_SINK_URL with LEMONSQUEEZY_SINK_ADMIN_TOKEN.

ParameterTypeDescription
limitintegerMaximum number of events to return.
sinceintegerExclusive lower bound on received_at (Unix ms). Pass the highest received_at you have to checkpoint.
typestringFilter by event_name (e.g. 'order_created').

ls_sink_event_mark_processed

Mark a sink event as processed by your consumer. Idempotent.

ParameterTypeDescription
id *integerThe sink event ID (positive integer, as returned by ls_sink_events_list).

ls_sink_stats

Get sink totals: total events, unprocessed count, last-received timestamp.