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
Subscription Invoice → Generate
AI-generatedSummary
Generate a PDF invoice for a subscription invoice using the supplied customer billing details. Optionally download the PDF into an n8n binary property; otherwise return the API response, with JSON:API attributes flattened by default.
Inputs
- Subscription Invoice ID (required) — ID of the subscription invoice to generate a PDF for.
- Invoice Name (required) — Full name to print on the invoice.
- Invoice Address (required) — Street address to print on the invoice.
- Invoice City (required) — City to print on the invoice.
- Invoice Zip Code (required) — Postal code to print on the invoice.
- Invoice Country (required) — Country as an ISO 3166-1 alpha-2 code, such as US or GB.
- Invoice Options — Optional state or province, notes, and invoice locale. State is described as required for the US and Canada.
- Download PDF — When enabled, download the generated invoice as PDF binary data.
- Binary Property — Name of the output binary property for the PDF; available when Download PDF is enabled and defaults to data.
- Simplify — When enabled (default), flatten JSON:API attributes in the response; disable it to retain the raw JSON:API structure.
- Retry Options — Configure retries for failed API requests: maximum attempts (default 3, 0 disables retries) and initial delay in milliseconds (default 1000, doubles on each retry).
Output shape
A generated invoice response, optionally accompanied by PDF binary data.
With Download PDF enabled, the PDF is written to the configured binary property. The operation returns the API response data; Simplify defaults to true and controls whether JSON:API attributes are flattened. The provided source pack shows the PDF download handling but omits function bodies, so it does not establish the exact response fields or binary-plus-JSON item layout.