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
Visit our Postman collection to test this request.
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 --request POST \
--url https://catalog.api.useinsider.com/v2/locales/batch \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-NAME: your-partner-name' \
--header 'X-REQUEST-TOKEN: your-api-token' \
--data '[
{
"language_and_country_code": "tr_TR",
"store_id": "Ankara"
},
{
"language_and_country_code": "en_US",
"store_id": "Portland"
}
]'Sample Response
{
"success": true,
"created_locale_count": 2
}Limitations
For all applied limits, refer to Limitations.
Suggested Next
See Add New Products in a Flat Format to use your configured locale values to send product data as separate flat records.
See Add New Products in a Nested Format to send product data in a nested structure when you need to manage multiple locales or stores for each product.