HM - Hennes Mauritz

FREEMIUM
By Api Dojo | Updated 10 months ago | eCommerce
Popularity

9.4 / 10

Latency

4,480ms

Service Level

100%

Back to All Discussions

Region codes return '[400]Bad Request'

avatar
i.ho98915@gmail.com
4 months ago

I’m trying to use the country codes from the regions list, but almost all of them return a [400] Bad Request message.

avatar
apidojo commented 4 months ago

Hello,

You are calling the …/categories/list endpoint with lang not being supported with country.
Ex :
There is no language “en” listed under country “jp”
{
“name”: “Japan”,
“code”: “jp”,
“languages”: [
{
“name”: “日本語”,
“code”: “ja”
}
]
}

lang must be “ja” in this case.

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 5 - Votes: 1