Sync current and future debts from SIENGE to SFTP
Recipe ToolsMarketingDeveloper ToolAPI IntegrationData ParserUtilitiesFile Transfer
What it does
When the scheduled time arrives, this automation fetches all active customers and their debts from SIENGE. It combines the data into a single file and prepares it for SFTP delivery to downstream systems.
Who it's for
Finance teams who need to regularly import debt records from SIENGE without manual exports.
How teams use this
Import debt data without manual export
Pull all current and future debts from SIENGE on a schedule and have them ready in SFTP, eliminating the need for someone to manually export and upload the file each period.
Extend the lookback window for older debts
Modify the Python script to include debts from prior years or extend the future window beyond five months. Only the date filter in the code needs to change.
Route debt files to a different SFTP location
Point the final step to a different SFTP server or folder path so another team or system receives the debt data instead. The data collection and merge stay the same.
Filter debts by customer status or amount
Add a condition in the Python merge step to include only debts above a minimum amount or from customers with a specific status. This narrows the dataset before SFTP delivery.
How it works
- Run on a custom schedule. This automation starts at the scheduled time each day, week, or month to pull the latest debt data from SIENGE.
- Fetch active customers in batches. Send HTTP requests to SIENGE to retrieve all active customers, repeating the call every 100 records until all customers are collected into a single list.
- Retrieve all debts from SIENGE. Send an HTTP request to SIENGE to pull all invoices and debt records for the current year and future months.
- Merge customers and debts. Execute Python code to cross-reference the customer list with the debt records, combining them into a unified dataset ready for export.
- Stage data for SFTP delivery. Format the merged data and stage it on the SFTP server so downstream systems can access the complete debt information.