Orders¶
The Orders push changes the status of an order already in the store. A typical integration moves each order to completed when the ERP ships it. Another moves each order out of processing once the ERP has it, and the Orders pull then leaves the order out of its next run.
On a push connector, select Orders as the WooCommerce Import Type. The push offers Update only. It cannot create an order.
Fields¶
| Field | Holds |
|---|---|
| Id | WooCommerce's id for the order, the id field of the Orders pull. Required. It names the order and is not sent as a change. |
| Status | The new status, such as completed, on-hold or cancelled. |
The push changes the status and nothing else on the order. To write a value back to the order, such as the ERP's order number, use Order Notes.
Map Id from the order's id, not its number. The two are often the same, but a plugin can change the number. A record with no Id sends nothing.
What WooCommerce Does¶
WooCommerce adds a note to the order recording the change, and the note shows on the order in WooCommerce:
A status change runs WooCommerce's own actions for that status, as a change made in WooCommerce does:
- Moving an order to
completedsends the customer WooCommerce's Completed order email, when WooCommerce > Settings > Emails has that email turned on. - Moving an order to
cancelledreturns its items to stock.
IMan writes nothing back to the record. See Insert and Update for errors and the rate limit.
WooCommerce Reference¶
Update an order in the WooCommerce REST API documentation.
