Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Order Item → Get

AI-generated

Summary

Retrieve a single Lemon Squeezy order item by its unique ID, optionally simplifying the response to a flattened structure.

Inputs

  • Order Item ID (required) — The unique identifier of the order item to fetch from Lemon Squeezy.
  • Simplify — Flag to simplify the response by flattening JSON:API attributes to the top level. When false, returns the raw JSON:API structure including type, attributes, and relationships.
  • Retry Options — Configure retry behavior for failed API requests, including maximum retry attempts and initial delay before retries with exponential backoff.

Output shape

A single order item record as returned by the Lemon Squeezy API, either in raw JSON:API format or simplified (flattened) format based on the Simplify option.

The output is a single order item resource. If Simplify is enabled (default), the returned object has top-level properties for id, type, and all attributes flattened for easier use in workflows. Otherwise, it retains the full JSON:API response structure. Retry options affect API request robustness but not output shape.

Examples

Example 1: Fetch order item with ID '12345' and receive simplified flattened output.

Set 'Order Item ID' to '12345', keep 'Simplify' enabled (true).

Example 2: Fetch order item with raw JSON:API response for advanced use cases.

Set 'Order Item ID' to the target ID, set 'Simplify' to false to receive unmodified JSON:API response data.

Links

Discussion