Hi, I need help creating an order using REST API with “customer_locale” set.
I have tried passing “locale”, “customer_locale” through the POST order.json, also passing those attributes through customers.json and then passing the customer id to the order, but none of those methods created an order with “customer_locale” set.
Becuase of that, I’m not able to sent correct emails through my integrations etc.
Does anybody know a way how to achieve that? Thank you in advance,
Tomáš
I don’t think the GraphQL (or the REST) API will let you set the customerLocale field. It looks like this is set automatically by Shopify based on the customer’s browsing session or checkout language, not by API input.
Thank you for the answer
Yes, the customer is new, but the problem is - we use shopify basically only headless, all the order creation, shipping etc. is done via API or integrations
So basically I need to find any way to set the locale for order, so the emails are sent correctly
Thank you, I am aware of that and planning to refactor the API client, but for now, I only need this minor “fix” and hope I can live for a few months with rest API for now