Sync bills from REST API to Dropbox and Slack
UtilitiesDeveloperAPICollaborationDocument ManagementSocial, Utilities
What it does
When a scheduled time arrives, this automation fetches bills from a REST API. It parses the response, converts bills to CSV, uploads the file to Dropbox, and posts a message in Slack so someone knows the bills are ready.
Who it's for
Accounting teams who need bills logged and shared without manual exports.
Apps used
How teams use this
Archive bills on a daily schedule
Run this automation each morning so bills are fetched, converted to CSV, and stored in Dropbox before the team starts work. The same flow runs every day without manual intervention.
Alert finance when bills arrive
Post the Slack message to a finance channel instead of a general channel so the right team sees the notification. The REST API call and Dropbox upload remain unchanged.
Filter bills by status before export
Add a condition after parsing JSON to only include unpaid or overdue bills in the CSV. This requires a filter step so the file contains only the bills that need attention.
How it works
- Run on a schedule. This automation starts at a specified interval so bills are fetched and logged on a regular cadence.
- Fetch bills via REST API. Make a request to the REST API bill list endpoint and retrieve the current bills with all details included.
- Parse and convert to CSV. Parse the JSON response from the API and compose a CSV file so the bills are formatted for spreadsheet use and archival.
- Upload file to Dropbox. Store the CSV file in Dropbox so bills are backed up and accessible to the team in a central location.
- Notify in Slack. Post a message in Slack with details about the bills so someone knows the file is ready and where to find it.