🚢 Logistics / FinTech

Container Demurrage & Detention Invoice Audit SaaS

Nine ocean carriers billed American importers roughly $15.4 billion in demurrage and detention charges between April 2020 and March 2025. In May 2024, the Federal Maritime Commission finalized a rule specifying required data elements on every D&D invoice, with an extraordinary enforcement mechanism: if the invoice is missing any of them, the billed party has no legal obligation to pay. The U.S. Census Bureau counts 240,535 importing companies. Most of them still review these invoices by hand, if they review them at all.

Container port terminal at dusk with shipping containers stacked in rows and gantry cranes against an orange sky

The Problem

When a shipping container arrives at a US port, the clock starts. The ocean carrier grants the importer a window of "free time" to pick up the container from the terminal, typically 4-7 days, after which the carrier charges demurrage: $50 to $250 per container per day, depending on the carrier, port, and container size. Take the container to your warehouse but hold it too long before returning the empty box, and that's detention, running $75 to $100 per day. Miss both deadlines on a 40-foot container at the Port of Long Beach and you can easily rack up $500 a day in combined charges before anyone in your accounting department notices the invoice.

Add it up and the scale becomes clear: according to FMC detention and demurrage data compiled through 2025, nine major ocean carriers collected approximately $15.4 billion in demurrage and detention charges between April 2020 and March 2025, with the amount billed increasing roughly nine-fold between Q2 2020 and Q1 2022, driven by pandemic-era port congestion that left containers stranded for weeks through no fault of the importers paying the bills. Charges have come down from those peaks but remain structurally elevated: the Container xChange Benchmark found that six major US ports averaged $2,008 per container per day in combined D&D costs as of mid-2023, compared to $549 in Europe and $482 in India. American importers pay four times the global average to leave a box sitting on a dock.

Congress responded with the Ocean Shipping Reform Act of 2022 (OSRA), signed into law with bipartisan support in June 2022 as the first significant update to the Shipping Act since 1998. Among its provisions: the FMC was directed to establish minimum billing requirements for D&D invoices, create dispute resolution timelines, and prohibit carriers from billing parties they have no contractual relationship with.

The FMC delivered. 46 CFR Part 541, finalized in February 2024 and effective May 2024, established three structural changes to D&D billing. Carriers and marine terminal operators must issue invoices within 30 calendar days of when the charge was incurred. Billed parties get 30 calendar days to dispute charges. And every invoice must contain specific data elements across four categories: identifying information (container number, port of discharge, the billing party's contact information, the billed party's identity), timing information (the dates used to calculate free time, the start and end dates of free time), rate and charge information (the applicable rate, the amount due, the applicable detention or demurrage rule, the basis for why that particular party is being billed), and compliance certifications (a certification that the charges comply with applicable regulations, identification of how to request fee mitigation, refund, or waiver).

Here is the critical enforcement provision: if a D&D invoice fails to include the required information, the billed party has no obligation to pay. That single sentence, codified in 46 U.S.C. 41104(d), fundamentally shifted the power dynamic between carriers and importers. Before May 2024, an importer who received a $12,000 demurrage bill had two options: pay it or litigate it. Now there is a third: check the invoice against the required elements, find what is missing, and legally decline to pay until a compliant invoice is issued.

One provision did not survive judicial review: in September 2025, the D.C. Circuit ruled in World Shipping Council v. FMC that 46 CFR 541.4, which restricted who could be billed, was "arbitrary and capricious" and struck it down. But the invoice content requirements in 541.6 and the "no obligation to pay" provision in 41104(d) were not challenged, remain fully in force, and are the foundation this startup is built on.

Almost nobody is actually checking, because the rule exists and the weapon is loaded but nobody pulls the trigger.

The Gap in the Market

