From the outside, a multi-carrier shipping platform is a form: two addresses, a parcel, a column of prices from different carriers, a button that prints a label. That form takes days to prototype. The months go into what happens when a carrier is slow, a price is wrong, an address bounces, or a booking fails after the customer has already seen a quote.

So this article is organised by failure. It draws on ShipPLX, the platform we built for a Canadian multi-carrier courier reseller — a business that holds carrier accounts and sells shipping to other businesses on top of them. Every failure below is one the platform had to be designed against, and every fix described is in that system.

Comparing rates is the easy screen. The platform is everything that keeps the number on that screen true until the parcel arrives.

Four Stations and a Record Underneath

A courier platform moves each shipment through four stations — quote, book, pick up, track — over one record that remembers what was promised and what was paid. That makes it narrower than a transportation management system, which plans loads, tenders them to carriers and settles freight bills. The job here is different: make many carrier accounts behave like one desk.

LayerIts jobWhat ShipPLX uses
Carrier connectivityRate, book, fetch documents, schedule pickups, trackPurolator E-Ship integrated directly; a wider network (UPS, Canada Post, USPS, DHL and more) through one ShipEngine integration
Address servicesValidate and standardise before anything is bookedCanada Post AddressComplete
Pricing engineTurn a carrier's rate into this customer's pricePer-customer discount zones, markups, tiers and commission
Shipment workflowTake a shipper from addresses to a printed labelA four-step guided flow with saved drafts
Operator back officeCarrier accounts, customer pricing, content, staff rolesAn admin platform over the same data
Partner APIThe same operations, without the websiteREST endpoints described in OpenAPI and published with Redocly
Application stack—Laravel with Laravel Modules, MySQL, Vue.js with Element UI, SendGrid, Docker

The Price Was Stale Before Anyone Saw It

The first design decision is where prices come from. The traditional answer is a rate table: load the carrier's tariff into your database and compute prices locally. It is fast, and it is wrong the moment a carrier revises a surcharge or its fuel adjustment — which carriers do on their own schedule, not yours.

ApproachWhat it buysHow it fails
Local rate tablesFast quotes; no dependency on carrier uptimeSilently, as margin given away on every parcel until somebody reconciles a carrier invoice
Live rating at quote timeThe carrier's current price, surcharges includedLoudly, as latency or a missing carrier — which can at least be engineered around

ShipPLX keeps no rate tables. Every price is fetched from the carrier at the moment of quoting, with taxes, fuel and surcharges itemised and the expected delivery date shown beside it. Itemisation is not decoration either. The surcharge lines are exactly what a customer disputes later, and a quote that showed them is a dispute that never starts.

One Slow Carrier Sank the Whole Quote

Live rating means fan-out. One quote request becomes calls to several carrier accounts — in ShipPLX, several Purolator accounts plus the wider network — and any of them can be slow, down, or holding an expired credential. The naive build waits for all of them and fails if one fails. The platform treats each call as independent:

  • A failing account is logged and skipped. The quote returns whatever the healthy accounts produced; one bad credential never empties the results.
  • There is a second route. When the direct integration returns no rate, the aggregator's carrier network acts as a fallback, so the shipper still gets an offer.
  • The failure is recorded, not shown. A logged, skipped account is a support signal — a lapsed credential, a carrier incident — that staff can fix before anyone asks why a carrier vanished from the list.

Whatever your stack, give every carrier call its own timeout and decide in advance what a partial result looks like on screen. "Two of three carriers answered" is a valid quote. A spinner that never resolves is not.

The Customer Saw a Raw Carrier Rate

A reseller's product is the gap between the rate it pays and the price it charges, and every customer has negotiated something different. Before the platform, an operator checked rates across accounts and applied each customer's discount by hand. Now a per-customer pricing engine runs at quote time, and the customer only ever sees their agreed price.

The engine starts from a discount matched on the origin-to-destination postal-code pair — the pricing data holds 1,561 of those pairs — and layers the remaining terms on top:

Pricing termWhat it keys onWhy it is its own layer
Discount zoneThe origin-to-destination postal-code pairNegotiated rates are lane-specific; a single percentage per customer cannot express them
Fuel and special-handling discountsThe surcharge lines of the carrier rateSurcharges move independently of the base rate, so discounts on them must too
Per-carrier markupThe carrier and accountEach account costs the reseller something different
Price-band tiersWhere the price falls in configured bandsLets terms step with the price itself, independent of the lane
CommissionThe customer relationshipIts own term, so it can change without touching the discounts

