Skip to content

Update Quote

Required scope: quote:update

Amends a concept quote by replacing its line items and discounts in one call. The items array replaces all existing items and discountIds replaces all existing discounts, so send the full desired set, not a delta. Each product may appear only once. Only concept quotes can be amended; confirmed quotes are rejected.

expectedVersion is the version the caller last observed. A mismatch is rejected (optimistic concurrency), so re-fetch with GetQuote and retry with the current version. This operation is guarded by the version, not by an idempotency key.

Generated Reference
POST /public-api/publicapi.v1.Quote/UpdateQuote

Replaces the line items and discounts of a concept quote in one call. Guarded by expected_version optimistic concurrency; not request-idempotent.

Request UpdateQuoteRequest
Response UpdateQuoteResponse

UpdateQuoteRequest

Field Type Description
id string Stable identifier of the concept quote to update.
expected_version int32 Version the caller last observed, for optimistic concurrency.
items repeated QuoteItemInput Replacement line items. Replaces all existing items.
discount_ids repeated string Replacement discount IDs. Replaces all existing discounts.

UpdateQuoteResponse

Field Type Description
quote Quote The updated quote after the last successful step.
{
"id": "<quote-id>",
"expectedVersion": 2,
"items": [
{
"productId": "<product-id>",
"quantity": 10,
"priceType": "PUBLIC_PRICE_TYPE_ONCE"
}
],
"discountIds": ["<discount-id>"]
}

The response returns the updated quote with an incremented version. Pass that version to a subsequent UpdateQuote, DiscardQuote, or ConfirmQuote.