Sign inStart your trial

Lemon Squeezy

Reference

17 triggers and 60 actions for Lemon Squeezy workflows.

01. Triggers

Start a workflow when something happens in Lemon Squeezy

Each trigger lists the event it fires on, the data it sends, and a template you can use it in.

Webhook

17 triggers

Real-time push from the source.

Webhook★ Featured

license_key_created

Fires when a new license key is generated

2 output fields
Webhook★ Featured

order_created

Fires when a customer completes a purchase

2 output fields
Webhook★ Featured

order_refunded

Fires when a refund is processed for an order

2 output fields
Webhook★ Featured

subscription_cancelled

Fires when a subscription is cancelled

2 output fields
Webhook★ Featured

subscription_created

Fires when a new subscription is established

2 output fields
Webhook★ Featured

subscription_payment_success

Fires when a subscription renewal payment succeeds

2 output fields
Webhook

affiliate_activated

Fires when an affiliate's application is approved

2 output fields
Webhook

customer_updated

Fires when a customer's profile information is changed

2 output fields
Webhook

license_key_updated

Fires when a license key's properties are modified

2 output fields
Webhook

subscription_expired

Fires when a subscription reaches its final end date

2 output fields
Webhook

subscription_paused

Fires when billing for a subscription is paused

2 output fields
Webhook

subscription_payment_failed

Fires when a subscription renewal payment fails

2 output fields
Webhook

subscription_payment_recovered

Fires when a previously failed payment is successfully collected

2 output fields
Webhook

subscription_payment_refunded

Fires when a refund is issued for a subscription payment

2 output fields
Webhook

subscription_resumed

Fires when a cancelled subscription is reactivated

2 output fields
Webhook

subscription_unpaused

Fires when a paused subscription resumes billing

2 output fields
Webhook

subscription_updated

Fires when any subscription property changes

2 output fields
02. Operations

Act on Lemon Squeezy from a workflow

Operations are the actions a workflow can take in Lemon Squeezy, grouped by category. Each lists its method, parameters, and a template you can drop it into.

Affiliates

2 operations

Manage your affiliate partners and track their performance within your sales network. Use these operations to view all affiliates or retrieve details about a specific partner for reporting and commission management purposes.

GET

List all affiliates

/v1/affiliates

Retrieve a complete list of all affiliates in your program, allowing you to monitor partner activity and manage your affiliate relationships at a glance.

2 input · 3 query
GET

Retrieve an affiliate

/v1/affiliates/{id}

Get detailed information about a specific affiliate including their current status, total earnings, and which store they're promoting.

1 input · 3 path

Checkouts

3 operations

Handle the creation and monitoring of checkout sessions for your customers. These operations let you set up new checkouts, retrieve checkout details, and list all existing checkouts to track purchase funnel activity.

POST★ Featured

Create a checkout

/v1/checkouts

Creates a custom checkout URL for a product variant, allowing you to pre-fill customer information, apply discount codes, and attach metadata for tracking sales sources.

1 input
GET

List all checkouts

/v1/checkouts

Retrieve all checkout sessions created in your Lemon Squeezy store, including their status and details. Use this to monitor purchase activity, track customer checkout behavior, and verify completed transactions.

4 input · 3 query
GET

Retrieve a checkout

/v1/checkouts/{id}

Retrieve detailed information about a specific checkout session, including its status, associated products, and any custom data you attached during creation.

1 input · 3 path

Customers

4 operations

Maintain and query your customer database throughout their lifecycle. Create new customer records, update existing profiles, retrieve individual customer information, or list all customers for segmentation and analysis.

POST★ Featured

Create a customer

/v1/customers

Create a new customer record in your store to set up customer profiles before purchases or migrate customer data from other platforms.

1 input
GET★ Featured

List all customers

/v1/customers

Retrieve a list of all your customers across your stores with pagination support, enabling you to sync customer data, analyze customer behavior, and maintain accurate records.

4 input · 3 query
GET

Retrieve a customer

/v1/customers/{id}

Fetch detailed information about a specific customer including their name, email, purchase history, and subscription status. Use this to view customer profiles, verify their details, or check their transaction records.

1 input · 3 path
PATCH

Update a customer

/v1/customers/{id}

Update customer information like name, email, or status to keep your customer records current and accurate in Lemon Squeezy.

2 input · 3 path

Discount Redemptions

2 operations

Track how your discounts are being used across transactions and customers. View all redemption records or examine specific redemptions to understand promotion effectiveness and customer behavior.

GET

