Skip to Navigation Skip to Content

What Is a Freight Shipping API? (2026 Guide for Shippers)

Mike Marshall, Shipping Expert

A freight shipping API is a connection that lets your software pull live rates, book shipments, generate labels, and track freight directly from carriers without anyone logging into a carrier portal. The technology moved from optional to mandatory in 2026: USPS retired its Web Tools API platform on January 25, 2026, and FedEx retired its legacy SOAP Web Services on June 1, 2026, forcing every affected shipper onto modern REST APIs.

This guide covers how freight shipping APIs work, what they cost, how they connect to a TMS, WMS, ERP, or storefront, and how to choose between an aggregator and a direct carrier connection.

Hi, I'm Michael Marshall from FreightWaves

Learn More Start Shipping

ShipStation centralizes order management, rate shopping, and label printing across every channel you sell on with ShipStation Intelligence, automating the busywork and one of the broadest carrier and integration networks in the industry behind it.

  • Automation that creates labels up to 15x faster

  • Broadest carrier & marketplace network in the category

  • Branded, self-service returns portal

  • 30-day free trial, no credit card required

Key Takeaways

  • A freight shipping API automates the four jobs that eat the most time. Rating, booking, document generation, and tracking all run inside your own systems instead of across multiple carrier websites.
  • REST and OAuth 2.0 are now the standard. UPS stopped supporting access-key authentication on June 3, 2024, USPS Web Tools shut down on January 25, 2026, and FedEx retired SOAP on June 1, 2026. New builds should assume REST, JSON, and OAuth 2.0.
  • Aggregators buy speed and direct carrier APIs buy control. One aggregator integration reaches dozens of carriers in weeks, while direct connections expose carrier-specific services but multiply engineering work.
  • Carrier APIs are usually free and the real cost is engineering. USPS, UPS, FedEx, and DHL do not charge for API access, so budget for build time, testing, and ongoing maintenance instead.
  • Accurate dimensions now drive accurate LTL rates. The NMFC shift to density-based classification in July 2025 means your API needs clean weight and dimension data or your quotes will not match your invoices.

Why You Can Trust FreightWaves Checkpoint

We evaluate ecommerce shipping and fulfillment platforms for online sellers, growing merchants, and operations teams, weighing factors like pricing, integrations, automation depth, and support quality.

Our in-house team regularly reviews and updates this content to ensure it remains accurate, current, and genuinely useful for merchants evaluating shipping and fulfillment software.

What Is a Freight Shipping API?

A freight shipping API is an application programming interface that lets your system and a carrier’s system exchange shipping data automatically. Your application sends a structured request with addresses, weights, dimensions, and service preferences. The carrier sends back rates, a booking confirmation, a label, or a tracking update.

The practical difference is where the work happens. Without an API, someone opens a carrier website, retypes shipment details, downloads a label, and copies a tracking number back into your order system. With an API, that entire sequence runs in the background in under a second.

Freight APIs matter most to teams that ship across more than one carrier or mode. If you tender LTL, parcel, and truckload freight, an API layer is what keeps rates comparable, documents consistent, and tracking events in one place. Teams comparing outsourced options can see how these integrations factor into provider selection in our guide to the best order fulfillment companies.

How Freight Shipping APIs Work

Nearly every modern freight API uses HTTPS, exchanges data in JSON, and authenticates with OAuth 2.0. Your system holds a client ID and secret, trades them for a short-lived access token, and includes that token with every request.

A complete shipment usually touches four or five endpoints in sequence.

  • Collect the shipment data: Your cart, TMS, or order management system gathers origin and destination addresses, handling unit dimensions, weight, freight class, and any accessorial needs such as liftgate or residential delivery.
  • Request rates: A rating endpoint returns priced service options from one or more carriers, typically with transit times attached so you can compare cost against speed.
  • Select a service: A person picks an option, or a business rule selects automatically based on cost, transit time, or carrier performance on that lane.
  • Book the shipment: A booking or tender endpoint confirms the load, schedules the pickup, and returns documents such as a bill of lading, a shipping label, and a PRO or tracking number.
  • Receive tracking events: A tracking endpoint or a webhook pushes pickup, in-transit, exception, and proof-of-delivery events back into your system and your customer notifications.

