Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
{"query":"query { order(id: "gid://shopify/Order/*****") { name localizationExtensions(first: 100) { edges { node { key countryCode purpose title value } } }}}"}
We obtain the tax ID information of the order through the above interface. But I found a problem. Brazilian tax numbers can be obtained successfully, but Mexican tax numbers cannot be obtained. May I ask how to solve this problem.
Successfully retrieved data from data1, but when retrieving data from data2, the returned data was empty.
data1: CPF/CNPJ:00755720873
data2: RFC:BORO630127DU8
Solved! Go to the solution
This is an accepted solution.
Ok I managed to fix the bad request issue I had and indeed if you query
localizedFields(first: 100) {
nodes {
title
value
}
}
I was just looking for the same number but as you say the endpoint you mention doesn't include the RFC number on Mexican orders.
I noticed on the 2025-01 version of the GraphQL API there's a connection on the object order that's called localizedFields which supposedly should contain the same data, however when I try to query that version of the API it just returns 'bad request', regardless of what I query it with, so I haven't yet been able to see if that localizedFields connection contains the RFC number for Mexico.
If anyone knows where else I can find this number in the GraphQL API, I'd love to know, thank you!
This is an accepted solution.
Ok I managed to fix the bad request issue I had and indeed if you query
localizedFields(first: 100) {
nodes {
title
value
}
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025