complete_draft_order
Convert an open draft order into a real Shopify order, capturing payment immediately or setting payment pending for offline collection.
Instructions
Convert an OPEN draft order into a real Shopify order. With paymentPending=false (default), Shopify attempts to capture payment immediately; the call fails if no payment method is on file. With paymentPending=true, the order is created in payment-pending status — useful when collecting payment offline (cash, bank transfer, manual processing). Once completed, the draft transitions to COMPLETED and the new order's GID is returned. The transition is one-way: completed drafts cannot be re-opened or edited via draft tools (use the order tools, or refund/cancel for the resulting order).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of an OPEN draft order. Already-completed drafts are rejected. | |
| paymentPending | No | If true, the resulting order is marked payment-pending — Shopify creates the order but does NOT capture payment. Use when you'll collect payment offline (cash, bank transfer, manual card auth) or via a separate flow. Default false (attempts to capture immediately). |