Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Checkout → Get

AI-generated

Summary

Retrieves a single Lemon Squeezy checkout by its ID and returns it, either flattened or as raw JSON:API.

Inputs

  • checkoutId (required) — ID of the checkout to retrieve.
  • simplifyOutput — Defaults to true. Flattens JSON:API attributes to the top level of the output. Turn it off to get the raw JSON:API structure with type, attributes and relationships.
  • retryOptions — Collection for retry behavior on failed API requests. Max Retries defaults to 3 (0 to 10; 0 disables retries). Initial Delay (ms) defaults to 1000 (100 to 30000) and doubles on each retry.

Output shape

A single checkout record. With Simplify on, the output has id, type and the attribute fields at the top level. With Simplify off, it is the JSON:API resource with type, attributes and relationships.

The source pack shows only the module structure, not the execute body. The description of the request is based on the declared properties and the shared API helper. The helper retries on rate limits (429) and on 5xx or network errors. It throws a NodeApiError if the request still fails, for example when the ID does not exist.

Examples

Example 1: Look up a checkout created earlier in the workflow to read its URL and status.

Checkout ID set to an expression such as {{$json.id}}; Simplify left on.

Example 2: Get the full JSON:API payload, including relationships, for a specific checkout.

Checkout ID set to a fixed value; Simplify off.

Example 3: Fetch a checkout reliably when the API is under load.

Checkout ID set; Retry Options with Max Retries 5 and Initial Delay 2000 ms.

Links

Discussion