LemonSqueezy MCP Server
v1.1.5LemonSqueezy 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.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The store ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'products,discounts,license-keys,subscriptions,webhooks') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | The customer ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
email | string | Filter by customer email |
include | string | Comma-separated related resources to include (e.g. 'store,orders,subscriptions,license-keys,affiliates') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter by store ID |
ls_create_customer
Create a new customer in a store.
| Parameter | Type | Description |
|---|---|---|
email * | string | Customer's email address |
name * | string | Customer's full name |
storeId * | string | The store ID to create the customer in |
city | string | Customer's city |
country | string | Customer's country (ISO 3166-1 alpha-2 code, e.g. 'US') |
region | string | Customer'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.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | The customer ID to update |
city | string | New city |
country | string | New country (ISO 3166-1 alpha-2 code) |
email | string | New email |
name | string | New name |
region | string | New region/state |
status | string | Set 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.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | The customer ID to archive |
ls_get_product
Get a specific product by ID, including name, description, price, and status.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,variants') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter 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`.
| Parameter | Type | Description |
|---|---|---|
variantId * | string | The variant ID |
include | string | Comma-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…
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'product,files') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
productId | string | Filter 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…
| Parameter | Type | Description |
|---|---|---|
priceId * | string | The price ID |
include | string | Comma-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…
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'variant') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
variantId | string | Filter by variant ID |
ls_get_file
Get a specific file by ID, including name, size, download URL, and associated variant.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | The file ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'variant') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
variantId | string | Filter by variant ID |
ls_get_order
Get a specific order by ID, including status, total, currency, customer info, and payment details.
| Parameter | Type | Description |
|---|---|---|
orderId * | string | The order ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,customer,order-items,subscriptions,license-keys,discount-redemptions,affiliate') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter by store ID |
userEmail | string | Filter by user email |
ls_generate_order_invoice
Generate a PDF invoice for an order. Returns a download URL for the invoice.
| Parameter | Type | Description |
|---|---|---|
orderId * | string | The order ID |
address | string | Customer address on the invoice |
city | string | Customer city |
country | string | Customer country |
locale | string | Invoice language locale (e.g. 'en', 'fr', 'de') |
name | string | Customer name on the invoice |
notes | string | Additional notes to include on the invoice |
state | string | Customer state/region |
zipCode | string | Customer 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).
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Refund amount in cents (e.g. 1000 = $10.00) |
orderId * | string | The order ID to refund |
ls_get_order_item
Get a specific order item by ID, including product name, variant, price, and quantity.
| Parameter | Type | Description |
|---|---|---|
orderItemId * | string | The order item ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'order,product,variant') |
orderId | string | Filter by order ID |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
productId | string | Filter by product ID |
variantId | string | Filter by variant ID |
ls_get_subscription
Get a specific subscription by ID, including status, billing interval, renewal date, and customer info.
| Parameter | Type | Description |
|---|---|---|
subscriptionId * | string | The subscription ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,customer,order,order-item,product,variant') |
orderId | string | Filter by order ID |
orderItemId | string | Filter by order item ID |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
productId | string | Filter by product ID |
status | string | Filter by subscription status |
storeId | string | Filter by store ID |
userEmail | string | Filter by user email |
variantId | string | Filter 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…
| Parameter | Type | Description |
|---|---|---|
subscriptionId * | string | The subscription ID to update |
billingAnchor | integer | Day of month (1-28) to anchor billing to |
cancelled | boolean | Set to false to un-cancel a subscription before it expires. Cancelling is a separate cancel-subscription operation, not this field. |
disableProrations | boolean | If true, disable prorations when changing plans |
invoiceImmediately | boolean | If true, invoice immediately when updating (default false for prorated changes) |
pause | string | Pause mode: 'void' (pause, skip billing), 'free' (pause, keep access free), or 'resume' to unpause |
trialEndsAt | Set trial end date (ISO 8601 format). Set to null to end trial immediately. | |
variantId | string | New 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.
| Parameter | Type | Description |
|---|---|---|
subscriptionId * | string | The subscription ID to cancel |
ls_get_subscription_invoice
Get a specific subscription invoice by ID, including status, total, billing reason, and payment details.
| Parameter | Type | Description |
|---|---|---|
subscriptionInvoiceId * | string | The subscription invoice ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,subscription,affiliate') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
refunded | boolean | Filter by refunded status |
status | string | Filter by invoice status |
storeId | string | Filter by store ID |
subscriptionId | string | Filter by subscription ID |
ls_generate_subscription_invoice
Generate a PDF invoice for a subscription invoice. Returns a download URL.
| Parameter | Type | Description |
|---|---|---|
subscriptionInvoiceId * | string | The subscription invoice ID |
address | string | Customer address on the invoice |
city | string | Customer city |
country | string | Customer country |
locale | string | Invoice language locale (e.g. 'en', 'fr', 'de') |
name | string | Customer name on the invoice |
notes | string | Additional notes to include on the invoice |
state | string | Customer state/region |
zipCode | string | Customer 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).
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Refund amount in cents (e.g. 1000 = $10.00) |
subscriptionInvoiceId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
subscriptionItemId * | string | The subscription item ID |
include | string | Comma-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…
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'subscription,price,usage-records') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
priceId | string | Filter by price ID |
subscriptionId | string | Filter by subscription ID |
ls_update_subscription_item
Update a subscription item's quantity. Used for seat-based or quantity-based billing.
| Parameter | Type | Description |
|---|---|---|
quantity * | integer | New quantity for the subscription item |
subscriptionItemId * | string | The subscription item ID to update |
ls_get_subscription_item_usage
Get the current usage for a metered subscription item within the current billing period.
| Parameter | Type | Description |
|---|---|---|
subscriptionItemId * | string | The subscription item ID |
ls_get_usage_record
Get a specific usage record by ID, including quantity and action type.
| Parameter | Type | Description |
|---|---|---|
usageRecordId * | string | The usage record ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'subscription-item') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
subscriptionItemId | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
quantity * | integer | The usage quantity to report |
subscriptionItemId * | string | The subscription item ID to report usage for |
action | string | How 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.
| Parameter | Type | Description |
|---|---|---|
discountId * | string | The discount ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,variants,discount-redemptions') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter by store ID |
ls_create_discount
Create a new discount code. Supports percentage or fixed amount discounts with optional duration and usage limits.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Discount amount — in cents for 'fixed' type (e.g. 1000 = $10.00), or percentage for 'percent' type (e.g. 20 = 20%) |
amountType * | string | Discount type: 'percent' or 'fixed' |
code * | string | The discount code customers will enter (e.g. 'SAVE20') |
name * | string | Internal name for the discount |
storeId * | string | The store ID to create the discount in |
duration | string | How long the discount applies: 'once' (first payment only), 'repeating' (for N months), or 'forever' (default) |
durationInMonths | integer | Number of months the discount applies (required when duration is 'repeating') |
expiresAt | string | When the discount expires (ISO 8601 format) |
isLimitedToProducts | boolean | If true, the discount only applies to specific variants (set via variantIds) |
maxRedemptions | integer | Maximum number of times this discount can be redeemed (0 = unlimited) |
startsAt | string | When the discount becomes active (ISO 8601 format) |
variantIds | array | Array of variant IDs this discount applies to (requires isLimitedToProducts: true) |
ls_delete_discount
Permanently delete a discount. This is irreversible.
| Parameter | Type | Description |
|---|---|---|
discountId * | string | The discount ID to delete |
ls_get_discount_redemption
Get a specific discount redemption by ID, showing when and where a discount was used.
| Parameter | Type | Description |
|---|---|---|
discountRedemptionId * | string | The discount redemption ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
discountId | string | Filter by discount ID |
include | string | Comma-separated related resources to include (e.g. 'discount,order') |
orderId | string | Filter by order ID |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
ls_get_license_key
Get a specific license key by ID, including key value, status, activation limit, and expiry date.
| Parameter | Type | Description |
|---|---|---|
licenseKeyId * | string | The license key ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,customer,order,order-item,product,license-key-instances') |
orderId | string | Filter by order ID |
orderItemId | string | Filter by order item ID |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
productId | string | Filter by product ID |
storeId | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
licenseKeyId * | string | The license key ID to update |
activationLimit | Maximum number of activations allowed. Pass null for unlimited. | |
disabled | boolean | Set to true to disable this license key |
expiresAt | Expiry 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.
| Parameter | Type | Description |
|---|---|---|
licenseKeyInstanceId * | string | The license key instance ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'license-key') |
licenseKeyId | string | Filter by license key ID |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
ls_get_checkout
Get a specific checkout by ID, including URL, expiry, and custom data.
| Parameter | Type | Description |
|---|---|---|
checkoutId * | string | The checkout ID (a UUID, as returned by ls_list_checkouts / ls_create_checkout) |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,variant') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter by store ID |
variantId | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The store ID |
variantId * | string | The variant ID for the product being purchased |
billingAddressCountry | string | Prefill billing country (ISO 3166-1 alpha-2) |
billingAddressZip | string | Prefill billing ZIP/postal code |
customData | object | Custom data object to attach to the order |
customPrice | integer | Custom price in cents (overrides the variant price) |
discountCode | string | Pre-apply a discount code |
email | string | Prefill customer email |
enabledVariants | array | Array of variant IDs to show on the checkout (for products with multiple variants) |
expiresAt | string | Checkout expiry date (ISO 8601 format) |
name | string | Prefill customer name |
taxNumber | string | Prefill tax/VAT number |
ls_get_webhook
Get a specific webhook by ID, including URL, events, and last sent timestamp.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The webhook ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
storeId | string | Filter by store ID |
ls_create_webhook
Create a new webhook to receive event notifications. The signing secret is returned only once — save it immediately.
| Parameter | Type | Description |
|---|---|---|
events * | array | Event types to subscribe to (e.g. ['order_created', 'subscription_created', 'subscription_updated', 'subscription_cancelled', 'subscription_payment_success', 'subscription_payment_failed', 'license_ke… |
secret * | string | A signing secret for verifying webhook payloads |
storeId * | string | The store ID |
url * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The webhook ID to update |
events | array | Updated list of event types to subscribe to |
secret | string | New signing secret |
url | string | New URL to send webhook events to (must be a valid http/https URL) |
ls_delete_webhook
Permanently delete a webhook. This is irreversible.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
instanceName * | string | A name for this activation instance (e.g. machine name, user identifier) |
licenseKey * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
licenseKey * | string | The license key to validate |
instanceId | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
instanceId * | string | The instance ID to deactivate |
licenseKey * | string | The license key |
ls_get_affiliate
Get a specific affiliate by ID, including commission rate, status, and earnings.
| Parameter | Type | Description |
|---|---|---|
affiliateId * | string | The affiliate ID |
include | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated related resources to include (e.g. 'store,user') |
pageNumber | integer | Page number (1-indexed) |
pageSize | integer | Results per page (1-100) |
userEmail | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of events to return. |
since | integer | Exclusive lower bound on received_at (Unix ms). Pass the highest received_at you have to checkpoint. |
type | string | Filter by event_name (e.g. 'order_created'). |
ls_sink_event_mark_processed
Mark a sink event as processed by your consumer. Idempotent.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.