mutation OrderUpdateWithLocalizedField($id: ID!, $tags: [String!]!, $email: String!, $localizedFields: [LocalizedFieldInput!]!) {
orderUpdate(
input: {id: $id, tags: $tags, email: $email, localizedFields: $localizedFields}
) {
order {
id
localizedFields(first: 10) {
nodes {
value
key
}
}
}
userErrors {
field
message
}
}
}
{
"id": "gid://shopify/Order/<number>",
"tags": ["1", "two"],
"email": "hello@world.com",
"localizedFields": [{"key": "TAX_CREDENTIAL_BR",
"value": "30324488249"}]
}
works for email, tags, but not localizedFields.
Response:
{
"data": {
"orderUpdate": {
"order": {
"id": "gid://shopify/Order/<number>",
"localizedFields": {
"nodes": []
}
},
"userErrors": [
{
"field": [
"localizationExtensions",
"0",
"value"
],
"message": "Localization extension: 'value' provided is invalid"
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 16,
"actualQueryCost": 12,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1988,
"restoreRate": 100
}
}
}
}
Why not let orderCreate to have localizedFields?
It is present in draftOrderCreate and in orderUpdate.
Does it mean that to update the value I need to first have it and the only way to do it creating the draftOrder first?
I am using Admin API 2025-07.
Does not work either with TAX_CREDENTIAL_BR or SHIPPING_CREDENTIAL_BR.
Also, the order was created for Brazil. So it should match.
UPDATE:
I checked user errors, and it says the value is invalid. What value would be valid?
It looks like the message is kinda legacy too as it is not localizationExtensions but rather localizedFields