By FMC estimates, between 1.135 million and 2.27 million D&D invoices are issued annually to parties involved in US foreign trade. These invoices arrive as PDFs, emails, EDI messages, and carrier portal notifications in dozens of different formats from hundreds of different billing entities. Checking each one against 13 regulatory requirements, cross-referencing the dates against actual vessel discharge records, and verifying the rate against the carrier's published tariff is a manual process that takes 15-45 minutes per invoice for a trained logistics coordinator who knows what to look for.

CompanyWhat They DoWhat's Missing
Terminal49Container tracking API. Provides real-time visibility into container status at US ports. Funded by Y Combinator (S19). Used by freight forwarders and BCOs to monitor dwell time and predict when D&D charges will accrue.Tracking prevents future D&D but does not audit invoices that have already been issued, with no compliance checking against 46 CFR 541, no dispute generation, and no recovery workflow.
TradlinxKorean logistics platform that launched D&D Monitoring in November 2025. Tracks terminal dwell and street dwell in real time, flags at-risk containers before free time expires.Same gap as Terminal49: preventive visibility, not retroactive audit, filtering containers by dwell threshold but not parsing incoming invoices, checking compliance, or managing disputes.
GoFreightTransportation management system (TMS) for freight forwarders. Added D&D monitoring as a feature within its ocean visibility module.A feature inside a TMS, not a standalone audit tool. Forwarders using GoFreight can see which containers are approaching free time limits. They cannot feed an incoming D&D invoice into GoFreight and get a compliance report back.
FlexportDigital freight forwarder valued at $8B (2022). Provides end-to-end supply chain management including D&D avoidance as part of its managed service.Flexport is a forwarder, not a tool. Their D&D management is available only to Flexport customers using Flexport as their forwarder. The 200,000+ SME importers who use independent brokers or customs house brokers have no access to Flexport's internal systems.
Customs house brokers / freight forwarders (manual)Many importers rely on their customs broker or forwarder to review D&D invoices. Brokers with experienced staff know which charges to dispute and how.Entirely manual and dependent on individual expertise, with no standardized compliance check and no systematic recovery tracking. High-volume brokers handle thousands of invoices per month and cannot review each one thoroughly. The broker who catches everything retires, and the knowledge walks out the door.

Every existing competitor is oriented around prevention: how do we avoid D&D charges in the first place? That is a valid question, and these companies answer it reasonably well. But it is the wrong question for the $15.4 billion that has already been billed. Nobody has built the product that answers the second question: of the invoices that arrive anyway, which ones are legally deficient and don't need to be paid?

The Solution

An invoice audit platform purpose-built for container demurrage and detention, performing three functions: compliance verification, overcharge identification, and dispute management.

1. Automated invoice ingestion and parsing ($0.50-2.00/invoice): Importers, forwarders, and brokers forward D&D invoices to a dedicated email address or upload them through a web portal. The platform uses OCR and structured data extraction to parse invoices from any carrier format (Maersk, MSC, CMA CGM, COSCO, Hapag-Lloyd, ONE, Evergreen, Yang Ming, ZIM, plus dozens of marine terminal operators and NVOCCs). Each parsed invoice is mapped to a standardized schema containing all 13 fields required under 46 CFR 541.

2. 13-element compliance check (included in per-invoice fee): Every parsed invoice is checked against the 13 mandatory data elements, with missing elements flagged alongside the specific regulatory citation, and a compliance report generated for each invoice: green (all 13 elements present), yellow (elements present but potentially inaccurate, requiring cross-reference), or red (one or more elements missing, no legal obligation to pay), and that red flag is the killer feature because an importer who receives 50 D&D invoices per month and finds that 8 of them are missing required elements just saved themselves from paying charges they were never legally obligated to pay.

3. Rate and date verification ($99/month subscription add-on): Beyond checking whether the 13 elements are present, the platform verifies whether they are accurate. Free time start dates are cross-referenced against vessel discharge records from terminal operating systems. Applied rates are compared against the carrier's published tariff schedule (filed with the FMC and publicly accessible). Container last free day calculations are validated against the specific free time provisions in the importer's service contract, if one exists. Discrepancies flag potential overcharges even on technically compliant invoices.

