› compliance_grid.aiCOMPLIANCEGRIDGOV · COMPLIANCE · INTELLIGENCE
Tariff Calculator

Smart Calculate (AI)

POST/v1/tariffs/calculate/smart$0.05 per call

AI-enhanced tariff calculation with plain-English compliance advisory, risk factors, and sourcing insights.

Send an Idempotency-Key header to retry safely.

Request body

FieldTypeDescription
htsCoderequiredstring10-digit HTS code
countryOfOriginrequiredstringISO-2 country code
declaredValuerequirednumberDeclared value in USD
entryDaterequiredstringEntry date (YYYY-MM-DD), defaults to today Required: which tariff authorities apply, and the fee limits, depend on the entry date. format date
dateOfLoadingoptionalstringformat date
modeOfTransportoptionalstringAffects HMF calculation (ocean only) one of "OCEAN", "AIR", "GROUND"
quantityoptionalnumber
quantityUnitoptionalstring
steelContentPctoptionalnumberSteel content percentage for Section 232
aluminumContentPctoptionalnumberAluminum content percentage for Section 232
ftaClaimoptionalstringFTA SPI indicator (e.g. S for USMCA)

Response fields

The spec does not describe this response yet, and there is no captured example. Run the request with your sandbox key to see its shape.

Errors

  • 400 invalid request
  • 401 missing or bad key
  • 403 not in your plan
  • 429 rate limited, see Retry-After
  • 402 payment required
  • 5xx retry with backoff

Error bodies and codes are described in Error codes and troubleshooting.