Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Checkout → Get Many

AI-generated

Summary

Retrieves a list of checkouts from Lemon Squeezy, either all of them or up to a limit, with optional store/variant filtering, sorting, and related-resource inclusion.

Inputs

  • Return All — If true, pages through all results; otherwise only up to Limit is returned. Default false.
  • Limit — Max results to return (1–100, default 50). Shown only when Return All is off.
  • Filters — Optional filters: Store ID and Variant ID. These are sent to the API as filter[store_id] and filter[variant_id] query parameters.
  • Advanced Options — Sort Field (Created At or Updated At), Sort Direction (asc/desc, default desc), Pagination Timeout in seconds for Return All (default 300, 0 = no timeout, max 600), and Include Related (Store, Variant).
  • Simplify — Default true. Flattens JSON:API attributes to the top level of each item and merges included related resources under their relationship names. Turn off to get the raw JSON:API structure (type, attributes, relationships).
  • Retry Options — Max Retries (default 3, 0 disables) and Initial Delay in ms (default 1000, doubles on each retry) for failed API requests. Retries apply to rate-limit, 5xx and network errors.

Output shape

A list of checkout items, emitted as one n8n item per checkout. Each is flattened when Simplify is on, or raw JSON:API when it is off.

The source pack shows only signatures for the execute body, so exact output item handling is inferred from the helpers. With Include Related set and Simplify on, related store or variant data is attached under keys named after the relationship. Return All can be cut short by the pagination timeout. API errors are raised as NodeApiError after retries are exhausted.

Examples

Example 1: List the 20 most recently created checkouts for one store

Return All off, Limit 20, Filters > Store ID set, Advanced Options > Sort Field Created At, Sort Direction Descending.

Example 2: Export every checkout for a variant, with store and variant details

Return All on, Filters > Variant ID set, Advanced Options > Include Related: Store and Variant, Simplify on.

Links

Discussion