Audit shipping and freight invoices against contract rates and dispute overcharges

Last updated

DifficultyMedium
SetupSome code
Best forFinance, AP or logistics manager
ToolsPython with pandas, or Claude Code or Codex for the audit script, n8n or Make + an LLM for PDF invoice extraction, Your shipping software exports (for example ShipStation or EasyPost), Carrier billing portals or EDI 210 invoice data, Google Sheets or Excel for the review queue, Freight audit services such as CheckMyFreightBill or ShipAudit Pro if you prefer to outsource

Copy this prompt

Paste this into a general agent such as ChatGPT agent or Claude, then add your own inputs.

Help me run this UseCaseProof playbook: Audit shipping and freight invoices against contract rates and dispute overcharges.

The problem: Carrier and freight invoices arrive with many line items: base rates, fuel surcharges, accessorials, residential and address-correction fees, and dimensional weight adjustments. Few small teams have time to check them against the rates they negotiated, so duplicate charges, wrong weights and fees that should not apply often get paid without anyone noticing.

How the agent should work: The agent reads each carrier invoice (PDF, EDI or the carrier's billing export) and matches every shipment to your own records: the order, ship date, declared weight and dimensions, service level and delivery date. It applies your contract rate card, discount tiers and fuel surcharge table, and flags differences such as billed weight above what you shipped, surcharges your contract waives, duplicate tracking numbers, charges for shipments you can't find, and late deliveries on services with a guarantee. It ranks the flags by amount, attaches the evidence for each (your shipment record, the contract clause, the invoice line) and drafts the dispute in the format the carrier asks for. A person reviews and approves each dispute and decides whether to hold any payment.

Follow these steps:
1. Gather your current contract or rate agreement, discount tiers, fuel surcharge table and accessorial schedule for each carrier, and note the carrier's dispute window and format
2. Export shipment records from your shipping software, WMS or order system: tracking number, order, ship date, weight, dimensions, service and destination
3. Get invoices in a structured form where possible (carrier billing portal export or EDI 210); use PDF extraction only where there is no export
4. Write the audit checks as explicit rules: weight and dimensional weight tolerance, waived surcharges, duplicate tracking numbers, unknown shipments, guaranteed-service late deliveries
5. Have the agent (a Python or Claude Code script, or an n8n flow with an LLM for messy PDFs) run the checks and write one row per flag with the amount, evidence and rule that fired
6. Have it draft disputes grouped by carrier and invoice, with evidence attached, into a review queue
7. Review and approve each dispute, then submit through the carrier portal yourself and log the outcome so recovered credits can be matched to later invoices
8. Start with a few past months of invoices to test the rules before running it on new invoices weekly

Human-approval checkpoint: A person approves every dispute before it goes to a carrier, decides on any payment hold, and owns the relationship with the carrier rep. Rate card and rule changes are made by finance or logistics, not by the agent. Disputes the carrier rejects are reviewed by a person before any second attempt.

Guardrails: An out-of-date rate card or a misread contract clause produces false overcharges, and disputing charges that are actually correct wastes time and strains the carrier relationship, so keep the contract file current and spot-check a sample of flags by hand. PDF extraction can misread numbers; prefer structured exports and keep the source document linked to every flag. Carriers have dispute deadlines, so the queue should show the deadline for each item. Do not let the agent short-pay or withhold invoices on its own. Shipment and customer address data should stay in tools your company has approved.

Suggested tools from this playbook (not ranked; check current features and pricing): Python with pandas, or Claude Code or Codex for the audit script, n8n or Make + an LLM for PDF invoice extraction, Your shipping software exports (for example ShipStation or EasyPost), Carrier billing portals or EDI 210 invoice data, Google Sheets or Excel for the review queue, Freight audit services such as CheckMyFreightBill or ShipAudit Pro if you prefer to outsource.

Do not send messages, move money, grant access, merge code, or take any irreversible action until I approve. If you need an input I have not provided, ask me instead of guessing.

The problem

Carrier and freight invoices arrive with many line items: base rates, fuel surcharges, accessorials, residential and address-correction fees, and dimensional weight adjustments. Few small teams have time to check them against the rates they negotiated, so duplicate charges, wrong weights and fees that should not apply often get paid without anyone noticing.

How the agent works

The agent reads each carrier invoice (PDF, EDI or the carrier's billing export) and matches every shipment to your own records: the order, ship date, declared weight and dimensions, service level and delivery date. It applies your contract rate card, discount tiers and fuel surcharge table, and flags differences such as billed weight above what you shipped, surcharges your contract waives, duplicate tracking numbers, charges for shipments you can't find, and late deliveries on services with a guarantee. It ranks the flags by amount, attaches the evidence for each (your shipment record, the contract clause, the invoice line) and drafts the dispute in the format the carrier asks for. A person reviews and approves each dispute and decides whether to hold any payment.

Setup steps

  1. Gather your current contract or rate agreement, discount tiers, fuel surcharge table and accessorial schedule for each carrier, and note the carrier's dispute window and format
  2. Export shipment records from your shipping software, WMS or order system: tracking number, order, ship date, weight, dimensions, service and destination
  3. Get invoices in a structured form where possible (carrier billing portal export or EDI 210); use PDF extraction only where there is no export
  4. Write the audit checks as explicit rules: weight and dimensional weight tolerance, waived surcharges, duplicate tracking numbers, unknown shipments, guaranteed-service late deliveries
  5. Have the agent (a Python or Claude Code script, or an n8n flow with an LLM for messy PDFs) run the checks and write one row per flag with the amount, evidence and rule that fired
  6. Have it draft disputes grouped by carrier and invoice, with evidence attached, into a review queue
  7. Review and approve each dispute, then submit through the carrier portal yourself and log the outcome so recovered credits can be matched to later invoices
  8. Start with a few past months of invoices to test the rules before running it on new invoices weekly

Tools that can do this

  • Python with pandas, or Claude Code or Codex for the audit script
  • n8n or Make + an LLM for PDF invoice extraction
  • Your shipping software exports (for example ShipStation or EasyPost)
  • Carrier billing portals or EDI 210 invoice data
  • Google Sheets or Excel for the review queue
  • Freight audit services such as CheckMyFreightBill or ShipAudit Pro if you prefer to outsource

Some tool links may be affiliate links. We only list tools that fit the playbook; recommendations are not sold. Disclosure.

Not ranked. Tools marked Featured pay for a highlighted listing; that never decides which tools we include. Check each vendor's current features and pricing.

Make one of these tools? Feature your tool on every playbook where it is already listed.

Human in the loop

A person approves every dispute before it goes to a carrier, decides on any payment hold, and owns the relationship with the carrier rep. Rate card and rule changes are made by finance or logistics, not by the agent. Disputes the carrier rejects are reviewed by a person before any second attempt.

Risks and guardrails

An out-of-date rate card or a misread contract clause produces false overcharges, and disputing charges that are actually correct wastes time and strains the carrier relationship, so keep the contract file current and spot-check a sample of flags by hand. PDF extraction can misread numbers; prefer structured exports and keep the source document linked to every flag. Carriers have dispute deadlines, so the queue should show the deadline for each item. Do not let the agent short-pay or withhold invoices on its own. Shipment and customer address data should stay in tools your company has approved.

ROI notes

Measure the total of flagged amounts, how much the carriers credited after review, the share of flags you rejected as false positives, and the hours spent on invoice checks before and after. Results vary widely by carrier mix, contract terms and how clean your shipment data is, so judge it on your own credited amounts over a few months.

Quick answers

How do I audit shipping and freight invoices against contract rates and dispute overcharges?

The agent reads each carrier invoice (PDF, EDI or the carrier's billing export) and matches every shipment to your own records: the order, ship date, declared weight and dimensions, service level and delivery date. The full setup is 8 steps.

Do I need to code to set this up?

Some code is needed. We rate the setup Medium.

Which tools can do this?

Python with pandas, or Claude Code or Codex for the audit script, n8n or Make + an LLM for PDF invoice extraction, Your shipping software exports (for example ShipStation or EasyPost), Carrier billing portals or EDI 210 invoice data, Google Sheets or Excel for the review queue, Freight audit services such as CheckMyFreightBill or ShipAudit Pro if you prefer to outsource. Not ranked; check each vendor's current features and pricing.

Where does a human stay in control?

A person approves every dispute before it goes to a carrier, decides on any payment hold, and owns the relationship with the carrier rep. Rate card and rule changes are made by finance or logistics, not by the agent.

What's a starter prompt I can paste into ChatGPT agent or Claude?

A playbook-specific starter prompt is in the Copy this prompt section above. It is written from this playbook's steps and human-approval checkpoint, for a general agent such as ChatGPT agent or Claude.

Also useful: match supplier invoices to purchase orders; extract data from invoices and PDFs; handle order status and shipping exceptions.

All AI agent examples, by function · More Finance & Accounting playbooks