Two further rules sit beside the arithmetic:

  • Carrier choice is per customer. The operator decides which carriers each customer sees at all — one may get Purolator and Canada Post, another only UPS.
  • Sub-accounts inherit. A sub-account takes the parent company's negotiated terms automatically, so a new user at an existing customer never sees list prices because somebody forgot to copy a discount.

If you build an engine like this, keep it a pure function of carrier rate, lane, customer and configuration, and pin its behaviour with a fixed set of worked examples agreed with whoever owns pricing. Pricing bugs do not throw errors; they produce plausible numbers.

Nobody Could Say What a Parcel Earned

Holding several accounts with the same carrier opens a quiet arbitrage: the platform can quote on one account and book on the cheapest. The customer sees a single price; the reseller keeps the difference. Done by hand, that difference was worked out manually, if at all.

  • Record both sides on every shipment. ShipPLX stores the price shown beside the cost paid, so margin is a fact on each record rather than a monthly estimate.
  • Make lanes queryable. Because both numbers sit on the shipment with its origin and destination, "where is our margin thin?" becomes a query rather than a spreadsheet project.
  • Never recompute history. Pricing configuration changes; the recorded price and cost for last month's parcels must not.

The Carrier Rejected the Address

Before the platform, addresses were re-typed for every shipment and frequently rejected by the carrier. An address rejected after booking costs a correction, a delay and an annoyed recipient. Rejected before booking, it costs nothing — so the platform refuses to move on until the destination has been validated and corrected against the carrier.

Prevention also means not re-typing. Customers keep separate ship-from and ship-to address books that remember phone and email, and fill themselves in when a known name is entered. For volume shippers, a bulk importer reads whatever columns a spreadsheet happens to have, lets the user map them to fields, validates every row against the carrier and shows the standardised match beside the original — with three choices per row:

  • Accept the standardised address.
  • Keep the original — because validators are sometimes wrong about rural routes and new streets, and a tool that forces its correction teaches people to stop using it.
  • Skip the row and deal with it later.

Weights, Pieces and Paperwork That Didn't Match

Carriers commonly bill in whole units and round up, so a platform that passes along a weight the carrier will not use is setting up a billing adjustment. ShipPLX accepts decimal weights from the shipper and rounds up to the next whole pound or kilo before sending — the shipper types the truth, the carrier receives what it would have billed anyway.

Packages can be multi-piece, and dangerous goods are flagged in the flow rather than discovered at the depot. International shipments are where paperwork failures concentrate, and a shipment to the US or beyond captures what carriers ask for:

Customs fieldWhy it is captured at entry
Harmonised (HS) codesClassification drives duty treatment and must be on the declaration
Country of manufactureRequired for origin and trade-agreement treatment
USMCA, FDA and textile flagsCertain goods need these declarations; leaving them off invites a hold at the border
Duties billed to sender, receiver or buyerDecides who is invoiced for duty, and who is surprised if it is wrong
CurrencyDeclared values are meaningless without it
Tax identifiers carriers requireCarriers will not complete the declaration without them

Customers save the products they ship often in a reusable customs catalogue — description, HS code, duty routing — and pull them in as customs lines. A product classified once, carefully, is a product nobody misclassifies at four o'clock on a Friday.

A Shipment Record With No Label Behind It

Here is the failure that corrupts data rather than annoying people. The shipper accepts a quote, the platform starts writing the shipment, then calls the carrier to book — and the carrier rejects it. If the half-written record survives, your system now claims a shipment the carrier never accepted, and every report downstream inherits the lie.

Flow of a booking: the shipper accepts a quote, a pending record is written, and the platform books with the carrier. If the carrier accepts, the record is promoted and the carrier's documents are pulled back; if it rejects, the record is discarded. A reconciler promotes records the carrier accepted when the process died before recording them.
Only a carrier-issued label promotes the record; rejections discard it and a reconciler covers crashes.

ShipPLX rolls the half-written shipment back when a booking is rejected, so the data never claims a label the carrier did not issue. There are two honest ways to build this, and each has a cost:

  1. Book inside a database transaction and commit only on carrier success. Simple, but a slow carrier call holds the transaction open for the duration.
  2. Write a pending record first, book, then promote or discard it — with a reconciler for the case where the carrier accepted but your process died before recording it. More moving parts, but nothing waits on the network while holding locks.

