Manage Checkout Lifecycle
Renames, publishes, unpublishes, archives, restores, or promotes a checkout by its checkout code
name, description, status, and is_default; at least one field is required. Metadata (name/description) is editable in any status, including ARCHIVED; configuration and styling of an archived checkout stay frozen (the Publish endpoint rejects it).
Lifecycle state machine
- Publish (
status: PUBLISHED) is only valid fromNOT_PUBLISHED. - Restore is two-step: an
ARCHIVEDcheckout goes back to draft first (status: NOT_PUBLISHED), then can be published (status: PUBLISHED). A directARCHIVED → PUBLISHEDpatch is rejected with400 INVALID_STATUS_TRANSITION. - Patching to the current status is also rejected with
400. - Promote (
is_default: true) force-publishes the checkout from any state (includingARCHIVED) and atomically demotes the previous default. When sent together withstatus, the promotion wins andstatusis ignored.is_default: falseis rejected with400; demote a default by promoting another checkout. - The default checkout is guarded: archiving or unpublishing it is rejected with
409so the account’s storefront is never left without a live checkout.
Authorizations
Headers
Path Parameters
Body
Target lifecycle status. PUBLISHED is only reachable from NOT_PUBLISHED; NOT_PUBLISHED is reachable from PUBLISHED (unpublish) or ARCHIVED (restore); ARCHIVED is reachable from PUBLISHED or NOT_PUBLISHED. Any other transition (including patching to the current status) is rejected with 400. Unknown values are rejected with 400.
PUBLISHED, NOT_PUBLISHED, ARCHIVED Response
The updated checkout summary. The identifier is exposed as the top-level id. Read the resulting status with the Fetch endpoint.