What is a Workflow?
A workflow in Invopop is a sequence of steps executed for each incoming job. Each step is powered by the provider of a service. Examples of services include:- Generating PDFs
- Forwarding invoices to tax agencies
- Modifying documents
- Sending emails
- Posting webhooks
- Sending documents to ERPs or other systems
Anatomy of a Workflow

-
Main flow: defines the standard sequence of steps that the workflow follows under normal conditions. It represents the intended execution path, showing how tasks progress when the steps execute correctly (
OK) and when exceptions or errors are handled within conditions. - Error handling flow defines the sequence of steps when an unhandled error or exception occurs. It allows you to specify alternative actions, recovery logic, or notifications to ensure the process can handle unexpected conditions gracefully. Keep in mind the error handling flow is executed if a step does not handle its own error through a condition.
- Steps are action performed with the entry being processed, such as sending the document to a tax authority, generating a PDF, or sending a notification to the customer or issuer.
- Conditions determine the logic that directs how a workflow proceeds. They evaluate the status and code outcome of a given step, and if there’s a match, it will execute the steps contained within that condition. If the status of a condition is
KO, the error handling flow won’t be executed as this would be a handled error.
Related resources
| API Reference | Create a workflow Fetch all workflows Fetch a workflow Update a workflow Create a job (POST) Create a job (PUT) |
| Related Guides | Workflows Guide |