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}/cancel with DeallocateOrder=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_url must be an https URL. 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 connection error 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 as 1001.0 is treated as 1001.
  • 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 empty Response and the error in Error Message, and the flow continues.

Inputs

NameTypeDescription
Order IDStringOrderwise order ID (the order header ID)
Safe ModeBoolean (optional)If true, errors go to outputs instead of stopping the flow. Defaults to false

Outputs

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

Did this page help you?