The Catalog API allows you to create locale configurations. For larger or more complex setups, the Create Locale endpoint enables faster and more scalable locale management.
Refer to Locales for further information.
Endpoint and Headers
POST https://catalog.api.useinsider.com/v2/locales/batch
Header | Sample Value | Description |
|---|---|---|
X-PARTNER-NAME | myParterName | This is your partner name. Navigate to InOne > Inone Settings > Account Settings to copy your partner name. The partner name should be lowercase. |
X-REQUEST-TOKEN | 1a2b3c4d5e6f | This key is required to authorize your request. Refer to API Authentication Tokens to generate your Catalog API token. |
Sample Request
The sample below displays a request to create locale configurations:
curl -X POST "https://catalog.api.useinsider.com/v2/locales/batch" \
-H "Content-Type: application/json" \
-H "X-PARTNER-NAME: your-partner-name" \
-H "X-REQUEST-TOKEN: your-api-token" \
-d '{
"data": {
"locales": [
{ "language_country_code": "en_US", "store_id": "Main" },
{ "language_country_code": "pt_BR", "store_id": "SaoPaulo" }
]
}
}'Sample Response
{
"success": true,
"created_locale_count": 1
}Limitations
For all the limits applied, refer to Limitations.