Accounting Bulk Create Expenses and Poll the Batch
A 4-step recipe with Merge. We can help you get access.
Recipe · 4 steps
Accounting Bulk Create Expenses and Poll the Batch
with Merge · Financial Management
Asynchronously create a batch of expenses and poll until the batch completes.
- Submit the batch of expenses for asynchronous creation; the response returns only the batch id.
- Poll the batch objects endpoint to read the current overall status of the batch.
- Re-read the completed batch to capture the final object set after a successful or partially successful run.
- Re-read the failed batch to capture the final status and any per-object errors for troubleshooting.
What you'll need to have ready
- authorization: Production access token with the required "Bearer " prefix.
- accountToken: The account token identifying the linked accounting end user.
- batchItems: The array of batch items to create. Each item has an item_id and a payload describing one ExpenseRequest.
For your developer
Arazzo workflow merge:bulk-create-expenses-poll, 4 operations: {$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk/post → {$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get → {$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get → {$sourceDescriptions.subpackageExpensesApi.url}#/paths/~1accounting~1v1~1expenses~1bulk~1{batch_id}/get. Specs on APIs.io.