US HTS Tariff Stacking (Bulk)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{hts_code: '6109100040', origin_country: 'CN', ref: 'item-1'},
{hts_code: '7208510000', origin_country: 'CN', ref: 'item-2'}
])
};
fetch('https://api.traddal.com/v1/us/hts/stacking/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.traddal.com/v1/us/hts/stacking/bulk"
payload = [
{
"hts_code": "6109100040",
"origin_country": "CN",
"ref": "item-1"
},
{
"hts_code": "7208510000",
"origin_country": "CN",
"ref": "item-2"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.traddal.com/v1/us/hts/stacking/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'hts_code' => '6109100040',
'origin_country' => 'CN',
'ref' => 'item-1'
],
[
'hts_code' => '7208510000',
'origin_country' => 'CN',
'ref' => 'item-2'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.traddal.com/v1/us/hts/stacking/bulk"
payload := strings.NewReader("[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.traddal.com/v1/us/hts/stacking/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.traddal.com/v1/us/hts/stacking/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]"
response = http.request(request)
puts response.read_bodycurl --request POST \
--url https://api.traddal.com/v1/us/hts/stacking/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"hts_code": "6109100040",
"origin_country": "CN",
"ref": "item-1"
},
{
"hts_code": "7208510000",
"origin_country": "CN",
"ref": "item-2"
}
]
'{
"success": true,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"results": [
{
"index": 0,
"ref": "item-1",
"success": true,
"hts_code": "6109100040",
"origin_country": "CN",
"destination_country": "US",
"tariffs": [
{
"name": "<string>",
"rate": "<string>",
"type": "<string>",
"code": "<string>",
"exclusion_code": "<string>",
"exclusion_name": "<string>"
}
],
"additional_tariff_measures": [
{
"code": "<string>",
"name": "<string>",
"description": "<string>",
"agency": "<string>",
"measure_type": "<string>"
}
],
"message": "Invalid hts_code"
}
]
}{
"success": false,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"error": "invalid_request",
"message": "Invalid request parameters"
}{
"success": false,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"error": "invalid_request",
"message": "Invalid request parameters"
}Tariff Stacking
US HTS Tariff Stacking (Bulk)
Process up to 500 HTS code / origin country pairs in a single request.
Each item is processed independently — failed items return an inline error without failing the whole request.
Optional per-item field: ref — an arbitrary string or number you supply to correlate results back to your own records.
POST
/
v1
/
us
/
hts
/
stacking
/
bulk
US HTS Tariff Stacking (Bulk)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{hts_code: '6109100040', origin_country: 'CN', ref: 'item-1'},
{hts_code: '7208510000', origin_country: 'CN', ref: 'item-2'}
])
};
fetch('https://api.traddal.com/v1/us/hts/stacking/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.traddal.com/v1/us/hts/stacking/bulk"
payload = [
{
"hts_code": "6109100040",
"origin_country": "CN",
"ref": "item-1"
},
{
"hts_code": "7208510000",
"origin_country": "CN",
"ref": "item-2"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.traddal.com/v1/us/hts/stacking/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'hts_code' => '6109100040',
'origin_country' => 'CN',
'ref' => 'item-1'
],
[
'hts_code' => '7208510000',
'origin_country' => 'CN',
'ref' => 'item-2'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.traddal.com/v1/us/hts/stacking/bulk"
payload := strings.NewReader("[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.traddal.com/v1/us/hts/stacking/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.traddal.com/v1/us/hts/stacking/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"hts_code\": \"6109100040\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-1\"\n },\n {\n \"hts_code\": \"7208510000\",\n \"origin_country\": \"CN\",\n \"ref\": \"item-2\"\n }\n]"
response = http.request(request)
puts response.read_bodycurl --request POST \
--url https://api.traddal.com/v1/us/hts/stacking/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"hts_code": "6109100040",
"origin_country": "CN",
"ref": "item-1"
},
{
"hts_code": "7208510000",
"origin_country": "CN",
"ref": "item-2"
}
]
'{
"success": true,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"results": [
{
"index": 0,
"ref": "item-1",
"success": true,
"hts_code": "6109100040",
"origin_country": "CN",
"destination_country": "US",
"tariffs": [
{
"name": "<string>",
"rate": "<string>",
"type": "<string>",
"code": "<string>",
"exclusion_code": "<string>",
"exclusion_name": "<string>"
}
],
"additional_tariff_measures": [
{
"code": "<string>",
"name": "<string>",
"description": "<string>",
"agency": "<string>",
"measure_type": "<string>"
}
],
"message": "Invalid hts_code"
}
]
}{
"success": false,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"error": "invalid_request",
"message": "Invalid request parameters"
}{
"success": false,
"request_id": "c6f398bb-1dad-40e8-a991-a22a180ad842",
"error": "invalid_request",
"message": "Invalid request parameters"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Maximum array length:
500US HTS code (2–10 digits)
Example:
"6109100040"
2-letter ISO origin country code
Example:
"CN"
Optional caller-supplied reference for correlating results
Example:
"item-001"
Date of entry (YYYY-MM-DD). Defaults to today if omitted.
Example:
"2025-04-01"