commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store Quote → Update Quote in Store by ID

AI-generated

Summary

Update a specific quote within a store by providing its quote ID, store key, and version, applying one or multiple update actions to modify the quote.

Inputs

  • Store Quote Key (required) — The key of the store quote resource to update.
  • Quote ID (required) — The unique identifier of the quote to update within the store.
  • Store Key (required) — The key of the store in which the quote exists.
  • Version (required) — The current version number of the quote, required for concurrency control during update.
  • Actions (JSON) — Optional raw JSON array of update actions to apply. If provided and not empty, this overrides the UI-configured actions.
  • Actions (UI) — Optional list of predefined update actions to apply, such as ChangeCustomer, ChangeQuoteState, RequestQuoteRenegotiation, SetCustomField, SetCustomType, and TransitionState. Ignored if Actions (JSON) is provided and non-empty.

Output shape

a single JSON object representing the updated quote resource from commercetools API

The returned JSON includes the updated quote details after applying the specified update actions. The request requires correct versioning to prevent conflicts. Errors are returned if update fails or invalid parameters are provided.

Examples

Example 1: Update the state of a quote in a store by ID

Specify Store Quote Key, Quote ID, Store Key, the quote's current Version, and use the Actions (UI) to add a ChangeQuoteState action with the desired state.

Links

Discussion