Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Affiliate → Get

AI-generated

Summary

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

Inputs

  • affiliateId (required) — ID of the affiliate to retrieve.
  • simplifyOutput — Defaults to true. Flattens JSON:API attributes to the top level alongside id and type. 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–10; 0 disables retries). Initial Delay (Ms) defaults to 1000 (100–30000) and doubles on each retry.

Output shape

A single affiliate record. When simplified, it is a flat object with id, type and the affiliate attributes. Otherwise it is the raw JSON:API resource object.

The source pack shows only the shared helpers, not the Affiliate Get execute body. The details come from the properties and helpers. The helpers retry on rate limits (HTTP 429) and on 5xx or network errors. API failures are thrown as NodeApiError.

Examples

Example 1: Look up an affiliate's details after a referral event.

Set Affiliate ID to an expression such as {{ $json.affiliate_id }}, and leave Simplify on.

Example 2: Fetch the raw JSON:API payload, including relationships, for custom processing.

Set Affiliate ID, turn Simplify off, and set Retry Options > Max Retries to 5.

Links

Discussion