Skip to main content

customerPlaceOrderFromQuote

Requires a customer (portal or buyer app) session.

Place a sales order from one of THIS partner's ACCEPTED quotes. Runs the staff convertToSalesOrder path unchanged (quoted prices honoured, drift audit, order born DRAFT). Errors: QUOTE_NOT_ACCEPTED, QUOTE_ALREADY_ORDERED, QUOTE_VERSION_CONFLICT, FORBIDDEN_ROLE.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation CustomerPlaceOrderFromQuote($quoteId: ID!) {
customerPlaceOrderFromQuote(quoteId: $quoteId) {
orderNumber
orderId
}
}

Variables:

{
"quoteId": "id"
}

Response:

{
"data": {
"customerPlaceOrderFromQuote": {
"orderNumber": "string",
"orderId": "id"
}
}
}
customerPlaceOrderFromQuote(
expectedVersion: Int
quoteId: ID!
): CustomerPlaceOrderResult!

Arguments​

customerPlaceOrderFromQuote.expectedVersion ● Int scalar​

The version of the quote you last read. The change is refused if someone else changed it since.

customerPlaceOrderFromQuote.quoteId ● ID! non-null scalar​

The ID of the quote.

Type​

CustomerPlaceOrderResult object​

Result of customerPlaceOrderFromQuote — the sales order minted from an ACCEPTED quote.