4. Automated dispute generation ($29/dispute): For invoices flagged as non-compliant or overcharged, the platform auto-generates dispute letters citing the specific regulatory provision violated and the calculation showing the correct charge amount. Disputes are formatted to meet the 46 CFR 541 dispute submission requirements and include the documentation the carrier needs to process the dispute within the 30-day resolution window. The platform tracks dispute status, escalation timelines, and resolution outcomes.

5. Portfolio analytics and benchmarking ($199/month): Aggregated across all customers, the platform builds the first industry-wide dataset of D&D billing practices by carrier, port, and trade lane. Importers see how their D&D costs compare to peers importing similar commodities through the same ports. Carriers with systematically non-compliant invoices are identified. Seasonal patterns, port-specific risk factors, and carrier-specific billing behaviors become visible for the first time.

The Math: What Non-Compliance Actually Costs

Consider a mid-size importer bringing in 200 containers per month through the ports of Los Angeles and Long Beach. Industry data suggests 5-10% of containers incur D&D charges, so roughly 10-20 invoices per month.

Scenario A: Current state (manual review or no review)

Here is what daily life looks like for a mid-size importer bringing in 200 containers per month through the Port of Long Beach, the kind of company with 10-50 employees that represents the meat of the addressable market. The logistics coordinator reviews D&D invoices when she has time, which is rarely, so most invoices are paid without scrutiny because disputing them takes 2-3 hours each and the coordinator handles 40 other tasks daily. Average D&D invoice: $1,800 (covering 3-5 days of overage on a mix of 20-foot and 40-foot containers). Monthly D&D expense on 15 invoices: $27,000. Annual: $324,000. Of those 15 invoices, industry estimates suggest 15-25% contain billing errors or compliance deficiencies, meaning 2-3 invoices per month that could be disputed or legally declined, representing an estimated $3,600-5,400/month in recoverable charges, or $43,200-64,800/year, sitting on the table uncollected.

Scenario B: Platform-enabled audit

Every incoming D&D invoice is forwarded to the platform, where parsing and compliance check costs 15 invoices × $2.00 = $30, rate verification runs $99/month, and three invoices per month are flagged as non-compliant or overcharged, with dispute generation at 3 × $29 = $87. Total monthly platform cost: $216. Recovered charges (conservatively, 60% dispute success rate on flagged invoices): $3,240/month. Net monthly savings: $3,024. Annual: $36,288. ROI: 1,400%. The tool pays for itself before lunch on the first day of the month. (These projections rely on the 15-25% deficiency rate and 60% dispute success rate discussed in the Limitations section below. Both are directional estimates, not audited figures.)

Scale that to a large customs broker processing invoices for 500 importer clients and the numbers get serious: even at $200/month per client for the audit service (which the broker marks up and bills as a value-added compliance offering), the broker generates $100,000/month in new recurring revenue while reducing their clients' collective D&D spend by millions annually.

Revenue Model

Revenue StreamAmountNotes
Invoice parsing and compliance check$0.50-2.00/invoiceVolume-tiered pricing: $2.00 for fewer than 50 invoices per month, $1.00 for 50-500, $0.50 for 500 or more, making this the core revenue engine.
Rate and date verification$99-499/monthSubscription tier based on container volume. Cross-references carrier tariffs, vessel discharge records, and contract terms.
Dispute generation$29/disputeAuto-generated dispute letters with regulatory citations and supporting documentation.
Recovery contingency fee15% of recovered overchargesAlternative pricing for customers who prefer success-based fees over per-invoice charges, aligning the platform's incentives directly with recovery outcomes.
Portfolio analytics$199-999/monthBenchmarking, carrier compliance scoring, and seasonal risk analysis developed as a Phase 2 expansion once the core audit product has sufficient data volume.
Broker/forwarder white-label$2,500/month + per-invoiceWhite-labeled audit portal for customs brokers to offer D&D compliance as a branded service to their clients.