Webhooks are the piece teams most often skip. Polling a tracking endpoint every few minutes burns your rate limit and delays updates. A webhook lets the carrier push the event the moment it happens, which is why most carriers now cap polling aggressively. DHL, for example, grants new Shipment Tracking Unified API accounts 250 calls per day with a minimum of five seconds between calls, and treats higher limits as a case-by-case request.

Types of Freight APIs and Protocols

Freight APIs split along two lines: the protocol they speak and the job they do.

REST vs. SOAP

  • REST is the current standard: REST APIs are stateless and resource-based, exchange JSON over HTTPS, and authenticate with OAuth 2.0. Every major carrier now builds new capability here first.
  • SOAP is being retired: SOAP APIs use XML and rigid WSDL schemas. UPS required legacy XML and SOAP integrations to convert to REST by June 3, 2024, and FedEx completed its SOAP retirement on June 1, 2026.

API Categories by Function

  • Rating APIs: Return contract, negotiated, or spot pricing in real time so your system can compare carriers before tendering.
  • Booking and tender APIs: Confirm the shipment, schedule the pickup, and return the BOL, label, and PRO number in a single response.
  • Tracking APIs: Deliver milestone events, exceptions, and proof of delivery, either on request or pushed through webhooks.
  • Label and document APIs: Generate shipping labels, bills of lading, commercial invoices, customs paperwork, and return labels on demand.
  • Address validation APIs: Standardize and correct addresses before booking, which is the cheapest way to prevent reroute and correction fees.
  • Aggregator APIs: Provide one integration that reaches many carriers and modes, including parcel, LTL, truckload, ocean, and air.

The 2026 Carrier API Migration

If you are evaluating freight APIs in 2026, you are doing it in the middle of the largest carrier integration reset in years. Three of the four largest carriers retired their legacy platforms inside a two-year window, and integrations that were not migrated stopped returning rates, labels, and tracking data.

Carrier What Changed Effective Date Current Developer Portal
UPS Access-key authentication dropped for OAuth 2.0. Legacy XML, SOAP, and legacy JSON integrations required to convert to REST. June 3, 2024 developer.ups.com
USPS Web Tools API platform retired in full. Functional equivalents moved to the new USPS APIs with OAuth 2.0 and webhooks. Jan. 25, 2026 developers.usps.com
FedEx Legacy Web Services (SOAP) retired. All integrations moved to FedEx REST APIs with OAuth 2.0 token authentication. June 1, 2026 developer.fedex.com
DHL Single REST developer portal covering Express, eCommerce, Freight, Supply Chain, and Global Forwarding APIs. Ongoing developer.dhl.com

The USPS transition is the one most likely to still be causing problems. USPS confirms that the Web Tools platform was retired on January 25, 2026 and that service disruptions are underway, with functional equivalents listed in the USPS API catalog. If any part of your stack still calls a Web Tools endpoint, that call is failing now.

Pro tip: Before you scope a new integration, audit which carrier endpoints your current platform actually calls. Plenty of teams discovered a broken USPS connection through a plugin or a legacy ERP module they had forgotten about rather than through code they wrote. Our overview of operations and technology resources is a good starting point for that inventory.

Key Features To Look For

Feature lists from API vendors all look similar. These are the capabilities that change day-to-day work.

  • Multi-carrier rate shopping: One request should return priced options from every carrier you use, with transit times attached, so routing rules can weigh cost against service.
  • Webhook event delivery: Push notifications for pickup, exception, and delivery events avoid the polling limits carriers now enforce and keep customer updates near real time.
  • Document generation: Labels, bills of lading, commercial invoices, and customs forms should come back from the same booking call rather than a separate manual step.
  • Accessorial handling: Liftgate, residential, inside delivery, and appointment requirements need to be sent at rating time, not discovered on the invoice.
  • Address validation: Correcting a bad address before tendering costs nothing. Correcting it after pickup triggers a carrier correction fee on most LTL and parcel networks.
  • Sandbox and error handling: A usable test environment and human-readable error codes are the difference between a two-week build and a two-month one.
  • Transparent rate limits: Ask for documented request ceilings and a published status page before you build, because throttling is now the most common cause of production failures.

