Merge · Arazzo Workflow
Merge Accounting Bulk Create Expenses and Poll the Batch
Version 1.0.0
Submit a batch of expenses asynchronously, then poll the batch until it finishes and branch on the final status.
Provider
Workflows
bulk-create-expenses-poll
Asynchronously create a batch of expenses and poll until the batch completes.
Submits a batch of expenses for asynchronous creation, polls the batch until it leaves the ENQUEUED/IN_PROGRESS states, and branches on the terminal status.
1
submitBatch
{$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk/post
Submit the batch of expenses for asynchronous creation; the response returns only the batch id.
2
pollBatch
{$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get
Poll the batch objects endpoint to read the current overall status of the batch.
3
reportSuccess
{$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get
Re-read the completed batch to capture the final object set after a successful or partially successful run.
4
reportFailure
{$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get
Re-read the failed batch to capture the final status and any per-object errors for troubleshooting.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.