DEMO · STABLE PARAMETERS
Use this exact request to see the 402 challenge, the payment terms, and the response shape. It is stable; automation can call it as a health and price probe.
GET https://hts.epi.me/v1/landed-cost?code=6109.10.00&value_usd=10000&freight_usd=500&insurance_usd=50&origin_country=CN Accept: application/json
A cotton t-shirt from China, $10,000 goods value, $500 freight, $50 insurance. The response includes MFN duty, Section 301, forced-labor 12.5%, MPF/HMF, and the total.
HTTP/2 402
PAYMENT-REQUIRED: <base64 challenge>
{
"x402Version": 2,
"resource": {"url": ".../v1/landed-cost", "description": "Landed cost for ..."},
"accepts": [
{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x8335...","payTo":"0x313e..."},
{"scheme":"exact","network":"solana:5eyk...","amount":"10000","asset":"EPjFWd...","payTo":"2Ui7..."}
],
"hints": {
"free_search": ".../v1/hts/search?q=...",
"free_calculator": ".../landed-cost-calculator",
"mcp": ".../mcp",
"pricing": ".../pricing",
"docs": ".../docs"
}
}
Retry with PAYMENT-SIGNATURE (v2) or
X-PAYMENT (v1). The body contains
landed_cost_usd, total_duty_usd, per-line components,
citations, preferences, quota, and
data_versions.
/v1/hts/search?q=cotton+t-shirt