Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

File → Get

AI-generated

Summary

Retrieves a single Lemon Squeezy file record (metadata) by its numeric ID, returning either a flattened object or the raw JSON:API resource.

Inputs

  • fileId (required) — Numeric ID of the file to retrieve (e.g., 12345).
  • simplifyOutput — Defaults to true. Flattens JSON:API attributes to top-level fields alongside id and type. Disable to get the raw JSON:API structure with type, attributes, and relationships.
  • retryOptions — Optional collection controlling retry of failed API requests: Max Retries (default 3, 0–10, 0 disables) and Initial Delay in ms (default 1000, 100–30000, doubles on each retry).

Output shape

A single item representing the file: a flat object (id, type, and attribute fields) when Simplify is on, or the raw JSON:API resource when off.

This operation returns metadata only and does not download binary content; the separate Download operation does that. The exact attribute fields depend on the Lemon Squeezy API response. API errors are surfaced as node errors after retries are exhausted.

Examples

Example 1: Look up details of a product file by ID

File ID = 12345, Simplify on (default)

Example 2: Inspect the raw JSON:API response including relationships

File ID from an earlier node via expression, Simplify off

Example 3: Make the call more resilient on flaky networks

File ID = 12345, Retry Options: Max Retries 5, Initial Delay 2000 ms

Links

Discussion