commercetools icon

commercetools

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

Actions671

Quote → Update Quote by ID

AI-generated

Summary

Update a specific Quote identified by Quote ID and version by applying one or more specified update actions.

Inputs

  • Quote ID (required) — The unique identifier of the Quote to update.
  • Version (required) — Current version number of the Quote for optimistic concurrency control.
  • Actions (JSON) — Raw JSON array of update actions to apply to the Quote. Overrides the UI-based actions if provided.
  • Actions (UI) — One or more update actions constructed through the user interface, such as changing customer, quote state, requesting renegotiation, setting custom fields, setting custom types, or transitioning state.

Output shape

a single record

Returns the updated Quote object in JSON format. Errors during update will be thrown unless 'Continue On Fail' is enabled, in which case error details are returned in the output.

Examples

Example 1: Update a Quote's state and add a buyer comment

Provide the Quote ID, current version number, then add UI actions to change the quote state and request quote renegotiation with a comment.

Links

Discussion