This article explains how to set a 10-digit HTS code automatically for orders imported from your connected store when the destination is the United States.
From July 24, 2026, U.S. Customs requires a 10-digit HTS (Harmonized Tariff Schedule) code for every product shipped to the United States. The 6- and 8-digit HS codes accepted previously are no longer valid for these shipments. Swotzy validates HTS codes on all shipments to the USA — you can only create a shipping label if every product in the shipment has a valid 10-digit code.
In Swotzy, both code types are set with the same action: Set HS code. To meet the US requirement, enter a 10-digit code and add a condition that limits the rule to shipments to the United States.
To set a code for shipments to other destinations, see How to Automatically Set an HS Code.
For how rules are structured and how rule priority works, see What Are Store Automation Rules?
Result
Once you've completed these steps:
- Products in imported orders with a United States delivery address receive a 10-digit HTS code automatically
- The rule appears in your store's Rules list, where you can reorder, duplicate, deactivate, or delete it
Before You Start
Make sure that:
- Your store is connected in Integrations > Stores
- You have read What Are Store Automation Rules?
- You have the 10-digit HTS code for your products
Steps
- Go to Integrations > Stores
- Click Manage on the store you want to configure
- In the Rules section, click Add order import rule under Order Import
- Select Set HS code from the action list — use the search field to find it
- Enter the 10-digit HTS code in the HS code field
- Click Add Condition
- Select Recipient country in the first dropdown
- Select is in the second dropdown
- Select United States of America in the third field
- Enter a name in Rule name (optional) to identify the rule in your list
- Leave Status set to Active
- Click Create Rule
The rule sets the same code on every product in orders shipped to the United States. If your products need different codes, create a separate rule for each and add a second condition that identifies the product — for example Item title, Item SKU, or Item HS code.
To match on more than one condition, click Add Condition again. All conditions must be true for the rule to apply.
Available operators depend on the field you select.
Rules run in order, and the first matching rule wins per group. To set different codes for different products, place your most specific rule first.
Need Assistance?
If you experience any issues while setting up your rule, our support team is here to help.
Contact us at support@swotzy.com
Add comment
Please sign in to leave a comment.