Handle multi-piece shipments (MPS) in carrier APIs: group packages under a single shipment identifier and generate per-piece labels

domain: logistics/shipping · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Understand MPS structure: a multi-piece shipment groups multiple packages under one master tracking number (e.g., FedEx 'MasterTrackingNumber', UPS 'ShipmentIdentificationNumber') with individual tracking numbers per piece; carriers invoice the group together and may apply shipment-level discounts.
  2. For EasyPost and Shippo: include multiple objects in the 'parcels' array within a single shipment request; the API handles MPS grouping automatically and returns individual tracking numbers per parcel along with a shipment-level identifier.
  3. For UPS REST API: include multiple 'Package' objects in the 'Shipment.Package' array within a single shipment request; the response returns 'PackageResults' array with per-piece tracking numbers and label images.
  4. For FedEx REST API: use 'requestedPackageLineItems' array with multiple line items in a single Ship request; the response returns 'pieceResponses' with individual tracking numbers and labels for each piece.
  5. Download and print labels for each piece; each piece label contains its own barcode but references the master tracking number; all pieces in an MPS should be tendered to the carrier together.
  6. When tracking an MPS, the master tracking number provides a shipment-level status while individual piece tracking numbers provide per-package scan events; decide which granularity your system requires.

Known gotchas

Related routes

Create a multi-piece UPS shipment with multiple packages under one shipment identifier
ups.com · 5 steps · unrated
Generate a multi-carrier return shipping label through a unified parcel API to support a consumer returns program
easypost.com · 5 steps · unrated
Create shipments and purchase labels in ShipStation via the ShipStation API
shipstation.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp