Orderwise Cancel Order
Cancels an Orderwise sales order by its Orderwise order ID and releases its stock allocation. Uses the Orderwise module connection.
What it does
- Cancels an Orderwise sales order using its Orderwise order ID.
- Releases the order's stock allocation (the action calls
PUT /sales/order/{id}/cancelwithDeallocateOrder=true). - Returns whether the cancellation succeeded and the Orderwise response body.
Notes
- Authentication: the action uses the Orderwise module connection only and has no credential inputs. The connection's
base_urlmust be anhttpsURL. At the start of every run, the action exchanges the connection's login for a bearer token, then calls Orderwise with it. - If no Orderwise connection is set up, the action fails with a
Missing Orderwise connectionerror and makes no request to Orderwise. - Order ID must be the Orderwise order header ID, not the storefront (for example Shopify) order number. It can contain only letters, digits,
-and_. A whole number such as1001.0is treated as1001. - The action doesn't follow redirects or retry failed requests. Each request times out after 3 seconds to connect or 10 seconds to read.
- Error messages include the HTTP status and Orderwise's own error message (or the start of its reply), capped at 200 characters. For example:
RuntimeError: Orderwise request failed with status 409: Order is locked. Errors never include the connection credentials or the token. - Safe Mode: by default, a failure stops the flow. When Safe Mode is enabled, the action returns
Success = false, an emptyResponseand the error inError Message, and the flow continues.
Inputs
| Name | Type | Description |
|---|---|---|
| Order ID | String | Orderwise order ID (the order header ID) |
| Safe Mode | Boolean (optional) | If true, errors go to outputs instead of stopping the flow. Defaults to false |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether Orderwise cancelled the order |
| Response | Object | Orderwise response body. A JSON value that isn't an object is returned as {"value": ...}, plain text as {"text": ...}, and an empty body as {}. On failure, {} |
| Error Message | String | Error details when Safe Mode is enabled and the action fails. Empty on success |
Updated 1 day ago
Did this page help you?
