Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Checkout → Update

AI-generated

Summary

Updates an existing Lemon Squeezy checkout by ID, changing pre-filled customer details, discount code, custom price, or expiry date, and returns the updated checkout.

Inputs

  • checkoutId (required) — ID of the checkout to update.
  • updateFields — Collection of fields to change: Custom Price (Cents, minimum 0, overrides the product price), Discount Code (pre-filled), Email (pre-filled customer email, validated as an email address before the request), Expires At (new expiry date/time of the checkout link), Name (pre-filled customer name).
  • simplifyOutput — Simplify (default 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 — Retry behaviour for failed API requests. Max Retries defaults to 3 (0 to 10, 0 disables retries). Initial Delay (Ms) defaults to 1000 (100 to 30000) and doubles on each retry.

Output shape

One item per input item, containing the updated checkout record. With Simplify on, it is a flat object with id, type and the checkout attributes. With Simplify off, it is the raw JSON:API response.

The update handler's source was not visible in the provided pack, so exact attribute mapping (for example, how the email, name, discount code and custom price fields are placed in the request) is not confirmed. Rate-limit (429) and 5xx errors are retried according to Retry Options. Other API errors surface as node errors.

Examples

Example 1: Extend a checkout link's expiry and pre-fill the customer's email.

Checkout ID = {{$json.checkoutId}}; Update Fields: Expires At = new date, Email = customer@example.com; Simplify on.

Example 2: Apply a promotional price and discount code to an existing checkout.

Checkout ID set; Update Fields: Custom Price (Cents) = 1900, Discount Code = SPRING25.

Links

Discussion