Orderwise Delete Order Line
Deletes one line from an Orderwise sales order. Uses the Orderwise module connection.
What it does
- Deletes one line from an Orderwise sales order (
DELETE {base_url}/sales/order/{order_id}/lines/{line_id}). - Returns whether Orderwise deleted the line and the Orderwise response body.
Notes
- Authentication: the action uses the Orderwise module connection only, with no credential inputs. At the start of every run it exchanges the connection's login for a bearer token (
GET {base_url}/token/gettoken), then calls the API with that token. See Orderwise. - The connection's
base_urlmust be anhttpsURL. Otherwise the action fails with "Orderwise connection base_url must be an https URL" and makes no request. - If no Orderwise connection is set up on the action, it fails with "Missing Orderwise connection" and makes no request.
Order IDandLine IDmay contain only letters, digits,-and_. The action trims spaces, and turns whole numbers such as1001.0into1001. It refuses any other value before calling Orderwise, so a flow value can't change the URL that the action calls.- The action sends no request body. It doesn't follow redirects, and treats any non-2xx response (including a redirect) as an error.
- Each request has a timeout of 3 seconds to connect and 10 seconds to read. The action doesn't retry failed requests.
- Error messages include 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 and logs never contain the connection's credentials or the token. - Safe Mode: off by default, so a failure stops the flow. When enabled, the action returns
Success = falseand the error inError Message, and the flow continues. Turn on Safe Mode when the flow deletes several lines in a row and must check each result, for example before refunding in Shopify.
Inputs
| Name | Type | Description |
|---|---|---|
| Order ID | String | Orderwise order ID (the order header ID) |
| Line ID | String | ID of the order line to delete |
| Safe Mode | Boolean (optional) | If true, returns success/failure without throwing an error. Defaults to false |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether Orderwise deleted the line |
| Response | Object | Orderwise response body. A JSON object is returned as it is, other JSON values are under value and plain text is under text. Empty when Orderwise returns no body or the action fails |
| 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?
