Connections
Update order policy
Turns the order policy on or off, or changes its warehouse.
PATCH/v1/connections/{id}/order-policy
Coming soon
This route is not in the API yet. This page shows what it will do. Fields, examples and the playground arrive when it ships.
Send inventory.enabled and/or inventory.warehouseId. Turning it off (enabled: false) stops moving stock per order. Turning it back on (false → true) moves enabledSince to now: the past is not reprocessed.
Errors: 404 if the warehouse does not exist or belongs to another seller; 409 (warehouse_archived) if it is archived. A warehouse used by the policy cannot be archived before you change the policy.
The change fires the connection.updated webhook. See the effect of each state in Orders.
Part of the order lifecycle.