Tariff Code Classification

Version v2
Classifications
CreateHSClassificationRequest
GetHSClassification
HSCodeValidationRequest
HSCodeVerificationRequest
NomenclatureChangeWebhook
WebhookCallback

ClassificationModifiers

Parameters
brokerOptional
boolean
mtccPlusOptional
boolean
reclassifyOptional
boolean
verifyOptional
boolean
autoSubmitOptional
boolean

Verify only. When true, a COD whose providedHsCode fails verification is auto-submitted for classification (this sub-path persists). Default false.

autoPerformanceOptional
string

Speed / accuracy trade-off for automatic classification (autoPro, autoEssentials). Rejected for managed (422 MANAGED_AUTO_PERFORMANCE). When omitted, the account's default automatic classification is used.

  • standard - the fastest automatic prediction.
  • enhancedQuick - AI-model classification tuned for lower latency.
  • enhancedPrecise - AI-model classification tuned for higher accuracy; slower.

The two enhanced modes need an LLM-enabled Auto HS subscription; without one the request is rejected with 422 AUTO_PERFORMANCE_NOT_ENTITLED. On an AutoHS Pro account an enhanced HS classification returns pending and completes asynchronously - read the result with GET or the webhook.

Enum: standard, enhancedQuick, enhancedPrecise
priorityOptional
integer
includeJustificationOptional
boolean

Return a natural-language justification for each classification as items[].classifications[].justification.

autoPro always requests a justification regardless of this flag; every other classification type requests one only when this is explicitly true. Accepted on managed too - a managed request can still be auto-classified downstream by the workflow engine, which routes to ICP.

Note a synchronous managed response is pending, so no justification can appear on it; the create response carries one only where the classification was produced synchronously by a tier whose classifier can return it.

The justification is LLM-generated, so enabling it adds latency to every prediction. It is persisted once produced, so it is also returned on a later GET of the same classification - including for classifications completed asynchronously.

dataQualityOptional
boolean

Requests the Data Quality evaluation for the request's items. Data Quality is returned only for items classified automatically by the AI model.