Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Affiliate → Get Many

AI-generated

Summary

Retrieves a list of affiliates from Lemon Squeezy, optionally filtered by store ID or user email, returning either all results or up to a set limit.

Inputs

  • Return All — When on, fetches every matching affiliate by following pagination. Default is off.
  • Limit — Maximum number of affiliates to return (1–100, default 50). Shown only when Return All is off.
  • Filters — Optional collection. Store ID filters by store; User Email filters by the affiliate's user email. Filters are sent to the API as filter[...] query parameters.
  • Simplify — On by default. Flattens JSON:API attributes to the top level of each item. Turn off for the raw JSON:API structure with type, attributes, and relationships.
  • Retry Options — Optional retry settings for failed API requests. Max Retries is 0–10 (default 3; 0 disables retries). Initial Delay (Ms) is 100–30000 (default 1000) and doubles on each retry.

Output shape

A list of affiliate records, one n8n item per affiliate.

With Simplify on, each item has id, type and the attribute fields at the top level. With it off, each item keeps the raw JSON:API shape. The source pack shows only signatures for this operation's execution path, so exact field contents depend on the Lemon Squeezy API. Rate-limit (429) and 5xx/network errors are retried per the retry options.

Examples

Example 1: List all affiliates for one store

Return All = on; Filters > Store ID = your store ID; Simplify = on.

Example 2: Look up an affiliate by email

Return All = off; Limit = 1; Filters > User Email = affiliate@example.com.

Example 3: Get raw JSON:API data for an audit

Return All = on; Simplify = off; Retry Options > Max Retries = 5.

Links

Discussion