Categories
Create and update categories
Create or update categories in bulk. If a category with the same name already exists, it is updated.
POST
You can create or update categories in bulk by name. If a category with the same name already exists in the same store and branch, it is updated; otherwise, it is created.
Your store ID in Jelou Shop.
List of categories to create or update (max. 500 per request).
Behavior
Asynchronous processing
Asynchronous processing
The endpoint returns
202 Accepted immediately. Categories are processed in the background.Upsert by name
Upsert by name
Categories are identified by their
name within the same store and branch. If one with that name already exists, it is updated instead of creating a new one.Non-existent branch
Non-existent branch
If the branch code does not match any branch in the store, the category is created without an assigned branch.
Images
Images
If an image URL is provided, it is downloaded and stored in the background after the category is created.
Validation errors
Common error messages
Common error messages
| Field | Message |
|---|---|
resources | The resources field is required. |
resources | At least one category is required. |
resources | Cannot process more than 500 categories at once. |
resources.*.name | Each category must have a name. |
resources.*.image | Category image must be a valid URL. |
resources.*.order | Category order must be an integer. / Category order cannot be negative. |
resources.*.status | Category status must be a boolean. |
Limits
- Maximum 500 categories per request.
- All categories are validated before processing.
Replace
{app_id} with your store ID and YOUR_API_KEY with your API key.