Mark order produced or shipped
deconetwork_update_order_statusWRITE: move a whole order, one line item or part of a line item to 'produced' or 'shipped'. Cannot be undone through the API. With new_status shipped you can store a tracking number (shipping_code). contact_customer=true makes DecoNetwork EMAIL THE CUSTOMER about the change (only when the whole order changes status); it defaults to false, so set it only when the user asked to notify the customer. Give order_line_id to change one line, plus workflow_item_id (and optionally qty) to change part of it. POST /api/json/manage_orders/update_order_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Quantity to move; needs workflow_item_id. Default: the outstanding quantity. | |
| order_id | Yes | The order's invoice number, e.g. INV1234 (this is the order id). | |
| new_status | Yes | produced (status 2) or shipped (status 3). | |
| order_line_id | No | Only this line item (omit for the whole order). | |
| shipping_code | No | Tracking number to store when marking shipped. | |
| operator_login | No | Login of the operator to credit (default: the connected staff account). | |
| contact_customer | No | Email the customer about this change (default false). Whole-order changes only. | |
| workflow_item_id | No | Only this workflow item of the line (see deconetwork_get_order with include_workflow_data). |