Unit economics on a 200-container/month importer: Monthly revenue comes to $30 (parsing) + $99 (verification) + $87 (disputes) = $216 on SaaS fees alone, and with a 15% contingency on $3,240 recovered that adds $486 for a total of $702/month, or $8,424/year. Customer acquisition cost via trade show presence at TPM (Trans-Pacific Maritime Conference, 2,800 attendees), JOC Inland Conference, and NCBFAA (National Customs Brokers & Forwarders Association of America) annual conference: approximately $2,500 per customer. LTV at 3-year retention: $25,272. LTV:CAC: 10.1x.

White-label distribution through customs brokers dramatically improves acquisition economics. One broker relationship delivers 50-500 importer clients. CAC per end-user drops below $50 when distributed across the broker's client base.

Market Size

TAM: The U.S. Census Bureau's 2024 Profile of Importing and Exporting Companies identifies 240,535 importing companies, of which 234,023 are small and medium enterprises. Not all import via ocean container (many import overland from Mexico and Canada or via air freight), but approximately 80,000-100,000 companies import containerized ocean freight annually, based on CBP entry filing data. The FMC estimates 1.135 million to 2.27 million D&D invoices issued annually. At blended per-invoice revenue of $3.50 (parsing + compliance check) plus $200/month average subscription: $250M-$320M/year in addressable SaaS and transaction revenue.

SAM: Focus on the 15,000-20,000 importers bringing in 50+ containers per month through the top 10 US container ports (Los Angeles, Long Beach, New York/New Jersey, Savannah, Houston, Seattle/Tacoma, Oakland, Charleston, Norfolk, Miami), plus the 4,500 licensed customs brokers who collectively handle the majority of US import entries. At $500/month blended revenue per active account: $120M-$150M/year.

SOM (year 3): 400 direct importer accounts averaging $400/month plus 50 broker white-label accounts averaging $3,500/month (including per-invoice fees from their client bases) yields $1.92M from direct accounts and $2.1M from the broker channel, totaling $4.0M ARR at 2.7% penetration of SAM.

Why Now

46 CFR 541 just gave importers a weapon they don't know they have. The rule has been in effect since May 2024 but awareness among SME importers remains low. In conversations at industry events, most small importers know about OSRA in general terms but cannot name the 13 required invoice elements, do not know they can legally decline payment on non-compliant invoices, and have not updated their D&D processing workflows to incorporate compliance checks. This is the classic "the law changed but the behavior hasn't caught up" gap that vertical SaaS fills.

Tariff volatility is making every dollar count. US import tariffs on Chinese goods reached 145% in 2025 under executive order, with broad reciprocal tariffs on dozens of other countries creating margin pressure across the import supply chain. The National Retail Federation projected 2025 container imports to decline 5.6% from 2024 levels. When top-line volumes shrink, importers who previously shrugged off $30,000-50,000 in annual D&D overcharges as a cost of doing business start scrutinizing every invoice. Recession psychology creates audit demand.

CBP enforcement is tightening, which trains importers to be compliance-oriented. As of June 2025, CBP had recovered $192.77 million in FY2025, far surpassing the $117.7 million collected in all of FY2024. The One Big Beautiful Bill Act signed July 4, 2025 added $4.1 billion in CBP funding and up to 8,500 new customs employees. Importers increasingly investing in compliance infrastructure are primed to adopt adjacent compliance tools.

Carrier consolidation makes the invoice parsing problem tractable. Nine ocean carriers control over 80% of global container shipping capacity, and while their invoice formats are not standardized, the format universe is finite and learnable: a parser trained on Maersk, MSC, CMA CGM, COSCO, Hapag-Lloyd, ONE, Evergreen, Yang Ming, and ZIM invoices covers the vast majority of D&D billing, making this a twenty-format problem with a long tail rather than a thousand-format nightmare.

