Sync expenses on a schedule
Recipe ToolsMarketingData ParserUtilitiesDeveloper ToolAPI Integration
What it does
When a scheduled time arrives, this automation parses an expense document with the Json Parser. It loops through batches, entries, allocations, and tax records to evaluate conditions and route each expense.
Who it's for
Accounting teams who need to process expense batches automatically without manual review of each record.
How teams use this
Process recurring expense batches
Run the automation on a schedule to parse and loop through all expenses in a batch file. Each entry is evaluated for tax and journal routing without manual intervention.
Route expenses by tax classification
Evaluate the tax flag on each record and create variables that tell the next step whether to post or hold the expense. Only the condition logic changes to match your tax rules.
Add approval step for flagged expenses
Include a condition that checks if an expense exceeds a threshold, then route high-value records to an approval queue before posting. Set the threshold and approval channel for your team.
Enrich records with cost center data
Add a lookup step that matches each allocation to a cost center code, then include that code in the routing variables. Only requires the cost center mapping table.
How it works
- Run every 5 minutes. This automation starts on a schedule, checking for new expenses to process every 5 minutes.
- Parse the expense document. The Json Parser extracts batches, entries, allocations, and tax details from the JSON so each piece can be evaluated separately.
- Loop through all records. Repeat the following steps for each batch, entry, allocation, and tax record in the parsed document to evaluate routing.
- Evaluate tax conditions. Check the tax flag and journal entry status to decide how to route the expense for posting or review based on the condition.
- Create routing variables. Set variables for tax status and journal entry type so downstream systems know where to send each expense record.