Skip to main content

Submit a quote request from the cart

Convert the current cart into an RFQ so the sales team can respond with custom pricing.

Mutation

mutation SubmitQuoteRequest($cartId: String!) {
cartProcess(
id: $cartId
input: { orderStatus: "REQUEST" }
) {
cartOrderId
}
}

Variables

{
"cartId": "018dcc9a-f965-7434-8fad-369aa9a8c276"
}

Response

{
"data": {
"cartProcess": {
"cartOrderId": "34564"
}
}
}

How it works

cartProcess converts the cart into an order-like entity. Using orderStatus: "REQUEST" creates a quote request instead of a regular order. The returned cartOrderId is the quote ID. You can set a reference and notes on the cart with cartUpdate before submitting. Quote requests appear in the order listing and can be queried with orders(input: { type: [dropshipment], status: ["REQUEST"] }).

See also