Orderwise Get Order Status

Gets the status of an Orderwise sales order by its Orderwise order ID. Uses the Orderwise module connection.

Get the status of an Orderwise sales order by its Orderwise order ID. The action calls GET /sales/order/{id}/status on the Orderwise API.

This action requires an Orderwise module connection. It has no credential inputs.

Inputs

NameTypeRequiredDescription
Order IDStringYesOrderwise order ID (the order header ID). Use only letters, digits, - and _. A whole number such as 1001.0 is read as 1001.
Safe ModeOptional BooleanNoIf true, errors are returned in the action outputs instead of stopping the flow. Defaults to false.

Outputs

NameTypeDescription
SuccessBooleanWhether the status was retrieved.
ResponseObjectThe Orderwise status response. If Orderwise returns a value that is not an object, such as plain text or a list, it is wrapped as {"value": ...}. Empty on failure.
Error MessageStringError details when Safe Mode is enabled and the action fails.

Run the action

  1. Add the Orderwise module connection required by this action.
  2. Enter the Orderwise order ID in Order ID.
  3. Optional: set Safe Mode to true if you want the action to return errors in the outputs instead of stopping the flow.
  4. Run the action.
  5. Check Success to confirm whether the status was retrieved.
  6. Use Response in later Flow steps.
  7. Check Error Message when Safe Mode is enabled and Success is false.

Notes

  • The action exchanges the connection's login for a bearer token on every run, then calls the Orderwise API with that token.
  • The connection's base_url must be an https URL. Otherwise the action fails with Orderwise connection base_url must be an https URL.
  • If no Orderwise connection is set, the action fails with Missing Orderwise connection.
  • The action refuses an Order ID that contains characters other than letters, digits, - and _, and makes no request.
  • When Orderwise returns an error, Error Message has the form RuntimeError: Orderwise request failed with status <code>: <Orderwise message>. The Orderwise message is capped at 200 characters and never includes the connection's credentials or token.
  • Requests time out after 3 seconds to connect and 10 seconds to read. The action does not retry failed requests and does not follow redirects.
  • Enable Safe Mode for flows that should continue when Orderwise returns an error.


Did this page help you?