Build a customs commercial invoice payload for a FedEx REST international shipment and attach it as an electronic trade document

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

Steps

  1. In the FedEx Ship API request body, populate 'customsClearanceDetail.commodities' with an array of line items: description, quantity, unitPrice, customsValue, countryOfManufacture, and harmonizedCode
  2. Set 'customsClearanceDetail.dutiesPayment.paymentType' to 'SENDER' (DDP) or 'RECIPIENT' (DAP) based on your trade terms; include accountNumber for sender-paid duties
  3. Set 'shippingDocumentSpecification.shippingDocumentTypes' to include 'COMMERCIAL_INVOICE' and 'ETD' to generate both a printable invoice and submit it electronically
  4. After shipment creation, use GET /ship/v1/shipments/{trackingNumber}/documents to retrieve the generated commercial invoice PDF URL for your records
  5. For high-value goods exceeding customs de minimis thresholds, include an accurate 'freightOnValue' and 'insuranceCharges' to ensure correct duty calculation

Known gotchas

Related routes

Generate a FedEx Electronic Trade Document (ETD) commercial invoice for an international shipment via the FedEx Ship REST API
developer.fedex.com · 5 steps · unrated
Build a customs declaration and commercial invoice payload for an international shipment label via carrier APIs
logistics/shipping · 6 steps · unrated
Generate a compliant commercial invoice for an international shipment programmatically, including required fields for customs clearance
logistics-general · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

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

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans