Skip to content

quoteReply

Mutationin Quote

Answer a quote with a message to the seller, asking for a different offer. The message becomes the quote's comment.

Where the engine withdraws the offer while the seller answers, the quote moves to RENEGOTIATION_REQUESTED and the seller's answer arrives as a new quote. Where it does not, the quote stays PENDING and orderable.

Arguments

ArgumentTypeDescription
idID!
commentString!

Returns

QuoteReplyResponse!

FieldTypeDescription
quoteQuoteThe quote replied to, absent when the reply failed
quoteErrors[QuoteReplyError!]!Error details if the reply failed

Example

mutation QuoteReply($id: ID!, $comment: String!) {
quoteReply(id: $id, comment: $comment) {
quote {
quoteNumber
createdAt
status
comment
sellerComment
purchaseOrderNumber
validUntil
}
quoteErrors {
__typename
... on ValidationError {
message
}
... on QuoteNotPendingError {
message
status
}
}
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccNot resolved

Used by

The storefront packages that send it, in these GraphQL documents: