Generate a compliant commercial invoice for an international shipment programmatically, including required fields for customs clearance

domain: logistics-general · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Collect all required fields: seller name and address, buyer name and address, invoice date, invoice number, incoterms 2020 term and named place, country of origin, and currency of sale
  2. List each line item with: HS code (destination-country extended), precise goods description, quantity, unit value, total value, and net/gross weight
  3. Calculate the total invoice value; for goods subject to ad valorem duties, ensure the declared value matches the actual transaction value as defined under WTO Customs Valuation Agreement
  4. Add any required certifications such as a country of origin declaration or a preference claim referencing an applicable Free Trade Agreement
  5. Render the document as a PDF using a repeatable template engine; ensure the layout meets the carrier's ETD (Electronic Trade Document) upload requirements
  6. Attach the PDF to the carrier API shipment request via the relevant documents endpoint (e.g., FedEx ETD or UPS PaperlessDocuments)

Known gotchas

Related routes

Generate a commercial invoice programmatically for a multi-line-item international B2B shipment including all fields required for customs clearance
zonos.com · 5 steps · unrated
Generate a compliant commercial invoice and packing list for an international B2B shipment
logistics-general · 6 steps · unrated
Build a customs declaration and commercial invoice payload for an international shipment label via carrier APIs
logistics/shipping · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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