Skip to main content

Apply or Schedule a Recipe Change

POST 

/api/v2/products/:product/component-revisions

Apply a recipe change to a bundle or kit effective as-of a date. When effective_from is today the change applies to the live recipe immediately; a future date is SCHEDULED (the live recipe stays unchanged until that day, when a daily job flips it); a past date is a CORRECTION that rewrites what historical orders resolved to in that window and therefore requires allow_backdate=true. If the band covering that date already carries exactly this recipe nothing is written and mode is UNCHANGED.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Dates are calendar days in the account's timezone. Only bundle and kit products accept a recipe.

Fields:

  • components (required, array, min 1): each { id (product id, unique within the list), quantity (>= 1) }.
  • effective_from (required, date YYYY-MM-DD): the day the new recipe takes effect.
  • change_summary (optional, string, max 1000): note stored on the revision.
  • allow_backdate (optional, boolean): must be true when effective_from is in the past, else the request is rejected.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type