Lemon Squeezy
Digital sales: orders, subscriptions, customers and licenses
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- In Lemon Squeezy (app.lemonsqueezy.com) open “Settings” → “API” and click “+” to create a key.
- Name it and copy it: it is shown only once. It gives full access to all the stores in the account. Keys created in test mode (“Test mode”) only see test data.
Tools (2)
Lemon Squeezy API request
LEMONSQUEEZY_SEND_REQUESTAuthenticated call to the Lemon Squeezy API (https://api.lemonsqueezy.com/v1). Any endpoint of the API is allowed. JSON:API; amounts in cents. Examples: GET /stores, GET /orders?filter[store_id]=…&filter[user_email]=…&page[size]=50, GET /orders/{id}, GET /subscriptions?filter[status]=active, GET /subscriptions/{id}, DELETE /subscriptions/{id} (cancels; resume with PATCH /subscriptions/{id} {"data": {"type": "subscriptions", "id": "…", "attributes": {"cancelled": false}}}), GET /customers?filter[email]=…, GET /products, GET /variants?filter[product_id]=…, GET /license-keys?filter[order_id]=…, GET /discounts, POST /checkouts {"data": {"type": "checkouts", "relationships": {"store": {"data": {"type": "stores", "id": "…"}}, "variant": {"data": {"type": "variants", "id": "…"}}}}} (payment link). Pagination: page[number] and page[size] (max. 100).
Required scopes
No scopes required
Input
Lemon Squeezy API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Orders
LEMONSQUEEZY_LIST_ORDERSOrders: id, number, date, customer, email, product, total, status (paid, refunded, partial_refund, pending, failed…) and receipt link. Can filter by store and by customer email.
Required scopes
No scopes required
Input
Orders input Name Type Description storestringStore ID (GET /stores) emailstringpageintegerDefault: 1maxintegerDefault: 25

