Skip to content
Maua.Culturewire

Lemon Squeezy

Digital sales: orders, subscriptions, customers and licenses

Finance and accountingCatalog2 tools · 0 triggers

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

    1. In Lemon Squeezy (app.lemonsqueezy.com) open “Settings” → “API” and click “+” to create a key.
    2. 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.

    Get credentials (opens in a new tab)

Tools (2)

  • Lemon Squeezy API requestLEMONSQUEEZY_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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.
  • OrdersLEMONSQUEEZY_LIST_ORDERS

    Orders: 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
    NameTypeDescription
    storestringStore ID (GET /stores)
    emailstring
    pageintegerDefault: 1
    maxintegerDefault: 25