How Freight APIs Connect To Your Tech Stack

Freight APIs rarely stand alone. They plug into the system where your team already works, and the integration point determines what the API needs to do.

Transportation Management Systems

  • Rate shopping and tendering: Carrier or aggregator APIs power quoting, tendering, and dispatch inside the TMS so planners never leave the platform.
  • Mode selection: Live rates across LTL, truckload, and parcel let routing rules pick the mode automatically based on weight breaks and service requirements.
  • Freight audit: API-confirmed rates give the audit process a reliable baseline to match invoices against, which is how accessorial errors get caught.

Warehouse Management Systems

  • Label printing at pack-out: Label APIs generate the correct label and paperwork at the packing station, tied to the service already selected upstream.
  • Automated pickup requests: Closing a wave or assigning a dock door can trigger the carrier pickup call without a dispatcher making a phone call.
  • Receiving and returns: Advance ship notices and proof-of-delivery data flow back into the WMS to speed receiving and simplify return processing.

ERP Systems

  • Landed cost accuracy: Pulling real freight charges into the sales order means margin calculations reflect what shipping actually costs rather than a standing estimate.
  • Customer service visibility: Pushing tracking status into service screens cuts the volume of where-is-my-order calls your team fields.
  • Invoice reconciliation: Storing the API-quoted rate against the shipment record gives finance something concrete to dispute against.

Ecommerce Platforms and Marketplaces

  • Checkout rating: Live rates and delivery estimates at checkout prevent the surprise shipping costs that drive cart abandonment.
  • Multi-carrier fulfillment: Label creation across several carriers runs from one screen instead of separate carrier portals per order.
  • Post-purchase tracking: Tracking events posted to the storefront and to marketplace listings keep buyer expectations aligned with reality.

Aggregator APIs vs. Direct Carrier APIs

Both approaches work. The right answer depends on how many carriers you use, how much engineering capacity you have, and whether you need carrier-specific services that an aggregator may not expose.

Aggregator API Direct Carrier API
Integrations required One connection reaches many carriers and modes One connection per carrier
Typical time to launch Weeks Weeks per carrier, months for a full network
Ongoing cost Per label, per transaction, or tiered subscription Usually no API fee, higher internal engineering cost
Carrier feature access Limited to what the aggregator exposes Full access to carrier-specific services
Migration burden Aggregator absorbs carrier platform changes Your team rebuilds for every carrier retirement
Best fit Brands, marketplaces, and 3PLs that need broad coverage fast Enterprises with in-house engineering and a stable carrier mix

The migration burden row is worth weighing heavily right now. Teams running direct connections rebuilt for UPS in 2024, USPS in January 2026, and FedEx in June 2026. Teams on an aggregator absorbed those same changes as vendor updates. A hybrid model splits the difference by routing most volume through an aggregator and keeping direct connections only for strategic carriers.

Hi, I'm Michael Marshall from FreightWaves

Learn More Start Shipping

ShipStation centralizes order management, rate shopping, and label printing across every channel you sell on with ShipStation Intelligence, automating the busywork and one of the broadest carrier and integration networks in the industry behind it.

  • Automation that creates labels up to 15x faster

  • Broadest carrier & marketplace network in the category

  • Branded, self-service returns portal

  • 30-day free trial, no credit card required

What Does a Freight Shipping API Cost?

API access itself is usually the cheapest part. USPS states that customers who register and accept the terms of use can access USPS APIs at no charge, and UPS, FedEx, and DHL likewise do not charge for developer portal access. The real budget lines sit elsewhere.

  • Carrier API access: Generally free with an account in good standing. Registration, credential provisioning, and in some cases multifactor verification are required before production credentials are issued.
  • Aggregator platform fees: Typically charged per label, per transaction, or through tiered subscriptions. Model these against your monthly volume, because per-label pricing that looks cheap at 500 shipments changes character at 50,000.
  • Build and maintenance: Internal engineering time or a systems integrator. This is the dominant cost for direct carrier connections and the reason aggregators win on total cost for smaller teams.
  • Testing and certification: Some carriers require test shipments or formal approval before enabling production, which adds calendar time even when it adds no direct cost.
  • Migration reserve: Budget for at least one forced platform migration over a three-year horizon. The 2024 to 2026 carrier retirements make that a planning assumption rather than a worst case.

