Skip to main content

customerRequestQuoteFromCart

Requires a customer (portal or buyer app) session.

Turn the current cart into a quote request (QT-…, validity = PortalConfiguration.quoteValidityDays; server repriced). Honoured only when allowQuoteRequests is on. screen 13.

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 CustomerRequestQuoteFromCart($input: CustomerRequestQuoteInput!) {
customerRequestQuoteFromCart(input: $input) {
quoteNumber
currency
quoteId
totalAmount
validUntil
}
}

Variables:

{
"input": {}
}

Response:

{
"data": {
"customerRequestQuoteFromCart": {
"quoteNumber": "string",
"currency": "string",
"quoteId": "id",
"totalAmount": 0,
"validUntil": "2025-01-15T00:00:00Z"
}
}
}
customerRequestQuoteFromCart(
input: CustomerRequestQuoteInput!
): CustomerQuoteRequestResult!

Arguments​

customerRequestQuoteFromCart.input ● CustomerRequestQuoteInput! non-null input​

The details of the quote request.

Type​

CustomerQuoteRequestResult object​

Result of turning the current cart into a quote request. screen 13.