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
Customer → Archive
AI-generatedSummary
Archives a Lemon Squeezy customer by ID. The source pack shows only signature-level code, so the exact API call isn't visible.
Inputs
- customerId (required) — Numeric string ID of the customer to archive. In the declared properties this field's displayOptions list only get, update and delete, not archive, so the UI may not show it for Archive.
- simplifyOutput — Defaults to true. Flattens the JSON:API response so attributes sit at the top level. Turn it off to get the raw JSON:API structure with type, attributes and relationships.
- retryOptions — Collection with Max Retries (default 3, range 0–10, 0 disables retries) and Initial Delay in ms (default 1000, range 100–30000, doubles on each retry).
Output shape
A single customer record, most likely the updated customer returned by the API. It is flattened when Simplify is on and raw JSON:API when it is off.
The Archive handler body isn't visible in the supplied source, so the exact request and response are inferred. Failed requests are retried with exponential backoff, and rate-limit (429) and 5xx/network errors are detected in the API helper. Errors are raised as NodeApiError.
Examples
Example 1: Archive a customer after they ask to be removed.
Resource: Customer, Operation: Archive, Customer ID: {{ $json.customerId }}, Simplify: on.
Example 2: Archive on an unreliable network, with extra retries.
Customer ID set. Retry Options: Max Retries 5, Initial Delay 2000 ms.