
PIPELINE PUNKS · INTELLIGENCE SERIES
Petroleum AI Field Report
Less artificial. More intelligence.
Thursday, December 3, 2026 | Use case: Matching BOLs, supplier invoices and customer invoices for bulk fuel and tank wagon loads
PP-AI-2026-12-03 | Revision 1
BOTTOM LINE
Matching the terminal bill of lading (BOL), the supplier invoice, the carrier freight bill and your own customer invoice is mostly a plain rules job, not AI. A matching engine pairs documents on BOL number, terminal, product, lift date and gallons. It then checks price and tax against the contract and the quote. Generative AI is useful only at the start of the process, where it reads PDF or scanned invoices that do not arrive as electronic data. A person reviews every exception before a payable is released or a customer invoice is corrected.
One date to plan around: the IRS dyed diesel relief period ends Jan 1, 2027. See the current development section below.
THE OPERATOR PROBLEM
Every load produces at least four records:
- the rack BOL
- the supplier invoice
- the carrier freight bill, if you hire the hauling
- the delivery ticket, which becomes your customer invoice
Before anyone pays the supplier or bills the customer, the back office has to tie these four together. When that goes wrong:
- A supplier invoice gets paid twice, or at a price different from the quote the load was lifted on.
- A BOL never gets billed, so gallons leave inventory with no revenue. (Interpretation.)
- A customer invoice carries the wrong product code, so a dyed load is billed with clear diesel tax lines, or a clear load is billed without them.
- A freight bill includes a load that has no matching BOL.
- Billing waits on paper. OPIS notes that jobbers lose time chasing delivery paperwork and reconciling by hand, which delays billing and creates errors (OPIS Axxis Reconcile (https://www.opis.com/product/analytics/axxis-software/axxis-reconcile/)).
We found no reliable public figure for what these errors cost a small distributor, so this edition does not estimate one.
WHAT ACTUALLY DOES THE WORK
- Plain rules (not AI): matching on BOL number, supplier, terminal, product and lift date. Tolerance checks on gallons and price. Duplicate invoice checks. Tax line checks by product and destination state. This is most of the job.
- Statistics (not AI): learning the normal gallon variance for each supplier and terminal, so each pairing gets its own tolerance instead of one company-wide number. Percentiles over past matched loads are enough for this.
- Machine learning (optional): ranking likely matches when a BOL number is missing or mistyped, using date, gallons and truck. It is only worth adding if you have a large pile of unmatched documents.
- Generative AI: pulling fields out of emailed PDFs and photographed tickets. Every extracted field still goes through the rules before it counts. Documents the tool is unsure about go to a person.
- Never AI: the decision to pay, dispute or issue a credit.
DATA REQUIRED AND WHERE IT LIVES
- Terminal BOL data: electronic feeds from the terminal or a BOL data service, or paper and photos from drivers.
- Supplier invoices: EDI, emailed PDFs, supplier portals.
- Quotes and contract terms: your pricing service, supply contracts and the ERP.
- Carrier freight bills and rate sheets: email, carrier portals, a TMS.
- Delivery tickets: in-truck meter systems, handhelds, paper.
- Customer master and tax setup: the ERP or accounting system. This covers exemption status, dyed fuel eligibility and ship-to state.
- Accounts payable (AP) and receivable history: the accounting system, used for duplicate checks.
Interpretation: before you write any gallon rule, confirm from each supply contract which gallon basis the supplier bills on, so the rule compares like with like.
BUILD, BUY, OR CONFIGURE WHAT YOU OWN
Configure first. Ask your current back-office vendor whether BOL and invoice reconciliation is a module you already license, and whether it can send exceptions to a review queue.
Buy. The descriptions below are vendor claims. We have not tested either product.
- OPIS says Axxis Reconcile:
- captures data from email, FTP, websites and APIs
- automatically matches the fuel quote, supplier BOL, supplier invoice and delivery BOL or ticket
- highlights exceptions for follow-up
Its modules include CaptureRite and TransactionRite (OPIS (https://www.opis.com/product/analytics/axxis-software/axxis-reconcile/)).
- Gravitate says its Supply and Dispatch platform includes digital BOL reconciliation. It says that capturing BOL data and delivery confirmations as they happen allows same-day invoicing and automated three-way matching. It also claims that same-day invoicing compresses cash cycles by 4 to 6 days (Gravitate (https://gravitate.energy/who-we-serve/wholesalers)).
Build. The rules layer can be built in SQL, or in a spreadsheet with lookups over exported BOL and invoice files. Add generative AI extraction only for documents that arrive as PDFs or images, and keep the original image linked to every extracted record.
Interpretation: building makes sense when volume is low and your suppliers already send electronic data. It gets hard once you have many suppliers with different invoice layouts.
A 30-DAY PILOT
Scope: one supplier at one terminal, plus the customer invoices for those loads. Choose a supplier that already sends electronic data.
Days 1 to 10, shadow mode. The tool matches in parallel while the AP clerk matches the usual way. Each day the controller compares the two results.
Days 11 to 30, tool proposes.
- The tool proposes matches.
- The clerk approves or rejects each exception and records a reason code.
- Someone still spot-checks a sample of the clean matches.
- No payment is released without AP approval.
Suggested starting rule (interpretation): invoice price must match the contract or quote exactly, a tolerance of $0.0000/gal. The controller sets any gallon tolerance.
Measure:
- minutes spent reconciling each load
- share of loads that match cleanly
- errors caught: exceptions that turned out to be real errors
- false alarms: exceptions that were not real errors
- misses: errors found later that the tool did not flag
- days from lift to customer invoice
Stop the pilot if any of these happens:
- A payment or customer invoice goes out on an unreviewed tool decision.
- An extraction error on a tax line reaches a posted invoice.
- At day 20, false alarms still far outnumber real catches after tuning.
CONTROLS AND FAILURE MODES
Audit trail: each match stores:
- the document IDs
- the rule version and tolerance used
- who approved it, and when
- a link to the original image
Permissions:
- The tool can read and propose. It cannot post.
- Only AP releases payments. Only billing or the controller issues credits.
- The person who edits the vendor master or the tolerances should not be the person who approves payments.
Sign-off: the controller approves tolerance changes and reviews a weekly exception summary.
Failure modes:
- typos in BOL numbers
- split loads, where one BOL covers several customer drops
- one invoice covering many BOLs
- corrected invoices treated as duplicates, or as new charges
- product code mappings that drift over time
- scanned digits misread, such as a 5 read as an 8
- tax tables not updated when rates change
Never automated:
- paying or disputing a supplier
- issuing a customer credit
- changing a customer's exemption status
- deciding whether a load is treated as dyed or clear
- filing tax returns
CURRENT DEVELOPMENT: DYED DIESEL RELIEF ENDS JAN 1
Under IR-2026-125, issued Oct 21, the IRS will not challenge filing, reporting or recordkeeping failures that come solely from section 4041(a) liability on taxable uses of dyed diesel on or after Oct 1, 2026 and before Jan 1, 2027. Records required for another tax, or to support an exemption, credit or refund claim, are still required (IRS IR-2026-125 (https://www.irs.gov/newsroom/temporary-reporting-and-recordkeeping-relief-for-certain-fuel-uses)).
The IRS FAQ, dated Oct 23, adds three points (IRS dyed diesel FAQ (https://www.irs.gov/newsroom/dyed-diesel-frequently-asked-questions)):
- Sellers do not have to keep the "nontaxable use only" notices up during the relief period, but must restore them once it ends.
- The relief does not cover federal taxes on clear diesel or dyed kerosene.
- Guidance on red dye left in tanks after the relief period is still pending.
Where the notice must go: under 26 CFR 48.4082-2, a seller must post the notice on any retail pump or other delivery facility where it sells dyed diesel for the buyer's use. Terminal operators have a separate notice duty, which the section cross-references to 48.4101-1(h)(3) (eCFR 48.4082-2 (https://www.ecfr.gov/current/title-26/chapter-I/subchapter-D/part-48/subpart-H/subject-group-ECFRfec64af5287e9f1/section-48.4082-2)). The federal seller rule does not itself require the notice on your customer invoices. Some states have their own invoice or shipping paper notice rules, so check your state's rules.
Interpretation for matching: keep dyed and clear diesel as separate product codes on the BOL, the supplier invoice and the customer invoice. Turn back on any dyed product checks that were relaxed during the relief period.
THREE DEEPER READS
- OPIS: Axxis Reconcile Software Solution (https://www.opis.com/product/analytics/axxis-software/axxis-reconcile/)
- IRS: Dyed diesel, frequently asked questions (https://www.irs.gov/newsroom/dyed-diesel-frequently-asked-questions)
- eCFR: 26 CFR 48.4082-2, notice required for dyed fuel (https://www.ecfr.gov/current/title-26/chapter-I/subchapter-D/part-48/subpart-H/subject-group-ECFRfec64af5287e9f1/section-48.4082-2)
Not legal or tax advice. Confirm how these rules apply to your operation with counsel or the issuing agency.
Pipeline Punks // Petroleum briefs
Six briefs. Less noise. Pick your signal.
Six sourced petroleum briefs. We chase the dates, test the claims, and call out the avoidable mess before it ruins your week. No fake urgency. No vendor worship. No twelve-page introduction to a two-line answer. Choose any mix, confirm by email, and stop any one with a link.