Skip to content

Instantly share code, notes, and snippets.

@kirelagin
Last active July 8, 2025 19:50
Show Gist options
  • Save kirelagin/e4f68f9e802ae34e3008c24a2628c494 to your computer and use it in GitHub Desktop.
Save kirelagin/e4f68f9e802ae34e3008c24a2628c494 to your computer and use it in GitHub Desktop.
How to add a Swiss address on AliExpress

Swiss address on AliExpress

How to enter a Swiss address on AliExpress.

The problem

AliExpress has a stupid interface for entering your address – it makes you select the country, then the canton/region/state, then the city, all from drop-down lists. Of course, their drop-down lists are incomplete: e.g., for most cantons in Switzerland, they only have the capital city and nothing else.

If you contact their support, they will tell you to select the “other” option. But this option is only available on the web, not in their app, and even there it does not work due to what seems to be an obvious bug in their code.

Here is how to work it around. You will need a desktop computer for this, I do not know of an easy way to do the same from your phone.

Step 1: Add your address with the wrong city

Suppose we want to add an address in Engelberg. Engelberg is not on the list, so we just choose the city that they offer:

Enter address with a wrong city

Save this address.

Step 2: Change to Other country

Now go back to your shipping addresses and edit the address that you have just added.

This time, in the list of countries, change your country to “Other Country”:

Change country to Other

You will see that it has pre-filled the form with all your information, except for the country:

Pre-filled form

This is where their bug is – if you try to save this address, it will fail because there is no country specified! So we will have to “hack” their system instead.

Step 3: Obtain the update request

In Firefox: Go to Menu → More tools → Web Developer Tools
In Chrome: Go to Menu → More tools → Developer tools

Click the “Network” tab. Then select “XHR” for Firefox or “Fetch/XHR” for Chrome:

Developer tools setup

Now enter your real city in the form.

Press “Confirm” in the AliExpress form to submit your address update. You will see it appear in the list in Developer Tools.

Right-click the request and select:

In Firefox on Linux/macOS: Copy Value → Copy as cURL
In Chrome on Linux/macOS: Copy → Copy as cURL

(For Windows, select “Copy as PowerShell” instead.)

Copy the request

Step 4: Fix and execute the request

Now open your Terminal (on Windows, open PowerShell). And just paste from the clipboard:

Pasted curl

(It will look slightly different on Windows.)

There will be a lot of text, do not worry about it. Just scan the text from the end until you find &country=OTHER& (highlighted in the screenshot).

Change this to &country=CH&:

Edited curl

All done! Now press Enter, and you should see something like this:

Response

If it says "success": true at the end, congratulations! You can now go back to AliExpress and check your updated address.

(If you are getting something else, try to copy as cURL/PowerShell from your browser, paste, and edit the line again.)

@Gipada
Copy link

Gipada commented Jun 16, 2025

Hello,
Just to let you know, I tried but it didn't seem to work as there is a token that is updated at each request. I still managed to do something similar except I intercepted the request before it being sent and made the proper changes. I used burp suite to do that. Thank you, the rest was perfect !

@jdavidpeter
Copy link

+1 for BurpSuite.
Interestingly, when I try to capture and edit a request to change the city when creating an address with Switzerland as the country, the server rejects it.
It seems they validate inputs when the country is specified, but not when you use the form for Other country.

@kirelagin
Copy link
Author

kirelagin commented Jun 27, 2025

Hm, interesting, it worked for me and there were a couple of success reports on Reddit. I’ll see if I can reproduce the issue.

If you guys can make it work with interception then it’s even better. I wanted to make a guide that anyone will be able to follow without installing additional tools, and interception built into Firefox did not work for me (it refuses to replay cookies).

I guess I should also mention that I’ve only tested the steps on Linux, and did not actually try on Windows, so maybe I missed something there.

@Filippo1609
Copy link

Worked exactly as described.
That was the only way I could enter my Swiss address correctly.

Thanks

@jdavidpeter
Copy link

It's a great piece of work @kirelagin, despite the sporadic, minor hiccups.
I only hope Aliexpress fixes the city selection dropdown sooner than the form validation for "Other" countries.
I have contacted their customer service twice before trying to hack around but got a templated answer without substance both times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment