This workflow automates the full cycle of fetching, processing, and storing Telr payment gateway reports — and then notifying your team by email. It runs on a schedule, calls the Telr API twice (once for the raw file, once filtered by date), decompresses and extracts data from an XLS file, transforms it with JavaScript, inserts it into a SQL database, and sends a success email notification.
Merchants, developers, and finance analysts using the Telr payment gateway who want to automate transaction report collection, transform the raw XLS data, persist it to a database, and receive automated email confirmations — all without manual intervention.
Schedule Trigger fires the workflow at your defined interval.
Telr API fetches the raw transaction report.
XML is converted to JSON for processing.
Logic for Date calculates the relevant date range.
Edit Fields maps and renames fields manually.
Telr API with Date refetches with the computed date filter.
Compression node decompresses the downloaded file.
Extract from File reads the XLS content.
Data Formation shapes the records for SQL.
Code in JavaScript3 applies custom business logic.
Data Insert SQL writes records to your database.
Success Condition checks if the insert succeeded.
Send Email dispatches a success notification.
• Telr API credentials — add your Telr store ID and API key as n8n credentials (HTTP Header Auth).
• Database credentials — configure a MySQL or PostgreSQL credential and update the table name in the SQL node.
• Email credentials — set up SMTP or Gmail credentials for the Send Email node.
• Schedule — adjust the cron expression in the Schedule Trigger to match your reporting frequency.
• JavaScript node — review the Code in JavaScript3 node and adapt any field names or business logic to match your Telr account's XLS format.