Two adjacent decisions belong here. The shipper's draft is saved as they work through the four steps, so an abandoned shipment can be resumed later rather than re-entered. And on booking the platform pulls back the carrier's genuine documents — bills of lading in thermal or laser format, customs and NAFTA paperwork, dangerous-goods declarations — instead of rendering look-alikes that a depot might not accept.

Three Pickup Requests for One Loading Dock

Pickups are their own lifecycle: scheduled, changed, cancelled. A shipper sending several parcels from the same address on the same day should not generate several pickup requests, so the platform reuses one pickup for all of them. It is a small rule that only matters on the busy days — which are precisely the days a duplicate request causes confusion at the shipper's front desk.

The Tracking Page Showed the Back Office

A shipment's timeline serves two readers. The customer wants delivery milestones; the operator needs notes like "called the depot, carrier says the scanner was down". Keeping two timelines guarantees they drift. ShipPLX keeps one, and every entry carries its own visibility flag — the customer sees the milestones, staff see everything, and nothing internal leaks through a shared tracking link.

The same thinking applies to what the platform sends. Staff can edit the emails that go out on sign-up and approval, and every outbound email is stored with its delivery status, giving a searchable record of what was sent to whom. When a customer says they never got the approval email, support answers from a record rather than a guess. The broader machinery of channels, retries and preferences is covered in our piece on notification systems at scale.

Partners Got Different Answers Than the Website

In a later phase the platform grew a public API so partners could rate, ship, track and schedule pickups without using the website. The tempting build is a separate API service with its own pricing logic. That is how partners end up with prices that disagree with the portal — and the disagreement surfaces as an invoice dispute.

  • One engine, two front doors. The API calls the same pricing and booking code as the web app, so partners get identical behaviour by construction.
  • Self-issued keys. Partners generate their own API keys; onboarding a programmatic shipper does not need an engineer.
  • Every call logged in full. Each request carries a correlation id and timing, and usage is charted. When a partner reports a wrong price, support replays the exact request instead of asking for screenshots.
  • Documentation generated from the contract. The endpoints are published as interactive documentation, so what partners read is what the server enforces.

Direct Integration or Aggregator: Both, on Purpose

ShipPLX runs two integration styles at once, and the reasoning generalises. Canadian domestic shipping is integrated directly with Purolator because the margin arbitrage across accounts, dangerous-goods handling and the real label documents all need that direct access. The wider carrier network comes through an aggregator for breadth.

Direct carrier integrationAggregator
Wins whenYou hold several accounts and need to choose between them, ship regulated goods, or need the carrier's own documentsYou need many carriers quickly and standard services are enough
You give upSpeed — each carrier is its own project, with its own failure modesControl over carrier-specific features, and a dependency between you and every carrier
MaintenanceGrows with every carrier you addMostly one integration to keep current

The honest cost of doing both is two integration styles to maintain. The benefit is control where the margin is made and reach everywhere else — a trade most resellers should make deliberately rather than discover.

Carrier Integrations: EDI vs API, and Where AI Helps

Every carrier connection is either EDI or an API, and the two fail differently. EDI, the ASC X12 messages for load tenders, shipment status and freight invoices, is how larger freight carriers trade documents: batched, mapped partner by partner, and dependable once each mapping has been tested. APIs are how parcel networks work: real-time rating, booking and labels, each carrier with its own vocabulary, rate limits and credentials. A rating-and-label platform like ShipPLX lives on APIs, because a quote that has to be live cannot wait for a batch; a freight operation tendering truckloads will usually need both.

Whichever channel you use, the integration produces the data AI is actually useful on:

  • Invoice and rate audit. Carrier invoices, whether EDI 210s or PDFs, are matched against the cost recorded at booking. A model reads the documents that do not arrive structured, explains each mismatch (a weight correction, an address-correction fee, a surcharge the quote never showed) and queues it for someone in finance to dispute or accept.
  • Exception triage. Tracking events, failed carrier calls and customer emails are grouped by shipment and cause, with a reply drafted, so support works a sorted queue rather than an inbox.

ShipPLX shows why the order matters. The platform shipped without a model, but it records price shown against cost paid on every shipment and logs every partner API call with a correlation id, which is exactly the evidence an audit or triage model needs. Adding one is LLM integration on records that already exist, not a rebuild, and nothing a model flags changes a price or pays an invoice without a person.

