Streamline your shipping processes with the Compliance Hub, which helps you manage HS codes, Country of Origin (COO) information, unit costs (for Swap Clear / B2B2C brands), manufacturer details, and custom descriptions in one location. The Compliance Hub ensures your shipping and customs details are up to date and synced with your store, helping you stay compliant and operationally efficient.
⚠️ The Compliance Hub is only accessible to Admin users.
When You First Open Compliance Hub
When you open Compliance Hub for the first time, the system automatically pulls all active products from Shopify into the dashboard. At this stage, compliance data has not yet been evaluated, so the scores will initially show 0% or blank values across all categories (HS Code, Country of Origin, Unit Cost, and Manufacturer ID). This is expected behaviour.
Run a Health Check to begin evaluating your compliance data.
Running a Health Check
The first step in Compliance Hub is to run a Health Check. You will find the Run Health Check button in the top-right corner of the page.
When you click Run Health Check, the system will:
Compile your Shopify product data
Compare it with your latest compliance records
Calculate your overall compliance score
The Health Check evaluates how many products are compliant and how many require fixes. This process takes a few seconds to a few minutes, depending on the size of your catalogue. Once complete, compliance score cards will appear at the top of the page.
While a health check is running, other actions are paused to ensure accurate results.
Compliance Score Cards
After running a Health Check, you will see score cards for:
HS Code
Country of Origin
Unit Cost (Swap Clear / B2B2C brands only)
Manufacturer ID
Each card shows two sections:
Compliant: products that already have valid data.
Action Required: products that are missing required information.
Clicking Action Required filters the product table to show only the items that need attention.
A note on Shopify fields
HS Code, Country of Origin, and Unit Cost correspond to native fields in Shopify at the variant level. Manufacturer Details, MID Code, and Custom Description do not have native Shopify fields. To support these attributes, standardised metafields have been set up for all brands. Use the provided metafields rather than creating custom fields to ensure consistency and correct data mapping.
HS Codes
HS Codes are required to classify products for international trade and duty calculations. Compliance Hub helps you identify and fix missing or incorrect HS Codes across your catalogue.
Fixing HS Codes
Click Fix HS Codes. The system identifies products where an HS Code is missing or requires correction and automatically retrieves the correct six-digit codes. When you click Sync Fixes to Store, the codes are synced directly to Shopify.
Important: Once synced, HS Codes cannot be reverted automatically.
The "Fix Required" indicator
Sometimes a product already has an HS Code, but the system identifies it as incorrect. In this case, you will see a Fix Required icon next to the product. Hover over the icon to see the suggested replacement code before applying the fix. The suggested classifications are typically more detailed and accurate than manually assigned codes.
6-digit and 10-digit HS Codes
We recommend maintaining 6-digit HS Codes in your catalogue, as the final digits are evaluated at checkout based on the destination country.
If a product in your Shopify catalogue already has a 10-digit HS Code (HTS code), Compliance Hub compares only the first six digits:
First six digits match: the system accepts the existing code and does not suggest a fix.
First six digits do not match: a Fix Required icon appears, and if you apply the fix, the recommended code replaces the existing one at 6 digits.
How HS Codes work at checkout
At order time, the system retrieves the HS Code assigned in Shopify (6 or 10 digits) and produces a destination-specific 10-digit code:
If a 6-digit code is provided, it is expanded to 10 digits based on the destination country.
If a 10-digit code is provided, the first 6 digits are retained and only the last 4 are adjusted based on the destination country.
If no HS Code is present in the catalogue, a full classification is performed automatically.
The final 10-digit code is used for order documentation and passed to carrier APIs. This code must match the duty calculation to prevent customs clearance issues.
Country of Origin (COO)
Country of Origin determines which duty rate applies to a product, so every product should have accurate COO data. Unlike HS Codes, COO cannot be determined automatically and must be provided by you.
Updating Country of Origin
Click Update Country of Origin.
Download the CSV template. The template includes columns for Product ID, Product Title, and Country of Origin.
Add COO values for each product.
Upload the completed file.
If the CSV contains rows where COO is missing, the system will return an error. This prevents accidentally overwriting existing COO data with blank values.
Once uploaded successfully, the COO updates in both Compliance Hub and your Shopify variant data, and your compliance score updates automatically. You can download an updated CSV at any time to review your current COO data.
Unit Cost
Unit Cost indicates the cost per unit of each product and must be provided by you, as the system cannot automatically determine product cost.
Unit Cost is only relevant for brands using Swap Clear (B2B2C workflow). If your store does not use this model, you do not need to manage this score.
Updating Unit Cost
Click Update Unit Cost.
Download the CSV template. The template includes columns for Product ID, Product Title, and Unit Cost.
Enter the cost values.
Upload the completed CSV.
If the CSV contains rows where Unit Cost is missing, the system will return an error. This prevents accidentally overwriting existing Unit Cost data with blank values.
Once uploaded, Unit Cost updates in Compliance Hub and in your Shopify variant data as "Cost per item", and your compliance score updates automatically. You can download an updated CSV at any time.
Cost prices are used to calculate duties on a cost price + 5% markup basis rather than the full retail price, for compliant B2B2C invoicing and customs processing.
Note: Only merchants approved for Swap Clear / B2B2C operations will see Unit Cost fields. If you do not see Unit Cost options, this functionality is not required for your account.
Manufacturer ID (MID Code)
MID codes are required for customs documentation, particularly for shipments to the United States. Compliance Hub provides standardised Shopify metafields for storing and syncing this information for use on commercial invoices.
MID codes are managed at the product level, not the variant level. All variants of a product share the same manufacturer details and MID code.
You can manage MID codes in three ways:
Option 1: Generate MID codes automatically
Use this option only if all of your products share the same manufacturer.
Select Automatic.
Click Next.
Enter the manufacturer name, country, city, and address. All fields are required before the Generate button becomes available.
Click Generate MID Code. The system displays the generated code.
Click Apply to All to assign this code to all products.
You can return to this screen at any time to regenerate and update the MID code.
Important: If your products come from multiple manufacturers, use the manual CSV option instead.
Option 2: Upload manufacturer details via CSV
This option is recommended when different products have different manufacturers.
Select Manual.
Download the CSV template. It includes columns for: Product ID, Variant SKUs (comma-separated), Product Title, MID Code, Manufacturer Name, Manufacturer Country, and Manufacturer Address.
Complete the relevant columns. If you do not already know the MID code, leave the MID Code column blank and fill in the manufacturer name, country, and address instead. Compliance Hub will generate the MID code from that information.
Upload the completed CSV.
Once processed, MID codes are applied to the corresponding products and synced to Shopify metafields.
Option 3: Add MID codes directly in Shopify metafields
If you prefer to manage MID codes directly in Shopify, you can enter them in the predefined metafields created by Compliance Hub, without using the generation or CSV upload options.
Important: When MID codes are entered directly in Shopify, Compliance Hub does not validate or generate the code, and the Manufacturer ID score will not be evaluated for those products. You are responsible for ensuring the accuracy of any MID codes and manufacturer details entered this way.
What syncs to Shopify
After manufacturer details are updated via Compliance Hub, the following metafields are updated in Shopify and used for commercial invoice generation:
Manufacturer ID (MID Code)
Manufacturer Name
Manufacturer Address
Manufacturer Country
Custom Description
A Custom Description provides a clear, standardised description of a product for customs documentation. Compliance Hub creates a dedicated Shopify metafield for this value, which is synced and used in downstream documentation.
Custom descriptions are managed at the product level. All variants within the same product share the same custom description. You do not need to create your own metafields — Compliance Hub provides them automatically.
After running a Health Check, a Customs Description Score card appears in the dashboard. The product table also includes a Customs Description column showing the value associated with each product.
Generate via Swap AI (recommended)
Use this option to quickly populate missing descriptions across your catalogue.
Click Update Custom Description.
Select Generate with Swap AI.
Click Generate Description.
Swap AI only generates customs descriptions for active products that do not already have one. Existing descriptions are not overwritten. Generated descriptions appear in the product table and are synced to Shopify metafields immediately.
Bulk update via CSV
Use this option if you want full control over descriptions or need to update them in bulk.
Click Update Custom Description.
Select Update via CSV.
Download the CSV template.
Fill in the Custom Description column.
Upload the file back to Compliance Hub.
Once processed, descriptions are synced to Shopify metafields and are immediately available for downstream use.
Update directly in Shopify
You can also manage custom descriptions directly in Shopify using the metafield created by Compliance Hub. Navigate to the product in Shopify, locate the Custom Description metafield, and enter or update the value. Changes made in Shopify are reflected in Compliance Hub.
Important: You do not need to create your own metafields for custom descriptions. Compliance Hub automatically creates and manages these fields in Shopify.
How Compliance Data Flows to Commercial Invoices
Compliance Hub serves as the single source of truth for product-level customs data, which is automatically included in cross-border documentation.
When you input or upload compliance data in Compliance Hub, it is mapped to products and variant IDs via SKU, then synced to your Shopify product catalogue. Updates are applied at the product level and propagated across all variants.
When an order is placed, the compliance data already synced to Shopify is made available at the line-item level and included in the commercial invoice. Data shared per line item includes:
HS Code (10-digit)
Country of Origin
Unit Cost / Declared Value
MID Code (for B2B2C orders)
Custom Description
Important: Full end-to-end flow into commercial invoices is supported for brands using DispatchCloud (via the Voila integration). If your store uses a different warehouse management system, compliance data does not currently flow through to the commercial invoice automatically.
Frequently Asked Questions
Why should I provide a 6-digit HS Code in my catalogue?
Manually looking up HS codes is time-consuming and prone to inconsistency. By running a Health Check and maintaining HS codes in Compliance Hub, you ensure that the system has an accurate base classification for each product.
If you provide your own HS code, the system treats the first six digits as your final classification and uses them to determine the destination-specific digits. If that base classification is incorrect (for example, using the code for a pen on a t-shirt), duty and tax calculations will also be incorrect. Using Compliance Hub's Health Check helps prevent this by automatically validating codes across your catalogue.
Can I update compliance fields directly in Shopify instead of using CSV uploads?
Shopify does not currently support bulk updating of HS Code, Country of Origin, or Unit Cost fields in a straightforward way. Updating them via Shopify would require opening each product variant individually. The CSV upload in Compliance Hub is the recommended approach, particularly during initial onboarding.
Why is compliance data managed at product level rather than variant level?
Compliance attributes such as HS Code, Country of Origin, and manufacturer details are consistent across all variants of a product. Managing at the product level is simpler and more efficient than updating each variant separately.




