customs_docs /v1/customs-docs $0.50 / verified compile ($0 on 422)

Zero-Undervaluation Customs Invoice Compliance & Deterministic 422 Validation

Enforce strict truthful transaction-value declarations, reject zero-price commercial lines and vague gift descriptions, and produce SHA-256 verifiable invoice/packing-list pairs.

Published Deterministic Rule

Ship-Anything enforces strict zero-undervaluation compliance: unit_price > 0, quantity > 0, specific material/function descriptions, and exact arithmetic reconciliation. Requests attempting $0 commercial values or vague 'gift/sample' text are blocked at HTTP 422 ($0 billed).

Reference Data & Threshold Table

Compliance GuardrailBlocked Input PatternEnforced ActionBilling Status
Zero / Negative Unit Priceunit_price <= 0Blocked at HTTP 422$0 (zero_charge_invalid_input)
Vague Merchandise Text'parts', 'gift', 'sample', 'goods', 'misc'Blocked at HTTP 422$0 (zero_charge_invalid_input)
Invalid HS / ISO-2Non-6..10 digit HS or missing originBlocked at HTTP 422$0 (zero_charge_invalid_input)
Tamper-Evident ExportReconciled Invoice + Packing ListCanonical SHA-256 receiptVerified compile ($0.50)

Worked Numerical Before / After Example

Scenario: Automated ERP pipeline exports a line item with description 'misc parts' and unit_price 0.00 due to an unmapped SKU cost.

Before: Unvalidated PDF invoice reaches the freight forwarder, risking customs penalty notices under 19 U.S.C. 1592.

After: Ship-Anything's /v1/customs-docs catches both defects deterministically at HTTP 422 ($0 charged) before any shipping document is released.

Run Your Own Numbers Free in 5 Seconds

Zero registration needed · Flat prepaid packs ($29 / $99 / $249) · Zero percentage split · 0% commission on treg hub · $0 on HTTP 422.

Open Try-Now Calculator Read Markdown

Deterministic API & MCP Example

curl -fsSL -X POST "https://ship.fastmesh.dev/v1/customs-docs" \
  -H "Content-Type: application/json" \
  -d '{
  "invoice_number": "INV-2026-CLEAN-09",
  "incoterm": "FOB",
  "currency": "USD",
  "shipper": {
    "name": "Osaka Sensor Corp",
    "address": "2-4 Kita-ku, Osaka",
    "country_iso2": "JP"
  },
  "consignee": {
    "name": "Midwest Robotics Supply",
    "address": "1100 Industrial Pkwy, Chicago, IL",
    "country_iso2": "US"
  },
  "line_items": [
    {
      "sku": "OPT-SENS-44",
      "description": "Optical Proximity Sensor Module 24V DC",
      "hs_code": "8541499500",
      "origin_country_iso2": "JP",
      "quantity": 100,
      "unit_price": 18.75,
      "net_weight_kg": 8.0,
      "gross_weight_kg": 9.2
    }
  ]
}'

Frequently Asked Questions

Will Ship-Anything ever suggest lowering declared customs value to save duty?

Never. Ship-Anything strictly enforces truthful commercial value declaration and blocks zero-value or vague-description inputs at HTTP 422.

What output formats are returned on a valid customs compilation?

Every reconciled /v1/customs-docs call returns standalone printable HTML (Commercial Invoice + Packing List), structured JSON, CSV export, and a 64-char SHA-256 digest.

Related Guides