Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
hi - i am updating(PUT) an order and adding a tag
tags: "ONLINE-EU",
tags: "ONLINEEU",
const updateShippingAddress = { method: "PUT", body: JSON.stringify({ order: { id: order, shipping_address: { name: gb_name, }, tags: "ONLINE-EU", } }) }; api.request( `${api.endpoints.SHOPIFY_ORDER(order)}`, updateShippingAddress )
{"errors":{"order_tags":["is invalid"]}}
Looks like a bug to me, as there are no documented constraints on using dashes in tag names.
Log the actual request being made to verify it's not being mangled by bad url encoding
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Has there been any update to this? I am receiving the same problem over 3 years later.
Our business tag policy is hyphenated words.
My X-Request-Id : 6548bf5a-e0ea-49e4-b6a6-bf3447e41bee
Did you ever manage to resolve this?
I think you'll find there's an issue with mixed capitalisation.
The API allows you to set a tag with a capital, for example: Success.
If you attempt to update that same record with a tag in lower case (success) you will get the 422 error. My assumption here is that Shopify maintains a list of known tags and you cannot have two different tags of different capitalisation...i.e. this is a collation sequence issue.
The UI prevents this as you cannot create two tags with differing capitalisation.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025