Sync invoices grouped by merchant code on schedule
Recipe ToolsMarketingData ParserUtilitiesDatabase
What it does
When the clock triggers every 5 minutes, this automation parses a JSON document to extract invoice data. It groups invoices by merchant code, maps results to a common data model, and logs the output so the team can verify the grouping completed.
Who it's for
Accounting teams who need invoices organized by merchant code without manual sorting.
How teams use this
Organize invoices by merchant daily
Run the grouping every 5 minutes so invoices stay sorted by merchant code without the team manually organizing them. The setup works as is for ongoing use.
Route grouped invoices to AP
Send the grouped invoices to an accounts payable system after mapping so the AP team receives organized batches. Only the destination changes, not the grouping logic.
Filter invoices by amount threshold
Add a condition to include only invoices above a set amount in the grouping so high-value transactions get priority. The automation processes the same data with an extra filter step.
How it works
- Run every 5 minutes. The automation starts on a 5-minute schedule to keep invoice groupings current and synchronized with incoming data.
- Parse the JSON document. Json Parser extracts invoice data from the JSON file so the automation can read customer numbers and merchant codes for grouping.
- Build a list of unique customers. Create a variable with unique customer numbers from the parsed data to avoid duplicate processing in the grouping step.
- Map invoices to common data model. Workato Mapper transforms the invoice data using the Wex invoices grouped by merchant code model so all fields align correctly.
- Log the results. Write a message to the job report and logs so the team can verify the grouping completed and review the organized batches.