List all discount redemptions

/v1/discount-redemptions

Retrieve a list of all times customers have redeemed your discount codes, showing which codes are being used and how often. This helps you understand which promotions are driving conversions and engaging your customers.

4 input · 3 query
GET

Retrieve a discount redemption

/v1/discount-redemptions/{id}

Look up the details of a specific discount redemption to see which customer used which discount code and which order it was applied to.

1 input · 3 path

Discounts

4 operations

Create, manage, and retire promotional offers across your product catalog. These operations enable you to build discount campaigns, adjust them as needed, retrieve discount details, and remove expired or inactive promotions.

POST★ Featured

Create a discount

/v1/discounts

Create promotional discount codes with flexible pricing strategies (fixed amount or percentage off) and set rules for which products they apply to and how often they can be used. This lets you run targeted promotions and control when discounts expire.

1 input
DELETE

Delete a discount

/v1/discounts/{id}

Remove a discount code from your store when it's no longer needed, without affecting orders that already used it.

1 input · 3 path
GET

List all discounts

/v1/discounts

Retrieve all discount codes you've created to review active promotions, check how many times each code has been used, and analyze your discount strategy.

3 input · 3 query
GET

Retrieve a discount

/v1/discounts/{id}

Retrieve detailed information about a specific discount code, including its redemption code, type, discount amount, how many times it's been used, and any restrictions applied.

1 input · 3 path

Files

2 operations

Access digital products and resources associated with your catalog. Retrieve file metadata or list all available files to manage downloads and digital asset delivery.

GET

List all files

/v1/files

Retrieve all files attached to your products in a paginated list. Use this to audit your downloadable assets, check file sizes, and ensure the correct files are linked to each product.

3 input · 3 query
GET

Retrieve a file

/v1/files/{id}

Get detailed information about a specific file including its name, size, download URL, and associated product variant. Use this to verify file properties or retrieve download links for customer distribution.

1 input · 3 path

License API

3 operations

Control license key lifecycle and validation for your software products. Activate or deactivate keys for customers, and validate licenses to ensure proper access control and compliance.

POST★ Featured

Validate a license key

/v1/licenses/validate

Verify that a customer's license key is valid, active, and not expired, returning key details like license status and activation limits. Use this to protect your software from unauthorized use and ensure customers have paid for access.

2 input
POST

Activate a license key

/v1/licenses/activate

Register a user's license on their device or environment by creating a new license instance. This enables you to verify and activate purchased licenses within your software application.

2 input
POST

Deactivate a license key

/v1/licenses/deactivate

Removes an active license key activation to free up a slot, allowing you to reassign it to another device or user when needed.

2 input

License Key Instances

2 operations

Monitor individual license key activations across customer devices and systems. View all instances where a license is active or retrieve details about a specific activation.

GET

List all license key instances

/v1/license-key-instances

Retrieve a list of all devices or environments where your license keys have been activated, helping you track how many installations are currently using each key. This gives you visibility into your product's deployment across your customer base.

3 input · 3 query
GET

Retrieve a license key instance

/v1/license-key-instances/{id}

Retrieves the details of a specific license key activation, including the instance name, associated license key, and activation timestamp. Use this to check the status and properties of individual software activations.

1 input · 3 path

License Keys

3 operations

Administer software licenses throughout their lifecycle from issuance to revocation. Create, update, and retrieve license keys to manage product access and track licensing compliance.

GET

List all license keys

/v1/license-keys

Retrieve all license keys associated with your account in paginated results. Use this to monitor active licenses, track usage against your limits, and manage your licensing inventory.

6 input · 3 query
GET

Retrieve a license key

/v1/license-keys/{id}

Get detailed information about a specific license key including its current activation count, expiration date, and status. Use this to verify license validity and monitor usage limits for your customers.

1 input · 3 path
PATCH

Update a license key

/v1/license-keys/{id}

Modify a license key's activation limit, expiration date, or disabled status to manage your customer's access rights. Use this to extend licenses, increase allowed activations, or revoke access when needed.

2 input · 3 path

Order Items

2 operations

Examine individual line items within customer orders for detailed transaction analysis. List all order items or retrieve specific item details to understand purchasing patterns and product performance.

GET

List all order items

/v1/order-items

Retrieve a paginated list of individual line items from all orders to analyze product performance and generate detailed sales reports.

5 input · 3 query
GET

Retrieve an order item

/v1/order-items/{id}

Retrieve detailed information about a specific line item from an order, including product details, variant information, pricing, and quantity ordered. This is useful for examining individual items within a customer's purchase.

