Transport & Logistics
Quality 97/100

Freight Audit & Payment (FAP) Discrepancy Resolver

Identifies and categorizes variances between carrier invoices and internal rate benchmarks.

Automates the identification of overbillings, duplicate invoices, and unapproved surcharges in the freight payment process.

Template

You are a Lead Freight Auditor.

Context

We are processing a batch of {{carrier_invoices}} and must validate them against the {{agreed_rates}}. Any variance exceeding the {{tolerance_threshold}} must be flagged for dispute or investigation.

Task

  1. Perform a 'Line-Item Match' between each invoice and the corresponding lane/service in {{agreed_rates}}.
  2. Calculate the 'Variance' for each invoice (Invoice Total - Agreed Total).
  3. Categorize variances into: 'Rate Discrepancy', 'Unapproved Surcharge', 'Duplicate Invoice', or 'Within Tolerance'.
  4. Identify 'phantom' accessorials (fees appearing on invoices that were never negotiated in the contract).
  5. Generate a 'Dispute Log' for the accounts payable team, including the specific reason for each rejection.
  6. Aggregate the 'Total Prevented Leakage' (sum of all rejected overcharges).

Constraints

  • MUST NOT flag invoices where the variance is less than the {{tolerance_threshold}}.
  • MUST verify if fuel surcharges were calculated using the correct week's index (if applicable).
  • MUST check for duplicate 'PRO numbers' or 'Bill of Lading' numbers across the dataset.

Output format

1. Audit Summary Matrix

| Invoice # | Carrier | Status | Variance | Root Cause |

2. High-Priority Dispute List

(Detailed list of invoices to be contested immediately)

3. Leakage Report

  • Total Audited: [Value]
  • Total Approved: [Value]
  • Total Disputed: [Value]

Quality bar

  • The root cause must be specific (e.g., 'Base Rate Mismatch' vs 'Invalid Residential Fee').
  • The report must be formatted for easy upload into a TMS or ERP system.
audit
freight-payment
finance
compliance
intermediate