Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Updated Country Harmonized System Code validations on Product Variant mutations

Starting with the Admin GraphQL API version 2025-04, all Product Variant mutations will include validations to ensure that any country-specific harmonized system codes provided in the input are compatible with the existing codes on the Inventory Item. These country-specific codes must be prefixed with the item's global harmonized system code and must be at least six characters long. If the input country HS codes do not meet these criteria, a user error will be returned, specifying the invalid input index and providing an error message.

The following Admin GraphQL API Product Variant mutations will incorporate these validations starting from API version 2025-04:

  • ProductVariantsBulkCreate
  • ProductVariantsBulkUpdate
  • ProductVariantCreate
  • ProductVariantUpdate
  • ProductSet
Was this section helpful?