Send commission bookings via Rest from on-prem CSV

Document/FileDeveloper ToolAPI IntegrationRecipe ToolsData Parser

What it does

When a new CSV file arrives in an on-prem folder, this automation reads each row and sends it via Rest request. The responses are collected, composed into a new CSV, and uploaded back to the folder.

Who it's for

Accounting teams who need to sync commission data from on-prem files to an external system without manual uploads.

How teams use this

Batch sync commissions to payroll system

Upload a CSV of commission bookings to an on-prem folder each month, and this automation sends each row to the payroll system via Rest. The response file shows which bookings succeeded.

Route commissions to a different endpoint

Change the Rest endpoint to point to a different external system, such as a new commission management platform. The CSV parsing and response collection stay the same.

Add validation before sending requests

Include a condition to check that each row has required fields like employee ID and amount before sending the Rest request. Only valid rows are sent to the external system.

How it works

  1. Detect new CSV file. Monitor an on-prem folder and trigger this automation when a new CSV file arrives with commission booking data.
  2. Parse each CSV row. Read the CSV file with Csv Parser and iterate through each line so the data can be sent row by row to the external system.
  3. Send row via Rest request. For each CSV row, send a Rest request to the external system with the commission booking details and receive the response.
  4. Compose response CSV. Collect all Rest responses and compose them into a new CSV file with the results from each commission booking sent.
  5. Upload results to on-prem folder. Save the response CSV back to the on-prem folder so the team can review which commissions were booked successfully.