Lemon Squeezy API guide

lemonsqueezy.com

Review your Lemon Squeezy store revenue, spot subscriptions at risk of churn, and track redemptions for discount campaigns.

Actions and inputs

sync

Refresh local copies of selected store records.

Inputs Resource names, optional time window

revenue-snapshot

Summarize 30-day and lifetime revenue from synced orders, accounting for refunds.

churn-watch

Find subscriptions that recently became past due, unpaid, or canceled.

Inputs Time window

campaign-watch

Track discount redemptions and remaining campaign capacity.

Inputs Discount codes

Store products

Create

Create an unpublished digital product in a store you manage.

Inputs Store, product name, description, price, and optional download files

Read

Review a product’s variants, pricing, and publication status.

Inputs Store and product name or ID

Update

Update the description or replace a download file for a product in your store.

Inputs Product or variant ID and revised description or replacement file

Delete

Unpublish a product in your store to stop new purchases without deleting past orders.

Inputs Product ID and confirmation