Startup Costs

CategoryCostNotes
Invoice parsing engine (6 months)$180K2 ML engineers building OCR + structured extraction for carrier-specific invoice formats. Training data from publicly available carrier invoice templates and customer-submitted samples.
Compliance rules engine$60K1 backend engineer encoding 46 CFR 541 requirements as programmatic rules, plus carrier tariff rate database and vessel discharge record integration (AIS data + terminal APIs).
Dispute generation and tracking$40KTemplated dispute letters per carrier, regulatory citation engine, status tracking workflow, 30-day deadline monitoring.
Web portal and API$70KCustomer-facing dashboard for invoice upload, compliance reports, dispute tracking, analytics, and broker integration API.
Carrier tariff database$25KInitial compilation of D&D tariff schedules from top 9 carriers at top 10 US ports. FMC tariff filings are public but require manual compilation into machine-readable format.
Legal review$30KMaritime law firm review of compliance checking logic, dispute letter templates, and product liability exposure. Confirm that automated compliance determinations are advisory, not legal opinions.
Pilot program (25 importers, 5 brokers)$15KSubsidized onboarding, dedicated support, and case study rights, targeting importers at LA/LB and NY/NJ first.
Industry events and sales (year 1)$40KTPM Conference (March, Long Beach), NCBFAA Annual Conference, JOC Inland, Cargo Logistics Expo, with booth presence, product demos, and speaking slots at each.
Operating buffer (12 months)$40KCloud infrastructure, OCR API costs (AWS Textract or similar), customer support.
Total$500K

Risks and Challenges

Carriers could improve invoice compliance, reducing the deficiency rate. If all 9 major carriers updated their billing systems to include all 13 required elements on every invoice, the "non-compliant invoice = no obligation to pay" wedge disappears, and this is the most likely structural risk because it requires only competence, not generosity. However, carrier billing systems are notoriously slow to update (many run on mainframe-era EDI infrastructure), marine terminal operators issue their own invoices with separate compliance challenges, and even fully compliant invoices can contain rate and date errors that the audit platform would still catch, meaning the compliance check is the initial wedge while overcharge identification is the durable value.

The FMC could weaken enforcement or modify the rule. A change in FMC commissioners (the five-member commission serves staggered terms) could lead to amendments softening the 13-element requirement or the "no obligation to pay" provision. However, OSRA passed with broad bipartisan support (369-42 in the House, unanimous voice vote in the Senate), and the domestic shipping lobby (AgTC, NRF, IMCC) that pushed for the rule is politically stronger than the carrier lobby on Capitol Hill. The regulatory direction is toward more transparency, not less.

Customs brokers could build audit capabilities in-house. Large brokers like C.H. Robinson, Expeditors, or UPS Supply Chain Solutions have the resources to develop internal D&D audit tools. If the top 20 brokers all build their own, the TAM for independent audit software shrinks to the mid-market and SME segment. Counterargument: brokers are logistics companies, not software companies. Their core competency is moving goods, not building ML-powered invoice parsing engines. The build-vs-buy calculation strongly favors buy for all but the very largest brokers, especially when a white-label option lets them offer the audit capability under their own brand.

Limitations

That 15-25% deficiency/error rate on D&D invoices is a directional estimate compiled from industry anecdotes at trade events and published commentary from maritime attorneys, not a systematic audit of a representative sample. No published study has quantified the actual non-compliance rate under 46 CFR 541 since the rule took effect. The true rate could be lower (if carriers rapidly updated their billing systems) or higher (if marine terminal operators, who issue a significant share of D&D invoices, were slower to comply than vessel-operating carriers).

Our 80,000-100,000 ocean container importer estimate is derived from the Census Bureau's 240,535 total importers by subtracting overland (Mexico, Canada) and air freight importers using trade mode data. The actual number of companies that receive D&D invoices is smaller than the number of ocean importers, because many importers use NVOCCs or freight forwarders who absorb D&D charges. The addressable customer base may be more accurately described as the combination of direct BCOs (beneficial cargo owners) and the forwarders/NVOCCs who process D&D on their behalf.

