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_url must be an https URL. 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 ID and Line ID may contain only letters, digits, - and _. The action trims spaces, and turns whole numbers such as 1001.0 into 1001. 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 = false and the error in Error 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

NameTypeDescription
Order IDStringOrderwise order ID (the order header ID)
Line IDStringID of the order line to delete
Safe ModeBoolean (optional)If true, returns success/failure without throwing an error. Defaults to false

Outputs

NameTypeDescription
SuccessBooleanWhether Orderwise deleted the line
ResponseObjectOrderwise 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 MessageStringError details when Safe Mode is enabled and the action fails. Empty on success

Did this page help you?