What the Platform Deliberately Leaves Out

ShipPLX quotes, books, labels and tracks. It produces the shipping documents, but it does not bill customers or collect money; invoicing happens in the business's existing accounting process. That is a scope line, not an oversight, and anyone planning a similar platform should draw theirs explicitly — in-platform billing is a second build, not a setting.

The platform also shipped without a model in it. What it did ship is the structured data a model would need, which makes each of these additions rather than rebuilds:

  • Customs lines drafted from the product. A model proposes the HS code and flags from a catalogue item's description; the shipper confirms before anything reaches a declaration.
  • Lane pricing read from the ledger. A model reading price shown against cost paid, per lane, flags thin margins or stale discounts — a suggestion to the person who owns pricing, never an automatic change.
  • Spreadsheet mapping proposed, not picked. The importer suggests the column mapping from headers and sample rows; the user confirms.

Sequencing a Courier Platform

If we were starting a platform like this again, this is the order we would recommend — each step proves something the next one depends on. The partner API came in a later phase on ShipPLX, and that ordering is worth copying.

  1. One carrier, end to end. Rate, book, real documents, and the rollback path for a rejected booking — before a second carrier exists.
  2. The pricing engine and its worked examples, signed off by whoever owns pricing.
  3. Address validation and address books, because rejected addresses are the most common avoidable failure.
  4. Fan-out across accounts and carriers, with isolation and a fallback route.
  5. Customs and dangerous goods, once domestic shipping is boring.
  6. The back office: carrier credentials, per-customer carriers and pricing, roles, email templates.
  7. Tracking with visibility flags, and a record of every message sent.
  8. The partner API on the same engine, with full call logging from the first request.

Effort scales with a handful of drivers more than with screen count:

DriverWhy it multiplies the work
Carriers and integration stylesEach direct carrier brings its own API, documents and failure modes
Pricing model depthLane discounts, surcharge discounts, tiers and commission each need configuration screens and tests
International scopeCustoms data, product catalogues and per-destination requirements
Regulated goodsDangerous-goods flows need carrier-specific declarations
Programmatic accessAn API adds keys, logging, documentation and a support burden of its own

Shipping software looks like a rates problem and turns out to be a correctness problem: the right price, the right address, a label that exists, a timeline that says only what it should. If you are scoping one for your own carrier accounts, our web application team can walk your quote-to-label flow with you — start the conversation here, or see our other logistics and supply chain projects first.

Frequently Asked Questions

What is a multi-carrier shipping platform?

A multi-carrier shipping platform makes many carrier accounts behave like one desk. Each shipment moves through four stations (quote, book, pick up and track) over one record that remembers what was promised and what was paid. It is narrower than a transportation management system, which plans loads, tenders them to carriers and settles freight bills. The hard part is keeping the quoted number true until the parcel arrives.

Should shipping rates come from rate tables or live carrier APIs?

Live rating at quote time is the safer choice. Local rate tables are fast, but they go wrong silently the moment a carrier revises a surcharge or fuel adjustment, giving away margin on every parcel until someone reconciles a carrier invoice. Live rating fails loudly, as latency or a missing carrier, which can be engineered around with per-carrier timeouts, partial results and a fallback route.

Should a shipping platform connect to carriers directly or through an aggregator?

Often both, on purpose. Direct integration wins when you hold several accounts with one carrier and need to choose between them, ship regulated goods, or need the carrier's own documents, but each carrier becomes its own project. An aggregator gives you many carriers quickly through mostly one integration, at the cost of control over carrier-specific features. The price of doing both is two integration styles to maintain.

What is the difference between EDI and API carrier integrations?

EDI, the ASC X12 messages for load tenders, shipment status and freight invoices, is how larger freight carriers trade documents: batched, mapped partner by partner, and dependable once each mapping is tested. APIs are how parcel networks work, with real-time rating, booking and labels, and each carrier has its own vocabulary, rate limits and credentials. A live-quote platform runs on APIs; a truckload freight operation usually needs both.

What happens if a carrier rejects a booking after the shipment record is created?

The half-written shipment must be rolled back, or your system will claim a label the carrier never issued and every downstream report inherits the error. Either book inside a database transaction and commit only on carrier success, accepting that a slow carrier holds it open, or write a pending record, book, then promote or discard it, with a reconciler for crashes between acceptance and recording.

Sources