No published benchmark validates the 60% dispute success rate assumption. FMC complaint data shows a high success rate for formally filed complaints, but the vast majority of D&D disputes are resolved bilaterally between the billed party and the carrier, and those outcomes are not reported to the FMC. Success rates likely vary dramatically by carrier, by the nature of the deficiency, and by whether the dispute involves a missing invoice element (strong legal ground) versus a disagreement about the applicable rate (weaker ground).

Strongest Counterargument

Big freight forwarders and digital brokers will bundle D&D audit as a free feature to win and retain customers. Flexport, valued at $8 billion and burning through capital to acquire market share, has every incentive to add "we automatically audit your D&D invoices and recover overcharges" as a differentiator in their managed service offering. If Flexport, Freightos, or Forto offers D&D audit at no incremental cost as part of their forwarding fee, the standalone audit SaaS loses its reason to exist for any importer willing to switch forwarders.

Here is why that counterargument doesn't hold: switching forwarders is not a casual decision. Importers who have spent years building relationships with their customs broker, negotiating service contract rates with specific carriers, and integrating their broker's EDI feeds into their ERP systems do not switch to Flexport because Flexport added a free audit feature. Forwarder lock-in is real, sticky, and cuts across multiple relationships. More fundamentally, Flexport's D&D audit would only cover Flexport-managed shipments. An importer using three forwarders across different trade lanes needs an audit tool that works across all of them, which is exactly what an independent platform provides. The standalone audit SaaS does not compete with forwarders; it sits alongside them, auditing invoices regardless of which forwarder or carrier generated them.

What You Can Do

If you're an importer: Pull every D&D invoice you have paid in the last 12 months. Check each one against the 13 required elements listed in 46 CFR 541.6. The most commonly missing elements are: the certification that charges comply with applicable regulations, the identification of how to request mitigation or waiver, and the specific detention or demurrage rule under which the charge was assessed. For any invoice missing one or more elements, you have grounds to request a refund or credit. The FMC's Small Business Advocacy Office can help you navigate the process.

If you're a customs broker: D&D invoice audit is a high-margin service your clients will pay for because the ROI is immediate and measurable. Start by auditing your top 10 clients' D&D invoices for the past quarter. Calculate the total charges paid on non-compliant invoices. Present that number to each client with a proposal to audit all future invoices for a percentage of recovered charges. You now have a new revenue stream and a retention tool that makes your clients' switching cost higher.

If you're building this: Start at the Port of Los Angeles / Long Beach complex. It handles 40% of US containerized imports and has the highest D&D costs in the country. Partner with 3-5 mid-size customs brokers (100-500 importer clients each) in the LA/LB market. Offer the first 90 days free with full audit service. The pilot will generate the case studies (carrier X's invoices are non-compliant Y% of the time) and the aggregate data (average recoverable overcharge per container at POLA/POLB is $Z) that become your sales deck for TPM Conference in March. The customs broker channel is your distribution moat: each broker relationship delivers dozens to hundreds of end-user clients, and once a broker's workflow depends on your audit reports, switching costs are high.

The Bottom Line

Congress handed importers a powerful new tool in 2022, and the FMC sharpened it into a weapon in 2024: a 13-element compliance checklist that, if any carrier fails to meet, eliminates the importer's obligation to pay. Two years later, the weapon sits in the holster. The importers don't know the specifics, the brokers don't have time to check, and the carriers have no incentive to advertise that their own invoices might be deficient. The first company to build automated invoice parsing, compliance checking, and dispute generation will tap into billions of dollars in annual D&D charges and extract value from the gap between what the law now requires and what carriers actually deliver. The regulatory moat is real, the data advantage compounds with every invoice processed, and the customers are already paying the charges they shouldn't be. Someone just needs to show them.