Skip to main content

Modify country-specific commodity codes on items

· One min read

You can now set a commodity code per destination country on an item, using country_attributes when you create or update an item.

{
"country_attributes": [
{ "country_code": "US", "customs_commodity_code": "29042020" },
{ "country_code": "CN", "customs_commodity_code": "29042040" },
{ "country_code": "NO", "customs_commodity_code": null }
]
}

On update, each entry adds or replaces the code for that country, and a blank or null customs_commodity_code removes it. Countries you leave out are not changed.

When a shipment is created from an order, the code for the receiver's country is used. If the item has none for that country, its global customs_commodity_code is used instead.