Skip to main content

HS Tariff Codes and Country of Origin

Instructions for updating the app permissions to enable inventory item related information in the templates

Written by Haris Spahovic

By default, our Commercial Invoice for Exports template includes the HS Tariff Code and Country of Origin information. However, you can also get these details shown in our other templates by inserting the below code into the template code:

{% if line_item.hs_tariff_code != blank %}
<p class="item-description-line">HS Tariff Code: {{ line_item.hs_tariff_code }}</p>
{% endif %}

{% if line_item.country_of_origin != blank %}
<p class="item-description-line">COO: {{ line_item.country_of_origin }}</p>
{% endif %}

Note: This is useful if you are using our Order Printer Pro app to generate the documents; the Shopify Order Printer app does not support these variables.

To streamline cross-border commerce, we have introduced properties to the line_item object that provide specific customs data. This ensures that packing slips, commercial invoices, and export documents contain the precise Harmonized System (HS) codes required by destination customs offices.

Customs & Origin Properties

These variables allow you to automate the filing of export documents by identifying exactly where a product originated and how it is classified globally.

Property

Type

Description

line_item.province_of_origin

String

The 2-letter state or province code where the item originated (e.g., "CA" or "NY").

line_item.country_hs_codes

Array

A collection of country-specific Harmonized System (HS) codes for the item.

Country HS Code Attributes

Because tariff classifications can vary slightly by destination, the country_hs_codes array provides a mapped list of codes specific to different regions.

  • country_code (String): The 2-letter ISO destination country code (e.g., "DE" for Germany).

  • harmonized_system_code (String): The specific tariff/HS code used for classification in that country (e.g., "6203.42").

Permission upgrade needed on some accounts for HS Tariff codes and Country of Origin

On some older Order Printer Pro accounts, the HS Tariff Code and Country of Origin information may not be displayed after adding those liquid variables.

To access this information, the app may need to upgrade its permissions so that it can access those details in your store. Upgrading permissions is both easy and safe to do; nothing will visibly change in your account or templates.

To upgrade the permissions for the app, please do the following:

  1. Login to Order Printer Pro

  2. Go to the Account tab

  3. If your account needs a permissions upgrade, you will see the section below and the button to upgrade.

Note: It must be the Shopify account owner who clicks the button to upgrade permissions. Once you have confirmed the upgrade, the changes are made instantly.

The reason this upgrade has to be made manually is so you can choose when it happens. We do not want to interrupt or break the app by forcing accounts to upgrade on login, as the person logging in or using the app day-to-day may not be the account owner.

Having difficulties getting this information into the template? No worries, get in touch with our support team, and we'll be glad to do it for you.

Did this answer your question?