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
Variant → Create
AI-generatedSummary
Create a Lemon Squeezy variant for a product, with optional pricing, subscription, license, trial, publishing, and test-mode settings.
Inputs
- Product ID (required) — ID of the product the variant belongs to.
- Name (required) — Variant name.
- Price (Cents) (required) — Price in cents; for example, 999 is $9.99.
- Additional Fields — Optional settings for description, free trial, license keys and limits, subscription billing interval, pay-what-you-want pricing, sort order, status, and test mode. The displayed defaults apply; subscription and trial settings depend on the corresponding subscription or free-trial option.
- Simplify — Defaults to true. When enabled, flattens JSON:API attributes in the response; when disabled, returns the raw JSON:API format.
- Retry Options — Retry configuration for failed API requests, including maximum retries (default 3) and initial delay in milliseconds (default 1000; doubles on each retry).
Output shape
A single created variant record.
The response is simplified by default; disable Simplify to receive the raw JSON:API response format.