Why setting a translated language change API account activation URL

6 0 1

Hi, We have a french eshop and since we added English as translated language in Shopify backend the url created with API

POST /admin/api/2020-01/customers/#{customer_id}/account_activation_url.json

instead of being 

  "account_activation_url": "https://apple.myshopify.com/account/activate/207119551/9c494b133f46deeccc1f901f24173dd7-1586183859"

is now with /en


 Is there a way to pass some locale parameter to this request ?

Thanks for helping


Shopify Staff
Shopify Staff
771 91 171

Hey @MagaliWD,


Can you kindly provide the shop_id for the shop you're seeing this on? I haven't seen that en in an account activation URL before, so I'd like to investigate further.


Also, I'm not 100% clear on your question so I'm hoping you can clarify. Is the en appearing in the URL for all customer account activations? Have you tried changing the en to fr in the URL for French customers?

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

6 0 1

Hi JB, of course our shop ID is 16832271.

The "/en" appears in the URL for all customer account activations.

We've tried nothing except javascript code on API response to remove this "/en" when locale is "fr" at checkout while waiting to find the origin of this problem.

Our App was working fine for months and since we have a second language activated on our shop this "/en" appears (main language of our shop is French).

I can't undrestand how the response of an API request could change!? 

Thanks a lot for your investigation, I am really curious about your next answer.