In the Formance Ledger world, ledgers are logically separated from one another.
There are occurences where you want to transfer value from one ledger to another.
Fortunately for us, Flows provide a way to do this that takes care of the underlying details for us.
Workflow definition#
yaml
Running the workflow#
Let's save the above workflow to a file called ledger-to-ledger.yaml and create it:
POST/api/orchestration/workflows
Now run the workflow:
POST/api/orchestration/workflows/<workflow-id>/instances
We can now check the status of the workflow instance:
GET/api/orchestration/instances/<workflow-instance-id>