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
File → Download
AI-generatedSummary
Downloads the binary content of a Lemon Squeezy file by ID. It first fetches the file's metadata to get its download URL, then retrieves the file and writes it to a binary property on the output item.
Inputs
- File ID (required) — Numeric string ID of the Lemon Squeezy file to download (e.g., 12345).
- Binary Property — Name of the binary property that receives the downloaded file. Defaults to 'data'.
- Simplify — When enabled (default), flattens the JSON:API attributes of the file metadata to the top level. Disable to get the raw JSON:API structure with type, attributes and relationships.
- Retry Options — Collection with Max Retries (0–10, default 3) and Initial Delay in ms (100–30000, default 1000, doubles on each retry) for failed API requests.
Output shape
One item per input item, with the file's metadata as JSON (simplified or raw JSON:API) and the downloaded file attached as binary data under the configured binary property name.
The exact metadata fields depend on the API response and the Simplify setting. The source pack shows only comments for the download branch (it fetches metadata for the download URL, downloads the binary content, then applies simplification), so details such as the filename and MIME type on the binary are not confirmed. A failed request throws an API error after retries are exhausted.
Examples
Example 1: Download a purchased product file and attach it to an email.
Resource: File, Operation: Download, File ID: {{$json.fileId}}, Binary Property: data. Then pass the binary property to an email node as an attachment.
Example 2: Fetch the raw JSON:API metadata along with the file, using more resilient retries.
File ID: 12345, Simplify: off, Retry Options: Max Retries 5, Initial Delay 2000 ms.