UPS Interactive Description Guidance Virtual Sandbox
Guide international shippers through commodity classification to determine accurate HTS codes.
The Interactive Commodity Description API assists international shippers by providing a series of multiple-choice questions to improve commodity descriptions. This process helps map items to destination-specific Harmonized Tariff Schedule (HTS) codes, facilitating smoother customs clearance, reducing holds, and ensuring accurate assessment of duties and taxes.
Use cases:
Use this sandbox to validate the interactive question-and-answer workflow, verify the mapping of natural language descriptions to HTS codes, test session management for multi-step classification, and handle feedback submission flows for customs compliance logic.
Interactive Description(3 operations)
| Header Name | Example |
|---|---|
transId* | "comm" |
transactionSrc* | "laboris anim tempor" |
{
"commodityCountryOfOrigin": "DE",
"commodityCurrencyCode": "KGS",
"commodityDescription": "Electronic Parts",
"commodityHtsCode": "7323",
"commodityQuantity": "10",
"commodityUnitOfMeasure": "pcs",
"commodityValue": "50.50",
"exportCountryCode": "VN",
"importCountryCode": "US",
"locale": "de_DE",
"shipperAccountNumber": "9TU4AKPUE8",
"shipperName": "Collins - Bauch"
}{
"actualHts": "701337",
"confidence": 0.63,
"newProductDescription": "Water bottles made of stainless steel for travel",
"noMoreQuestions": false,
"questions": [
{
"assumed": false,
"id": "ffbb9aa4-1dc0-460b-a4ed-13961bb29fda",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "What is the intended use?",
"selected": 1,
"type": "multiple_choice"
},
{
"assumed": false,
"id": "33a2c952-1932-4898-a963-2f90b9cd6e1f",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "What is the intended use?",
"selected": 2,
"type": "multiple_choice"
},
{
"assumed": true,
"id": "6d7b6b64-5575-47e8-bfb6-9c56608b3913",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "Is it collapsible?",
"selected": 5,
"type": "multiple_choice"
},
{
"assumed": false,
"id": "28eb9d9a-7e9b-46b2-9d95-71a628fd6eab",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "What is the intended use?",
"selected": 0,
"type": "multiple_choice"
}
],
"session": {
"historyDesc": [
{
"assumed": false,
"id": "24680d57-1824-4b12-b061-37929474addb",
"selected": 1
},
{
"assumed": false,
"id": "996b99e7-0c7b-41d4-b8cd-1e7c731a8a98",
"selected": 4
}
],
"id": "2d43502a-bba7-4d3e-84db-03c5759d5ff0"
},
"suggestedHts": "39233090"
}{
"response": {
"errors": [
{
"code": "4000",
"message": "Invalid input provided"
}
]
}
}{
"response": {
"errors": [
{
"code": "UJ0001",
"message": "Invalid token or token is not present"
}
]
}
}{
"response": {
"errors": [
{
"code": "4015",
"message": "Unsupported Media Type"
}
]
}
}{
"response": {
"errors": [
{
"code": "4022",
"message": "Unprocessable Entity"
}
]
}
}{
"response": {
"errors": [
{
"code": "5000",
"message": "Internal Server Error"
}
]
}
}| Header Name | Example |
|---|---|
transId* | "cillum esse" |
transactionSrc* | "minim do occaecat" |
{
"questions": [
{
"id": "3982378f-db10-4983-9ba1-5db3854aee60",
"selected": 0
},
{
"id": "7f8a8ce5-a420-403f-8f92-3a5528ca5280",
"selected": 1
},
{
"id": "076f263e-2887-4c91-bb39-09c65496f07d",
"selected": 4
},
{
"id": "2692a749-2ccc-419e-9128-f6c4c63f9090",
"selected": 4
},
{
"id": "9d2ed58c-6a54-430d-9265-a6770e1d20af",
"selected": 2
}
]
}{
"actualHts": "010121",
"confidence": 0.97,
"newProductDescription": "Plastic water storage containers",
"noMoreQuestions": true,
"questions": [
{
"assumed": false,
"id": "f84ef6fa-5db7-471a-a71e-4f75bcc83a8b",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "What is the capacity?",
"selected": 5,
"type": "multiple_choice"
},
{
"assumed": true,
"id": "602a8c2a-dff0-4006-a815-40806bfd217e",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "Is this item for food contact?",
"selected": 0,
"type": "multiple_choice"
},
{
"assumed": true,
"id": "65ab22d6-cf2c-44c7-90b3-00f8623b7afc",
"options": [
"For decorative purposes",
"For storing or drinking water"
],
"other": [
"PET",
"PPT"
],
"question": "Is it collapsible?",
"selected": 3,
"type": "multiple_choice"
}
],
"session": {
"historyDesc": [
{
"assumed": false,
"id": "3461142f-d18d-4f32-b090-6992f547b88d",
"selected": 1
},
{
"assumed": false,
"id": "f170c2c7-9b7d-4394-add1-1ff3c45e9c5f",
"selected": 5
},
{
"assumed": true,
"id": "b00c5dbe-19aa-4940-8316-5e03e6d18496",
"selected": 1
},
{
"assumed": false,
"id": "0a1fef94-8eac-4f76-bd1d-1a31a5f7e088",
"selected": 4
},
{
"assumed": false,
"id": "7d8293e6-281e-4b33-a6d2-1642b5403fc5",
"selected": 1
}
],
"id": "4b367bef-d501-41bc-b776-43ed3758d663"
},
"suggestedHts": "39233090"
}{
"response": {
"errors": [
{
"code": "4000",
"message": "Invalid input provided"
}
]
}
}{
"response": {
"errors": [
{
"code": "UJ0001",
"message": "Invalid token or token is not present"
}
]
}
}{
"response": {
"errors": [
{
"code": "4015",
"message": "Unsupported Media Type"
}
]
}
}{
"response": {
"errors": [
{
"code": "4022",
"message": "Unprocessable Entity"
}
]
}
}{
"response": {
"errors": [
{
"code": "5000",
"message": "Internal Server Error"
}
]
}
}{
"feedback": "The question was unclear",
"id": "134a6f19-d18e-4c55-8cbd-eaf6a263a2b0",
"sentiment": true
}Missing schema or example in the OpenAPI spec.
Update the definition and recreate the mock server.{
"response": {
"errors": [
{
"code": "4000",
"message": "Invalid input provided"
}
]
}
}{
"response": {
"errors": [
{
"code": "UJ0001",
"message": "Invalid token or token is not present"
}
]
}
}{
"response": {
"errors": [
{
"code": "4015",
"message": "Unsupported Media Type"
}
]
}
}{
"response": {
"errors": [
{
"code": "4022",
"message": "Unprocessable Entity"
}
]
}
}{
"response": {
"errors": [
{
"code": "5000",
"message": "Internal Server Error"
}
]
}
}