Integrate the Flexport API to track ocean freight milestones, retrieve commercial invoice data, and automate customs document retrieval for inbound shipments

domain: api.flexport.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with the Flexport API using OAuth 2.0 and retrieve the list of active shipments via the Shipments index endpoint, filtering by transportation mode (ocean) and status
  2. Poll or subscribe to shipment milestone events (vessel departure, vessel arrival, customs cleared, available for pickup) using the Flexport webhooks or the shipment details endpoint
  3. Retrieve the commercial invoice, packing list, and bill of lading documents for each shipment via the Documents endpoint, specifying the document type filter
  4. Parse the customs entry data from the Flexport Customs Entries endpoint to extract the entry number, HTS classifications, duty paid, and liquidation date for your import compliance records
  5. Use the Flexport Products API to maintain a catalog of your imported products with pre-classified HTS numbers that auto-populate on new shipments

Known gotchas

Related routes

Integrate with a freight forwarder's digital platform API to automate shipment booking, document exchange, and status tracking
logistics-general · 6 steps · unrated
Integrate with a customs broker's API to automate document submission and entry status retrieval for import shipments
logistics-general · 6 steps · unrated
Track ocean container milestones via carrier and terminal APIs and handle milestone code variance
logistics-general · 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