Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Product → Update

AI-generated

Summary

Update an existing product by specifying its unique Product ID and providing one or more fields to change, such as name, description, slug, payWhatYouWant status, or status. Optionally simplify the returned response to flatten JSON:API attributes.

Inputs

  • Product ID (required) — The unique identifier for the product to update.
  • Update Fields — A collection of fields to update on the product, including Description (HTML supported), Name, Pay What You Want (boolean), Slug (unique identifier), and Status (Draft or Published).
  • Simplify — A boolean flag to simplify the response by flattening JSON:API attributes; defaults to true.
  • Retry Options — Settings to configure retry behavior for failed API requests, including max retries (default 3) and initial retry delay in milliseconds (default 1000).

Output shape

a single updated product record

The output shape depends on the 'Simplify' flag: if true, the JSON:API attributes are flattened to the top level; if false, the raw JSON:API response is returned with type, attributes, and relationships fields.

Links

Discussion