Harmonized Code in Order API

Sstech
Shopify Partner
3 0 0

We want the details of “Harmonized Code” in the Order API but we are not receiving the details from Shopify.

We are not getting the "harmonized_system_code" in the "duties" object.

Can you please help us with this so that we can receive the Harmonized Code From Shopify API?

 

 

Replies 7 (7)

CalD
Shopify Staff
140 22 36

Hey @Sstech,

Can you provide the X-Request-Id from the response headers so we can troubleshoot further?

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Sstech
Shopify Partner
3 0 0

Hi,

Please find below header details.

User-Agent : Shopify-Captain-Hook
X-Shopify-Api-Version : 2019-04
X-Shopify-Hmac-Sha256 : w0YJbiZ+C7YaLLVeENCOq+tt5TR/1vlwAEO0FPQI4C0=
X-Shopify-Order-Id : 2388524269653
X-Shopify-Shop-Domain : omniparcel.myshopify.com
X-Shopify-Test : false
X-Shopify-Topic : orders/create

sohail4
Shopify Partner
8 0 0

Can we have some updates on this? We urgently need assistance on this.

We want the details of “Harmonized Code” in the Order API but we are not receiving the details from Shopify.

We are not getting the "harmonized_system_code" in the "duties" object.

Can you please help us with this so that we can receive the Harmonized Code From Shopify API?

 

Below are the details.

User-Agent : Shopify-Captain-Hook
X-Shopify-Api-Version : 2019-04
X-Shopify-Hmac-Sha256 : w0YJbiZ+C7YaLLVeENCOq+tt5TR/1vlwAEO0FPQI4C0=
X-Shopify-Order-Id : 2388524269653
X-Shopify-Shop-Domain : omniparcel.myshopify.com
X-Shopify-Test : false
X-Shopify-Topic : orders/create

CalD
Shopify Staff
140 22 36

Hey @sohail4

It looks like the products on that site don't have any HS codes associated with them, which is likely why you're not seeing a harmonized system code.

Further reading from https://help.shopify.com/en/manual/products/duties :

To show a duties estimate to international customers in your checkout, you need to edit your product details to include the country or region of origin and the HS code.

Keep in mind that the duty rate is calculated based on a number of factors, so they may not apply for certain combinations of HS codes/shipping destinations. 

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sohail4
Shopify Partner
8 0 0

Hi,

Thanks for the reply.

We have created one test shipment with HS code details.

The Id is "2687381864533".

sohail4_0-1599799743079.pngsohail4_1-1599799757871.png

Please find below the image of the request body. We are still not getting the Duties object in "Line_Items".

sohail4_2-1599799934780.png

sohail4_3-1599800036140.png

 

Thanks

 

sohail4
Shopify Partner
8 0 0

Hi Team,

Can we have some updates on this?

 

Thanks

CalD
Shopify Staff
140 22 36

Hey @sohail4,

Now that you've added the HS code to that product, it should be coming through the InventoryItem/InventoryLevel API as harmonized_system_code.

Shopify currently doesn't calculate duty estimates automatically for checkouts/orders, but you could use the above to show an estimate of the cost of duties for an order at checkout and calculating with a private app (or a third-party app from the Shopify app store that does the same), and then updating the order with the duties object with the calculated amount etc if needed.

We are aware of the benefits of this functionality if it were automatically calculated by Shopify, so I can log your feedback internally!

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog