complete_draft_order
Convert a draft order into a real order, optionally marking payment as pending when payment hasn't been collected. Completes the draft and creates the final order.
Instructions
Complete a draft order and convert it into a real order. Side effect: creates an Order from the draft; draft status becomes "completed". Use payment_pending=true if payment not yet collected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draft_order_id": "<draft_order_id>"
},
"name": "complete_draft_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_order_id | Yes | Draft order ID to complete. Required. | |
| payment_pending | No | If true, order is created with payment pending. Default false. |