update_order
Update existing Sapo orders by modifying tags, notes, custom attributes, email, and marketing consent. Enables in-place corrections without recreating transactions, preserving history and inventory.
Instructions
Update an existing order via PUT /admin/orders/{id}.json. Supports: tags, note, note_attributes, email, buyer_accepts_marketing. Verified live 2026-05-01. NOTE: The customer link CANNOT be changed via Private App — Sapo silently ignores customer/customer_id fields on update (no error, no effect). Workarounds for tracking customer on a completed order: (a) tag it — tags: "customer:<id>" (searchable via search_orders); (b) set email — email: <customer.email> (Sapo may auto-match in some reports). For a true DB-level link, use the Sapo admin web UI or wait for OAuth Partner App support. Do NOT cancel + recreate via draft_order to "fix" the link — that loses transaction history, refunds, and inventory state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Order note. Pass null to clear. | |
| tags | No | Comma-separated tags. Empty string clears all tags. | |
| No | Customer email on the order. Pass null to clear. | ||
| order_id | Yes | Order ID to update. Required. | |
| note_attributes | No | Custom name/value pairs attached to the order. | |
| buyer_accepts_marketing | No |