curl https://api.goshippo.com/customs/items/ \
-H "Authorization: ShippoToken <API_TOKEN>" \
-d description="T-Shirt" \
-d quantity=2 \
-d net_weight="400" \
-d mass_unit="g" \
-d value_amount="20" \
-d value_currency="USD" \
-d tariff_number="" \
-d origin_country="US" \
-d metadata="Order ID '123123'"{
"description": "T-Shirt",
"mass_unit": "lb",
"net_weight": "5",
"origin_country": "<string>",
"quantity": 20,
"value_amount": "200",
"value_currency": "USD",
"eccn_ear99": "<string>",
"metadata": "Order ID \"123454\"",
"sku_code": "HM-123",
"hs_code": "0901.21",
"tariff_number": "<string>",
"object_created": "2014-07-17T00:49:20.631Z",
"object_id": "d799c2679e644279b59fe661ac8fa488",
"object_owner": "shippotle@shippo.com",
"object_state": "VALID",
"object_updated": "2014-07-17T00:49:20.631Z",
"test": true
}Creates a new customs item object.
curl https://api.goshippo.com/customs/items/ \
-H "Authorization: ShippoToken <API_TOKEN>" \
-d description="T-Shirt" \
-d quantity=2 \
-d net_weight="400" \
-d mass_unit="g" \
-d value_amount="20" \
-d value_currency="USD" \
-d tariff_number="" \
-d origin_country="US" \
-d metadata="Order ID '123123'"{
"description": "T-Shirt",
"mass_unit": "lb",
"net_weight": "5",
"origin_country": "<string>",
"quantity": 20,
"value_amount": "200",
"value_currency": "USD",
"eccn_ear99": "<string>",
"metadata": "Order ID \"123454\"",
"sku_code": "HM-123",
"hs_code": "0901.21",
"tariff_number": "<string>",
"object_created": "2014-07-17T00:49:20.631Z",
"object_id": "d799c2679e644279b59fe661ac8fa488",
"object_owner": "shippotle@shippo.com",
"object_state": "VALID",
"object_updated": "2014-07-17T00:49:20.631Z",
"test": true
}API key authentication using the ShippoToken scheme. Format: Authorization: ShippoToken <API_TOKEN> Example: Authorization: ShippoToken shippo_live_abc123
Optional string used to pick a non-default API version to use. See our API version guide.
"2018-02-08"
CustomsItem details.
Text description of your item.
"T-Shirt"
The unit used for weight.
g, kg, lb, oz "lb"
Total weight of this item, i.e. quantity * weight per item.
"5"
Country of origin of the item. Example: US or DE.
All accepted values can be found on the Official ISO Website.
Quantity of this item in the shipment you send. Must be greater than 0.
20
Total value of this item, i.e. quantity * value per item.
"200"
Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. USD or EUR.
"USD"
Export Control Classification Number, required on some exports from the United States.
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
"Order ID \"123454\""
SKU code of the item, which is required by some carriers.
"HM-123"
HS code of the item, which is required by some carriers. If tariff_number is not provided, hs_code will be used. If both hs_code and tariff_number are provided, tariff_number will be used. 50 character limit.
"0901.21"
The tariff number of the item. If tariff_number is not provided, hs_code will be used. If both hs_code and tariff_number are provided, tariff_number will be used. 12 character limit.
Customs item
Text description of your item.
"T-Shirt"
The unit used for weight.
g, kg, lb, oz "lb"
Total weight of this item, i.e. quantity * weight per item.
"5"
Country of origin of the item. Example: US or DE.
All accepted values can be found on the Official ISO Website.
Quantity of this item in the shipment you send. Must be greater than 0.
20
Total value of this item, i.e. quantity * value per item.
"200"
Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. USD or EUR.
"USD"
Export Control Classification Number, required on some exports from the United States.
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
"Order ID \"123454\""
SKU code of the item, which is required by some carriers.
"HM-123"
HS code of the item, which is required by some carriers. If tariff_number is not provided, hs_code will be used. If both hs_code and tariff_number are provided, tariff_number will be used. 50 character limit.
"0901.21"
The tariff number of the item. If tariff_number is not provided, hs_code will be used. If both hs_code and tariff_number are provided, tariff_number will be used. 12 character limit.
Date and time of object creation.
"2014-07-17T00:49:20.631Z"
Unique identifier of the given object.
"d799c2679e644279b59fe661ac8fa488"
Username of the user who created the object.
"shippotle@shippo.com"
Indicates the validity of the enclosing object
VALID, INVALID Date and time of last object update.
"2014-07-17T00:49:20.631Z"
Indicates whether the object has been created in test mode.
Was this page helpful?