Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

How to set the appropriate customer_locale on order entity

sansems
Visitor
3 0 1

According to the API specs the customer_locale field is part of the order (see here https://shopify.dev/api/admin-rest/2022-04/resources/order#resource-object), this is also what's been advertised to be part of the order (https://shopify.dev/changelog/locale-fields-are-now-appended-with-language-and-country-codes)

 

However i see something totally different when i look into the values we actually get in the the customer_locale field on the orders we receive from many Shopify shops through the through the Order API's. We get some weird customer_locale values that are not valid according to the IETF BCP47: Testify the following image:

ezgif-3-03e89b4d33.gif

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This seems like a bug to me, but how can we get the actual customer_locale in the order?

Replies 0 (0)