Export Compliance
Description Guidance
POST
/v1/compliance/description-guidance$0.05 per callEvaluate commodity descriptions for customs compliance quality.
Send an Idempotency-Key header to retry safely.
Request body
| Field | Type | Description |
|---|---|---|
| commodityDescriptionrequired | string | max length 2000 |
| destinationCountryoptional | string | max length 3 |
| hsCodeoptional | string |
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | e.g. true |
| data | object | |
| data.id | string | e.g. dg_f525f46cb27771f5 |
| data.originalDescription | string | e.g. parts |
| data.destinationCountry | string | e.g. US |
| data.hsCode | null | |
| data.evaluation | object | |
| data.evaluation.score | number | e.g. 27 |
| data.evaluation.grade | string | e.g. F |
| data.evaluation.isAcceptable | boolean | e.g. false |
| data.evaluation.issues | array | |
| data.evaluation.suggestions | array | |
| data.evaluation.improvedDescription | string | e.g. [ADD: specific item name], parts, [ADD: material composition,… |
| data.customsRequirements | array | |
| data.customsRequirements[].country | string | e.g. US |
| data.customsRequirements[].requirement | string | e.g. Commodity description must clearly identify WHAT the item is,… |
| data.customsRequirements[].mandatory | boolean | e.g. true |
| data.evaluatedAt | string | e.g. 2026-11-04T09:01:09.565Z |
| meta | object | |
| meta.requestId | string | e.g. dg_f525f46cb27771f5 |
| meta.timestamp | string | e.g. 2026-11-04T09:01:09.565Z |
| meta.processingTimeMs | number | e.g. 1 |
| meta.dataSource | object | |
| meta.dataSource.name | string | e.g. ComplianceGrid |
| meta.dataSource.provenance | string | e.g. computed |
Fields are read from a real response captured 2026-11-04, shortened. Optional fields may be absent in other responses.
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.