Skip to content
Last update: January 30, 2024

createQuoteFromCart mutation

This mutation creates a quote request from a particular cart.

Arguments

The CreateQuoteFromCartCommandType! represents the arguments for CreateQuoteFromCart.

Field Description
cartId {String!} The Id of the cart from which the quote will be created.
comment {String!} A comment for the newly created quote.

Possible returns

Possible return Description
QuoteType Information about the order.
mutation ($command: CreateQuoteFromCartCommandType!){
  createQuoteFromCart(command: $command)
      {
    id
    number
    status
    comment
        items{
          productId
          name
          sku
          listPrice{
            amount
          }
          salePrice{
            amount
          }
          selectedTierPrice{
            quantity
            price{
              amount
            }
          }
      }
  }
}
1
2
3
4
5
{"command": 
  {"cartId": "d34cae74-e863-4a93-a20d-845472b85037",
    "comment": "Sample comment"
  }
}