Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Variant → Get

AI-generated

Summary

Fetches a Lemon Squeezy variant by its ID. Choose whether to return simplified attributes or the raw JSON:API response, and optionally configure retries for failed requests.

Inputs

  • Variant ID (required) — The ID of the variant to retrieve.
  • Simplify — Defaults to true. When enabled, flattens JSON:API attributes to the top level; disable it to keep the raw JSON:API format.
  • Retry Options — Configure retries for failed API requests. Max Retries defaults to 3 (0–10); Initial Delay defaults to 1000 ms (100–30000 ms) and doubles with each retry.

Output shape

A single variant record.

The response is simplified by default; with Simplify disabled, it retains the raw JSON:API format. API errors may be returned if the request fails after retries.

Links

Discussion