Fetch Telr payment reports to SQL and send daily email summaries
Description
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.
Who it's for
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.
How it works:
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.
Setup requirements
• 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.
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments