Prompt

How do I build international shipping support with customs forms and tracking?

Logistics & Supply Chain / Freight & Shipping1 observationLast seen Nov 4, 2026

Latest observation

Nov 4, 2026OpenAI APIWeb search: off

To build international shipping support with customs forms and tracking, you usually need to combine shipping rate/label generation, customs documentation, and tracking event ingestion into one flow.

1) Core pieces you need

A. Shipping carrier or aggregator integration

Use a carrier API directly or a shipping platform like:

  • UPS / FedEx / DHL / USPS direct APIs
  • Aggregators: EasyPost, Shippo, ShipEngine, AfterShip

These services typically provide:

  • Rate quotes
  • Label purchase
  • Customs form generation
  • Tracking numbers
  • Tracking webhooks

2) Data you must collect at checkout

For international shipments, collect more than domestic shipping info:

  • Recipient name
  • Full address
  • Country
  • Phone number and email
  • Shipping method
  • Contents details for customs:
    • Item description
    • Quantity
    • Unit value
    • Currency
    • HS code / tariff code if possible
    • Country of origin
    • Weight
    • SKU
    • Whether it’s a gift, sale, return, sample, etc.

3) Customs forms

International shipments often require customs paperwork such as:

  • Commercial invoice
  • CN22 / CN23 (depending on carrier/country/value)
  • Electronic customs data submission

What to implement

When creating a shipment, send the carrier:

  • Sender and recipient details
  • Package details
  • Customs items list
  • Declared value
  • Incoterms if needed
  • Export reason

The carrier or aggregator returns:

  • Customs form PDF or label with integrated customs info
  • Tracking number
  • Shipment status

4) Tracking support

Implement tracking in two parts:

A. Initial tracking creation

When the label is purchased, store:

  • Carrier
  • Tracking number
  • Shipment ID
  • Label URL
  • Customs docs URL

B. Live tracking updates

Use:

  • Webhook callbacks from carrier/aggregator
  • Or polling if webhooks aren’t available

Track common statuses:

  • Label created
  • In transit
  • Arrived at customs
  • Customs held
  • Out for delivery
  • Delivered
  • Exception / returned / lost

5) Customs clearance considerations

International shipping can fail if customs data is incomplete or inaccurate.

Make sure to:

  • Use accurate item descriptions
  • Avoid vague descriptions like “gift” or “merchandise”
  • Include values per item, not just total
  • Declare origin country
  • Respect restricted goods by destination country
  • Handle duties/taxes:
    • DDP: duties paid by sender
    • DDU/DAP: recipient pays duties on arrival

6) Suggested backend flow

A typical flow looks like this:

  1. Customer places order
  2. System validates international address
  3. System gathers customs item details
  4. Shipping API requests rates
  5. Customer selects shipping option
  6. Create shipment + label + customs docs
  7. Save tracking number and documents
  8. Send confirmation email
  9. Listen for tracking webhooks
  10. Update shipment status in your database/UI

7) Example API workflow

Conceptually:

POST /shipments
{
  "to_address": {
    "name": "Jane Doe",
    "street1": "123 Main St",
    "city": "Toronto",
    "state": "ON",
    "postal_code": "M5V 2T6",
    "country": "CA",
    "phone": "+14165551234"
  },
  "from_address": {
    "name": "Your Store",
    "street1": "500 Market St",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US",
    "phone": "+14155550000"
  },
  "parcels": [
    {
      "weight": 2.5,
      "length": 10,
      "width": 8,
      "height": 4
    }
  ],
  "customs_items": [
    {
      "description": "Cotton T-shirt",
      "quantity": 2,
      "value": 40.00,
      "currency": "USD",
      "origin_country": "US",
      "hs_code": "610910"
    }
  ],
  "options": {
    "incoterm": "DAP",
    "contents_type": "merchandise"
  }
}

Response:

{
  "shipment_id": "shp_123",
  "tracking_number": "1Z999...",
  "label_url": "https://...",
  "customs_forms": [
    "https://.../commercial_invoice.pdf"
  ]
}

8) Practical implementation tips

  • Validate destination-country requirements before creating shipment
  • Cache tracking data locally, don’t rely only on live carrier queries
  • Provide customer-facing tracking pages
  • Handle timezone differences in tracking events
  • Use webhooks for near real-time updates
  • Support multiple package shipments if needed
  • Keep a record of customs declarations for audits

9) If you want the easiest path

For most teams, the fastest route is:

  • Shippo or EasyPost for labels + customs + tracking
  • AfterShip for tracking UI and notifications if you want a stronger customer-facing tracking experience

10) Things to watch out for

  • HS code accuracy
  • Restricted/prohibited items
  • De minimis thresholds by country
  • VAT/GST rules
  • Return-to-sender scenarios
  • Duties/taxes handling at checkout

If you want, I can also give you:

  1. a step-by-step architecture diagram,
  2. a database schema for shipments/customs/tracking, or
  3. example code using a shipping API like EasyPost or Shippo.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.