Send driver refunds from CSV to REST endpoint

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 a refund request to a REST endpoint. It collects the responses and uploads a new CSV file back to the folder so someone can track the results.

Who it's for

Finance teams who process driver refunds from CSV files without manual REST requests.

How teams use this

Process weekly driver refund batches

Upload a CSV with driver names and refund amounts each week. The automation sends each refund via REST and returns a results file showing which refunds succeeded or failed.

Route refunds to different endpoints

Change the REST endpoint to send refunds to a different payment processor or accounting system. The CSV parsing and response collection work the same way.

Add driver email notifications

Include an email step after each refund so drivers receive confirmation when their refund is processed. Filter the CSV to only send emails for successful refunds.

How it works

  1. Monitor folder for new CSV file. A new CSV file arrives in the on-prem folder and this automation starts processing it right away.
  2. Parse each row from the CSV file. Csv Parser reads the CSV file and loops through each line so every refund record is processed individually.
  3. Send refund request to REST endpoint. Rest sends a refund request to the endpoint with the driver and amount data from each CSV row.
  4. Collect responses into a new CSV. Gather the REST responses and refund status for each driver into a CSV format so the results are tracked.
  5. Upload results CSV to the folder. Write the new CSV file with all refund responses back to the on-prem folder for the team to review.