I see that on a product variant's page there's a field for the HS Tariff Code. Is there a way to retrieve that code through the Product API? I didn't find anything in the API reference, but maybe I missed it.
Thank you for your response!
I am working on a fulfillment service (bluedrone.com) that integrates with multiple ecommerce platforms. We use your API and webhooks to allow (both) our users to import the products and orders from Shopify into our system, where we take care of the shipping. For international orders, the users have to manually enter the HTS code into our system, even if it was already set in Shopify, which some of them complained about. Being able to retrieve that field through your API would further automate the process.
I think this will help both our services by providing a better integration. Hopefully, it will convince the API team to expose the HTS code for both Products and Order line items.
That works, which is great, although I think it would be better to add the tariff codes in the order's line_items, since for fulfilling the orders you need all the tarif codes for every line item, which now means if an order has 6 different products, I will need to fetch the metafields 6 times to get the tariff code.. then if you get hundreds of orders, shopify gets thousands of extra requests, it doesn't sound too efficiënt.
I also would like to see tarif codes in the order information when fetching from Order API the order information. Helps to reduce traffic to the API and also make things work faster in the application side.
We need this field in the Variant too, we have a reporting system that will benefit from lowering the calls to the API.
Just found out this field is also now available via the InventoryItem resource plus the "Country of Origin" and other related fields as well: https://developers.shopify.com/changelog/the-inventoryitem-resource-now-includes-hs-codes-country-co...
Would be nice to have them in the Variant resource as well to reduce the API calls, but this is still better than having to make a call to the Metafields endpoint per variant as with the InventoryItem endpoint we can at least specify 100 ids per request. :)