update_draft_order
Update an open draft order's note, tags, email, line items, customer, addresses, or discount. Completed or cancelled drafts cannot be modified.
Instructions
Update a draft order in "open" status. Side effect: modifies draft order fields. Cannot update completed or cancelled drafts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Updated order note. | |
| tags | No | Updated comma-separated tags. | |
| No | Updated customer email. | ||
| line_items | No | Replace line_items (replaces all existing items). | |
| customer_id | No | Associate the draft with an existing customer. Sapo does not support clearing the customer via this field — omit to leave unchanged. | |
| draft_order_id | Yes | Draft order ID to update. Required. | |
| billing_address | No | Updated billing address. | |
| applied_discount | No | Updated order-level discount. | |
| shipping_address | No | Updated shipping address. |