How To Implement a Freight Shipping API

Most failed integrations fail on data quality rather than code. Work through these steps in order.

  • Define one flow first: Pick a single use case such as LTL rating and label generation for one carrier. Proving one flow end to end surfaces data problems before they multiply across a network.
  • Obtain and secure credentials: Register on the carrier or aggregator portal, store client IDs and secrets in a vault rather than in code, and set a rotation schedule.
  • Build a canonical shipment model: Map addresses, commodities, freight class, accessorials, references, and units of measure once, in your own schema. Adding a second carrier then becomes configuration instead of a rebuild.
  • Fix your dimension data: The NMFC moved thousands of commodities from commodity-based to density-based classification on July 19, 2025, replacing the 11-tier scale with a 13-subprovision density scale. Accurate handling unit weight and dimensions are now what determine whether your quoted class matches your billed class.
  • Test edge cases in the sandbox: Validate bad addresses, oversized handling units, missing accessorials, expired tokens, and timeout responses. Happy-path testing is what produces production surprises.
  • Instrument before you launch: Log latency, error codes, and webhook delivery failures, and alert on spikes. You cannot troubleshoot a carrier rate limit you are not measuring.

Pro tip: Re-audit your NMFC classes before you finalize field mapping. The National Motor Freight Traffic Association followed Docket 2025-1 with Docket 2025-2, which took effect December 6, 2025, so a class you verified in mid-2025 may have moved again. Details are available from the NMFTA classification resource center.

Security and Compliance Requirements

Shipping data includes customer names, addresses, and sometimes payment references, which puts freight APIs inside the scope of your privacy program.

  • Authentication: Use OAuth 2.0 with scoped tokens and role-based access. Every major carrier has now standardized on it, and access-key models are gone.
  • Encryption: Require TLS 1.2 or higher in transit and encryption at rest for stored shipment and customer data.
  • Privacy alignment: Map your data flows against GDPR and CCPA where they apply, and mask personally identifiable information in application logs.
  • Vendor certifications: Ask aggregators for SOC 2 and ISO 27001 reports, plus PCI attestation if payment data touches the same environment.
  • Webhook hardening: Validate signatures on inbound webhooks, restrict source addresses where the carrier supports it, and make handlers idempotent so a retried event does not create a duplicate shipment.

Who Uses Freight Shipping APIs

  • Ecommerce brands: Live checkout rates, automated label creation, and pre-generated return labels. Routing rules send each order to the cheapest carrier that still hits the promised delivery date.
  • 3PLs and fulfillment providers: Multi-carrier shipping from every warehouse node, centralized tracking across all clients, and shipment data synced to billing so invoices reflect actual accessorials.
  • Freight forwarders and brokers: Ocean and air schedules combined with inland drayage and LTL in one workflow, plus automated house bills and commercial invoices generated from validated shipment data. Brokers sourcing capacity often pair these connections with the platforms covered in our guide to the best load boards for truckers.
  • Marketplaces: Integrated shipping tools and negotiated rates offered to sellers, with tracking events normalized across carriers so buyers see a consistent experience.
  • Brokers running digital matching: API connections feed the rate and capacity data behind automated load matching. Our breakdown of load matching vs. digital freight matching covers how those systems use the same integration layer.

Best Practices for Freight API Success

  • Start narrow and expand: Launch one carrier and one flow, measure exception rates for a full month, then add modes and geographies once the numbers hold.
  • Normalize data at the edge: Translate every carrier response into your canonical model at the integration boundary so downstream systems never see carrier-specific field names.
  • Design for failure: Implement retries with exponential backoff, queue requests when you approach a rate limit, and fall back to a secondary carrier rather than blocking the order.
  • Write exception playbooks: Document who fixes a bad address, who disputes a reclass, and who files a damage claim, then wire those paths into your ticketing system.
  • Subscribe to carrier change notices: Every major carrier publishes API change notifications. Subscribing is the cheapest possible insurance against the next forced migration.
  • Review lane performance quarterly: Compare quoted rates and transit times against actuals, then adjust routing rules and re-bid lanes based on what the data shows.

Our Take

