I can add a feature request for the REST API, but for now you could also try using the customerCreate or customerUpdate mutations to set the correct locale, then creating/ completing draft orders for the customer using the GraphQL Admin API to send notifications in the desired language as a workaround.
this did not worked for me, I tried with customerUpdate mutation and I get a failed message saying ā Error: InputObject āCustomerInputā doesnāt accept argument ālanguageCodeā.
The notification language is determined by the Customer.locale attribute, formatted as an ISO code. The following is an example customerUpdate mutation and variables:
Is there any news regarding this feature for StorefrontAPI? We have a similar use case where we have to set the locale when creating a customer through Storefront API.
I am not sure how to send a PUT request with update object for the customer.
What I mean is which is the Language field in the customer object and how one can send an update object with correct information?
What I mean is:
I do have in my shop set the geolocalzation app that show to customer correct content to customer(Italian, Greek in one of those countries and English elsewhere).
The problem is that I see that every customer is saved with āEnglishā as language no matter, because the shop default language is English(and should be).
I also set a Flow that attached a correct tag based indeed either on local or ending of email address(my only way to ādiscriminateā between customer location when sending emails for communication.
I would still āfixā the language assigned to customer, if italian, then italian, if greek then greek
So to sum up, how the object send via PUT API should look like?