1 input · 3 path

Orders

4 operations

Process and manage customer purchases from placement through fulfillment and support. Retrieve order details, list all orders for reporting, generate invoices, and issue refunds when needed.

POST★ Featured

Issue a refund for an order

/v1/orders/{id}/refund

Process refunds for customer orders, whether for the full amount or a specific partial amount. Use this when you need to quickly return money to customers due to returns, cancellations, or billing corrections.

2 input · 3 path
POST

Generate an order invoice

/v1/orders/{id}/generate-invoice

Creates a downloadable PDF invoice for a completed order that you can send to customers for their records or accounting purposes.

9 input · 3 path · 3 query
GET

List all orders

/v1/orders

Retrieve a complete list of your orders with pagination support, allowing you to view transaction history and order details across your entire sales platform.

4 input · 3 query
GET

Retrieve an order

/v1/orders/{id}

Get complete details about a specific order including its status, total amount, customer information, and purchased items to verify transaction details or track customer purchases.

1 input · 3 path

Prices

2 operations

Inspect pricing structures for your products and variants across different markets or customer segments. Retrieve specific pricing information or list all available price points for your catalog.

GET

List all prices

/v1/prices

Retrieve all your product prices in a paginated format to review pricing tiers, compare costs across product variants, or export pricing data for analysis and reporting.

3 input · 3 query
GET

Retrieve a price

/v1/prices/{id}

Fetch detailed information about a specific price, including its amount, currency, and billing interval to understand your product's pricing structure.

1 input · 3 path

Products

2 operations

Access your product catalog information and metadata. Retrieve details about individual products or list your entire inventory for display and synchronization purposes.

GET

List all products

/v1/products

Retrieve all products from your Lemon Squeezy store with pagination support, allowing you to access your complete product catalog programmatically.

3 input · 3 query
GET

Retrieve a product

/v1/products/{id}

Get detailed information about a specific product including its name, description, pricing, and variants so you can display accurate product details or verify current product setup.

1 input · 3 path

Stores

2 operations

Manage your store or brand configurations and settings. Retrieve store details or list all stores if you operate multiple storefronts.

GET

List all stores

/v1/stores

Retrieve a complete list of all your Lemon Squeezy stores so you can manage multiple storefronts and identify store IDs for organizing your products and sales data.

2 input · 3 query
GET

Retrieve a store

/v1/stores/{id}

Get detailed information about a specific store including its name, currency, web address, and revenue performance. Use this to access key store metrics and settings for reporting or configuration purposes.

1 input · 3 path

Subscription Invoices

4 operations

Handle billing and financial records for recurring subscriptions. Generate invoices and PDFs for customers, process refunds, and view all subscription invoices for accounting and reporting.

POST

Generate a subscription invoice PDF

/v1/subscription-invoices/{id}/generate-invoice

Creates a downloadable PDF invoice for a subscription payment, allowing you to provide customers with professional billing documentation for their recurring charges.

9 input · 3 path · 3 query
POST

Issue a refund for a subscription invoice

/v1/subscription-invoices/{id}/refund

Process refunds for subscription invoice charges, allowing you to refund the full amount or specify a partial refund when needed. This helps you manage customer disputes, billing errors, or service adjustments without manual intervention.

2 input · 3 path
GET

List all subscription invoices

/v1/subscription-invoices

Retrieve all subscription invoices for your customers to track billing history and identify payment issues. This helps you monitor recurring revenue and reconcile your financial records.

6 input · 3 query
GET

Retrieve a subscription invoice

/v1/subscription-invoices/{id}

Fetch detailed information about a specific subscription invoice including its status, amount, and associated subscription to track billing records and customer payment history.

1 input · 3 path

Subscription Items

4 operations

Manage individual features or usage tiers within subscriptions for metered billing scenarios. Update subscription items, track usage consumption, and retrieve item details to support usage-based pricing models.

GET

List all subscription items

/v1/subscription-items

Retrieve all the individual products, services, or pricing tiers attached to your subscriptions, organized by page for easy browsing. This helps you see what customers are paying for across all their active subscriptions.

4 input · 3 query
GET

Retrieve a subscription item

/v1/subscription-items/{id}

Get detailed information about a specific item within a subscription, including its price, quantity, and which subscription it belongs to. Use this to track what your customers are subscribed to and manage individual subscription components.

1 input · 3 path
GET

Retrieve current usage for a subscription item

/v1/subscription-items/{id}/current-usage

