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:
- GraphQL
- cURL
mutation CustomerRequestQuoteFromCart($input: CustomerRequestQuoteInput!) {
customerRequestQuoteFromCart(input: $input) {
quoteNumber
currency
quoteId
totalAmount
validUntil
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation CustomerRequestQuoteFromCart($input: CustomerRequestQuoteInput!) {\n customerRequestQuoteFromCart(input: $input) {\n quoteNumber\n currency\n quoteId\n totalAmount\n validUntil\n }\n}",
"variables": {
"input": {}
}
}
EOF
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.