Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Variant → Create

AI-generated

Summary

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.

Links

Discussion