Fetches the current billing period's usage total for a metered subscription item to show customers how much they've consumed before the next invoice.

1 input · 3 path
PATCH

Update a subscription item

/v1/subscription-items/{id}

Modify the quantity of a subscription item to adjust a customer's billing based on usage or seat count changes. This is essential for scaling services as customer needs evolve.

2 input · 3 path

Subscriptions

4 operations

Oversee recurring billing relationships with customers throughout their subscription tenure. Create subscriptions, modify terms, cancel services when needed, and retrieve subscription status and details.

DELETE★ Featured

Cancel a subscription

/v1/subscriptions/{id}

Immediately stops an active customer subscription and removes their access to your product or service.

1 input · 3 path
GET★ Featured

List all subscriptions

/v1/subscriptions

Retrieve all your active subscriptions and their status from Lemon Squeezy. Use this to monitor your subscriber base, identify at-risk customers, and keep your app's user access in sync with current billing status.

7 input · 3 query
GET

Retrieve a subscription

/v1/subscriptions/{id}

Retrieve detailed information about a specific customer subscription, including its status, billing period, plan details, and renewal date.

1 input · 3 path
PATCH

Update a subscription

/v1/subscriptions/{id}

Modify subscription details including plan changes, pause/resume billing, adjust billing dates, or schedule cancellation at period end. Use this to manage active customer subscriptions and handle plan changes without disrupting service.

2 input · 3 path

Usage Records

3 operations

Log and track customer consumption for metered or usage-based billing plans. Create new usage events, retrieve historical records, and list all usage data to support accurate billing and customer insights.

POST

Create a usage record

/v1/usage-records

Report metered usage for a subscription to track and bill customers based on actual consumption like API calls, compute hours, or resource usage. This increments the usage total for the current billing period to ensure accurate billing.

1 input
GET

List all usage records

/v1/usage-records

Retrieve a paginated list of usage records to monitor and audit how much your customers are consuming from your metered billing services. Use this to verify billing accuracy, investigate customer inquiries about charges, or track usage trends over time.

3 input · 3 query
GET

Retrieve a usage record

/v1/usage-records/{id}

Fetch the details of a specific usage record to view the quantity reported, which subscription item it applies to, and when the usage was recorded.

1 input · 3 path

Users

1 operation

Access information about the authenticated user currently interacting with the API. Retrieve profile details and permissions for the account making requests.

GET

Retrieve the authenticated user

/v1/users/me

Fetch the profile details of the user who owns the current API key, including name, email, and avatar URL. Use this to verify API access and display account information in your application.

Variants

2 operations

Access different versions or configurations of your products such as size, color, or tier options. Retrieve variant details or list all variants to present purchasing options to customers.

GET

List all variants

/v1/variants

Retrieve all product variants from your store, including different pricing tiers, feature sets, and license types. Use this to understand what versions of your products are available and how they're structured.

3 input · 3 query
GET

Retrieve a variant

/v1/variants/{id}

Get detailed information about a specific product variant, including its price, name, and description. Use this to display accurate product details to customers or manage your inventory across different variants.

1 input · 3 path

Webhooks

5 operations

Set up and manage event notifications to stay synchronized with Lemon Squeezy activity. Create webhooks to receive real-time updates, modify existing endpoints, list all configured webhooks, and remove outdated ones as needed.

POST

Create a webhook

/v1/webhooks

Register a webhook endpoint to automatically receive real-time notifications when specific events occur in your Lemon Squeezy account, such as new orders or subscription changes.

1 input
DELETE

Delete a webhook

/v1/webhooks/{id}

Remove a webhook endpoint to stop receiving event notifications from Lemon Squeezy. Use this when you no longer need updates about sales, subscriptions, or other events sent to a specific URL.

1 input · 3 path
GET

List all webhooks

/v1/webhooks

Retrieve all webhook endpoints you've set up to receive real-time notifications from your store. Use this to verify your event subscriptions are configured correctly and audit which business events you're monitoring.

3 input · 3 query
GET

Retrieve a webhook

/v1/webhooks/{id}

Retrieve the configuration details for a specific webhook, including its endpoint URL, subscribed events, and signing secret for message verification.

1 input · 3 path
PATCH

Update a webhook

/v1/webhooks/{id}

Modify your webhook configuration to change which events trigger notifications, update the endpoint URL where you receive notifications, or rotate your webhook secret for security purposes.

2 input · 3 path
What now

Use Lemon Squeezy in a workflow

Drop a trigger and an action into a template; approve from your phone; the workflow runs.