convertEstimateToOrder
Topics: Commerce
Convert an accepted estimate into an order with order lines. Requires order:write.
Returns
ConvertEstimateToOrderPayload!Arguments
Estimate to convert, plus optional overrides for the order's number, date and notes.
Examples
Convert Commerce Estimate
mutation ConvertCommerceEstimate($input: ConvertEstimateToOrderInput!) {
convertEstimateToOrder(input: $input) {
order { id orderNumber status }
orderLines { id lineNumber quantity }
updatedEstimate { id status convertedToOrderId }
errors { path message }
}
}Variables
{
"input": {
"estimateId": "est_01h455vb4pex5vsknk084sn02q",
"orderNumber": "ORD-2043"
}
}Exact field SDL
"""
Convert an accepted estimate into an order with order lines. Requires order:write.
"""
convertEstimateToOrder(
"""
Estimate to convert, plus optional overrides for the order's number, date and notes.
"""
input: ConvertEstimateToOrderInput!
): ConvertEstimateToOrderPayload! @topic(names: ["commerce"]) @topic_example(names: ["commerce.convert-estimate"])Declared on Mutation. Access is checked by the platform for each operation.