Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Variant → Update

AI-generated

Summary

Updates a Lemon Squeezy variant by ID, sending any supplied fields from Update Fields to the API. Choose the fields to change; available fields cover its description, license activation limit, name, price in cents, sort order, and draft or published status.

Inputs

  • Variant ID (required) — ID of the variant to update.
  • Update Fields — Optional fields to update: description, license activation limit, name, price in cents, sort order, and status (draft or published).
  • Simplify — Defaults to true; controls whether the response is simplified by flattening JSON:API attributes to the top level.
  • Retry Options — Optional retry settings for failed API requests: maximum retries and initial delay in milliseconds.

Output shape

A single updated variant record.

Response format depends on Simplify: enabled returns flattened JSON:API attributes; disabled returns the raw JSON:API format with type, attributes, and relationships.

Links

Discussion