complete-draft-order
Finalize a draft order by converting it into a real order and optionally setting the payment gateway.
Instructions
Complete a draft order, converting it into a real order. Optionally specify a payment gateway.
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": {
"draftOrderId": "<draftOrderId>"
},
"name": "complete-draft-order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftOrderId | Yes | The draft order GID, e.g. gid://shopify/DraftOrder/123 | |
| paymentGatewayId | No | Payment gateway GID (optional) |