
Capturing an invoice number is easy. Knowing whether a detention fee belongs on that shipment is the work. Start by matching the invoice to the load, agreed rate and evidence of delivery, then make exceptions visible before anything reaches payment.
This guide is for finance and operations teams at shippers, 3PLs and brokers who receive carrier invoices by email, portal or EDI and want fewer hours spent matching them. The worked example is fictional.
What to capture from every invoice
| Item | Why it matters | Matched against |
|---|---|---|
| Invoice number and carrier | Together they form the duplicate key | Previously received invoices |
| Shipment and PO identifiers | Links the charge to a real movement | TMS load, PRO number, purchase order |
| Base linehaul | The agreed price for the move | Rate confirmation or contract tariff |
| Fuel | Often formula-based and easy to get wrong | Agreed fuel schedule or fixed amount |
| Accessorials | Where most disputes live | Evidence: appointment times, gate logs, POD notes |
| Currency | Cross-border moves need it explicit | Agreed currency on the rate |
| Supporting POD | No delivery evidence, no payment | Signed POD attached to the load |
| Rate confirmation | The source of truth for what was agreed | Stored against the load at booking |
| Reason for hold | Tells the carrier exactly what is needed | Your exception codes |
A worked example
Illustrative, fictional data. A carrier invoices a dry van load. The rate confirmation agreed $1,200 linehaul and $180 fuel. The invoice totals $1,475: the two agreed lines plus $95 detention.
| Line | Invoiced | Supported by | Status |
|---|---|---|---|
| Linehaul | $1,200 | Rate confirmation | Supported |
| Fuel | $180 | Rate confirmation | Supported |
| Detention | $95 | No appointment or gate times on file; POD has no detention note | Held |
| Total | $1,475 | $1,380 supported | $95 variance held |
The workflow does not pay anything and does not split the invoice. It marks $1,380 as supported and routes the $95 variance according to the customer's policy. Typically the carrier relations or billing owner asks the carrier for check-in and check-out times at the consignee. If those times show waiting beyond the free time in the agreement, the owner releases the detention line. If not, it's disputed with the carrier. Either way, the decision and the evidence are recorded against the invoice.
Duplicate prevention
Carriers resend invoices, factoring companies send copies and portals re-export batches. Key every invoice on carrier plus invoice number, and check the same load for a second invoice under a different number with the same amount. Treat both as holds, not rejections: a second invoice is sometimes legitimate (a separate accessorial bill), and a person should decide.
Credits and rebills
A rebill should reference the invoice it replaces, and a credit should reduce a specific invoice. Without that link the two documents look like two unrelated charges. Hold any credit or rebill that can't be tied to an original, and record the relationship once it's confirmed so the load's total cost stays correct.
Tolerance rules
Small differences, such as rounding in a fuel formula, may not be worth a person's time. Tolerances make that a written decision rather than a habit. Set them per charge type, as an absolute amount and a percentage, and never let a tolerance cover a charge that has no basis at all. An unsupported accessorial is not a rounding error. Review the tolerance outcomes monthly: if most holds are released unchanged, the rule is too tight; if disputes are found after payment, it's too loose.
Invoice automation, freight audit and payment
These terms get used interchangeably. They are different jobs:
- Freight invoice automation captures invoice data, matches it to loads, rates and delivery evidence, and routes exceptions. This is the part described in this guide.
- Freight audit checks charges against contracts and tariffs, often after the fact, to recover overpayments and find patterns by carrier or lane.
- Freight payment moves money to carriers, usually from approved invoices, and is governed by your finance controls and approval limits.
Automating the first job well makes the other two easier, but it doesn't replace them, and it shouldn't approve payments outside the approval path your finance team already runs.
Mapping and exception checklist
Freight invoice mapping and exception checklist Mapping [ ] Carrier and remit-to identified; carrier invoice number captured exactly as printed [ ] Shipment, load, PRO and PO identifiers mapped to your records [ ] Base linehaul, fuel and each accessorial captured as separate lines [ ] Currency captured; no silent conversion [ ] Agreed rate source named (rate confirmation, contract tariff or spot quote) [ ] Supporting POD located and linked; signature and pages checked Exceptions (hold, do not pay) [ ] Same carrier + invoice number already seen (duplicate) [ ] Accessorial without supporting evidence (detention, lumper, layover, TONU) [ ] Line amount differs from the agreed rate beyond the agreed tolerance [ ] POD missing, unsigned or showing damage or shortage [ ] Invoice references a shipment you cannot match [ ] Credit or rebill without a link to the original invoice For every hold [ ] Reason recorded in words a carrier can act on [ ] Owner named (billing, operations or carrier relations) [ ] Evidence that would release it written down
Matching invoices depends on orders entering the TMS cleanly. Read the companion guide on TMS integration for emailed freight orders, or see the logistics automation overview.
The engineering behind this article is available as a service.
We have done this work — not advised on it, not reviewed documentation about it. If the problem in this article is your problem, the first call is with a senior engineer who has solved it.