Freight shipping APIs stopped being a competitive advantage and became table stakes somewhere between the UPS OAuth cutover in 2024 and the FedEx SOAP retirement in June 2026. If your team is still rekeying shipment data into carrier portals, the cost is not just labor. It is the correction fees, the missed rate comparisons, and the support tickets that come from customers who cannot see where their freight is.

For most teams shipping under roughly 50,000 parcels a month across several carriers, an aggregator is the faster and cheaper route, largely because the vendor absorbs carrier platform migrations on your behalf. Enterprises with in-house engineering and a stable carrier mix get more from direct connections. Whichever way you go, start with one flow, fix your dimension and address data first, and instrument everything before you scale.

Hi, I'm Michael Marshall from FreightWaves

Learn More Start Shipping

ShipStation centralizes order management, rate shopping, and label printing across every channel you sell on with ShipStation Intelligence, automating the busywork and one of the broadest carrier and integration networks in the industry behind it.

  • Automation that creates labels up to 15x faster

  • Broadest carrier & marketplace network in the category

  • Branded, self-service returns portal

  • 30-day free trial, no credit card required

FAQ

What is a freight shipping API in simple terms?

A freight shipping API is a connection that lets your software talk directly to a carrier’s software. Your system asks for a rate, a booking, a label, or a tracking update, and the carrier answers in a structured format your system can read. It removes the step where a person opens a carrier website and retypes shipment details.

Do I need a TMS to use a shipping API?

No. Many teams connect shipping APIs directly to an ecommerce platform, a WMS, an ERP, or a custom application. A TMS centralizes and optimizes those connections, which helps once you are running multiple carriers and modes, but it is not required for basic rating, label generation, or tracking.

Are carrier shipping APIs free?

Access to the major carrier APIs is generally free with an account in good standing. USPS states that registered customers who accept the terms of use can access USPS APIs at no charge, and UPS, FedEx, and DHL do not charge for developer portal access either. Your real costs are engineering time to build and maintain the integration, plus per-label or subscription fees if you use an aggregator instead of connecting directly.

What is the difference between REST and SOAP APIs?

REST APIs are stateless, exchange JSON over HTTPS, and authenticate with OAuth 2.0, which makes them faster to build against. SOAP APIs use XML with rigid WSDL schemas and older authentication models. The distinction matters less than it used to because the major carriers have retired SOAP. UPS required conversion to REST by June 3, 2024, and FedEx retired its legacy SOAP Web Services on June 1, 2026.

How long does a freight API integration take?

A single-carrier rating and label flow can launch in days or weeks. A multi-carrier, multi-mode program with custom routing rules, webhook handling, and exception workflows typically takes several months. The variable that moves the timeline most is data quality, specifically whether your system already captures accurate handling unit weights and dimensions.

What happened to the USPS Web Tools API?

USPS retired the Web Tools API platform on January 25, 2026, and confirms that service disruptions are underway for anyone still calling those endpoints. The Web Tools label APIs had already been retired earlier, on July 14, 2024. Functional equivalents are published in the USPS API catalog on the USPS developer portal, and the replacement platform uses OAuth 2.0 authentication and webhook push notifications.

Do freight shipping APIs replace EDI?

APIs are replacing EDI for many transactional use cases, particularly rating, booking, and tracking, because they return data in real time rather than in batches. EDI remains common for high-volume, established trading partner relationships and for document types where partners have standardized on it. Most large shippers run both, using APIs for real-time interactions and EDI where a partner requires it.

How do freight APIs improve customer experience?

APIs deliver accurate rates and delivery estimates at checkout, which reduces the surprise shipping costs that cause cart abandonment. After purchase, webhook-driven tracking events keep customers informed without anyone manually checking a carrier portal. The combination reduces where-is-my-order contacts and gives support teams the shipment status before the customer calls.

Mike Marshall
Mike Marshall is a senior contributor at FreightWaves with nearly a decade of focused experience in the trucking, car shipping, and moving industries. His work focuses on breaking down complex logistics topics into clear, practical guidance for consumers and industry professionals alike. Drawing on years of hands-on research and analysis at FreightWaves, Mike brings an insider’s perspective to every article, helping readers understand costs, processes, risks, and best practices across the transportation and relocation space.