Actions84
- Affiliate Actions
- Checkout Actions
- Customer Actions
- Discount Actions
- Discount Redemption Actions
- File Actions
- License Key Actions
- License Key Instance Actions
- Order Actions
- Order Item Actions
- Price Actions
- Product Actions
- Store Actions
- Subscription Actions
- Subscription Invoice Actions
- Subscription Item Actions
- Usage Record Actions
- User Actions
- Variant Actions
- Webhook Actions
Affiliate → Get
AI-generatedSummary
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.