Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: taxCode is never getting set on the variant when using the `productVariantsBulkCreate` mutation

taxCode is never getting set on the variant when using the `productVariantsBulkCreate` mutation

abishekrs
Shopify Partner
25 3 8

I am using the `productVariantsBulkCreate` mutation to create the variants for a product and I set the `taxable` to `true` and `taxCode` to `6109.10` and this value is never being set on the variant. Any reason why this would happen? 

 

The request id is 5b947429-66e6-4ab5-8185-07ed2d9152f0-1724407266

 

Here are the screenshot of the value I am setting on the GraphQL.

CleanShot 2024-08-23 at 15.41.38.png

The HSN code is always empty.

CleanShot 2024-08-23 at 15.45.51.png

Replies 2 (2)

Liam
Community Manager
3108 344 910

Hi Abishekrs,

 

Is it only this value that is not being set - ie: you have no problems adding other values/properties to a variant? 

Liam | Developer Advocate @ 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

abishekrs
Shopify Partner
25 3 8

Actually, I reached out to Shopify Support regarding this and they confirmed that the issue seems to be with the Shopify Admin's Variant View. The `taxCode` is being set, but it doesn't display the value on the Admin. They are looking into this. But there are other related issues with taxCode, specifically for tax calculation. But other than this, I don't have any issues with other values or properties