Topic

Shipping & carrier APIs

FedEx, DHL, and Amazon Buy Shipping from an integrator's seat: consolidation, electronic trade documents, cross-border export, and the SOAP endpoints still running production.

5 guides, written from real builds.

Carrier integration is where a marketplace build stops being about data and starts being about physical objects. Every successful call books something real: a label that gets billed, a courier who turns up at a door, a customs declaration filed under your client's name. The tooling is a generation behind the marketplace APIs sitting beside it in the same codebase — SOAP envelopes, positional fields, responses that are not XML — and on the India export lane there is no sandbox at all, so the first genuine test is production.

The order this work happens in

Across the five guides below the same sequence keeps proving itself, ordered by how much damage a wrong call can do:

  • Rate quote first. It books nothing, which makes it the safe place to prove credentials, envelope construction and response parsing.
  • The single label. The headline integration, and the call that files real paperwork.
  • Documents. The commercial invoice and the customs fields that decide whether a shipment clears or sits.
  • Consolidation. Many parcels under one master airway bill instead of one shipment each.
  • Pickup. A label nobody collects is not an operation.

Which guide covers which part

Start with the label, because everything else on the India lane assumes it exists. What CSB-V is, and the four behaviours that defeat ordinary SOAP tooling covers the 142 positional fields, responses that come back as delimited strings rather than parseable XML, and the missing sandbox that makes your first successful call a real customs filing. Once that works, two smaller operations turn it into a daily process: a rate quote that books nothing and a pickup request that gets a courier to the door, with the conventions that apply across all of these SOAP calls.

Consolidation is the piece most teams assume they cannot automate, and on these two carriers they are wrong twice over. DHL India exposes mother-baby consolidation as a real SOAP operation — one master airway bill, many children, no desktop app and no manual data entry in the loop. On FedEx, the same capability is already inside the Ship API you call for single labels, as Open Ship, along with the four things the documentation glosses over.

Documents get their own guide because the API is the easy half. Electronic Trade Documents and the customs fields that actually cause holds covers what ETD replaces — the printed invoice in a plastic wallet — where it sits in the request, the four fields worth being pedantic about, and the cancel path, which matters the moment you automate label creation.

None of these came out of reading documentation for its own sake. Each is a lane built and run for a client, which is why they spend as much time on operating habits as on request shapes: keep the risky path behind a flag until you have seen a real response, and treat the first live call as the test, because on these lanes it is. The field names change with every carrier. Those habits don't.

DHL India CSB-V: The SOAP API That Returns a Delimited String

Shipping APIs

7 min read

DHL India CSB-V: The SOAP API That Returns a Delimited String

Integrating India's CSB-V commercial export lane means a SOAP service with 142 positional fields, no sandbox, and responses that are delimited strings rather than parseable XML. Here's what CSB-V actually is, the four things about this API that break normal SOAP tooling, and how to test an integration that has no test environment.

FedEx Open Ship: The Consolidation API Hiding in the Ship API

Shipping APIs

7 min read

FedEx Open Ship: The Consolidation API Hiding in the Ship API

Consolidating export parcels under one master shipment is often run by hand through a desktop tool, on the assumption that the shipping API can't do it. It can — FedEx's Ship API exposes it as Open Ship. Here's what Open Ship is, the request shape that actually works, and the four things about it the docs gloss over.

DHL's Hybrid API: Mother-Baby Consolidation That Actually Has an API

Shipping APIs

7 min read

DHL's Hybrid API: Mother-Baby Consolidation That Actually Has an API

Consolidating many parcels under one master airway bill is standard practice for export, and with most carriers it means a desktop app and manual data entry. DHL India exposes it as a real SOAP operation — one call carrying a General block, a Mother, and an array of Babies. Here's how the structure works, and the gate you should keep it behind until you've seen a live response.

FedEx ETD: Sending the Commercial Invoice with the Shipment, Not in a Pouch

Shipping APIs

8 min read

FedEx ETD: Sending the Commercial Invoice with the Shipment, Not in a Pouch

Electronic Trade Documents let you attach the commercial invoice to a FedEx shipment digitally instead of printing three copies into a plastic wallet. It also moves a class of customs delay from the warehouse into your code. Here's where ETD sits in the Ship API request, what customs actually needs from you, and the document fields that get shipments held.

DHL India: Booking Pickups and Getting Rate Quotes Over SOAP

Shipping APIs

6 min read

DHL India: Booking Pickups and Getting Rate Quotes Over SOAP

Once you can create a CSB-V label, two smaller operations turn it into a workable daily process: a rate quote that books nothing, and a pickup request that gets a courier to the door. Both are worth wiring early — the quote because it is the only safe way to exercise a live API, and the pickup because otherwise someone is on the phone every afternoon.

Need this built rather than researched?

Shahzeb Khan runs Databaaba, a one-person studio that builds shipping & carrier apis integrations for sellers, agencies, and software teams. Every guide here came out of a real client build.

WhatsApp