Create Category
POST
/categoriesThis endpoint allows you to create a new category and return the category ID and its details.
Request
The title or label assigned to a specific grouping or classification of items, products, or content, often used to organize and categorize them for easier navigation or identification. 🌐 Support multi-language
The status of the category, whether or not it is active
or hidden
Category display image
Category SEO Metadata Title which is a concise label used to optimize search engine results and enhance the visibility of a category page.
A succinct summary crafted to enhance search engine optimization and spotlight a brand's attributes within a category.
Metadata URL is a web address that contains information designed to improve a webpage's search engine visibility and shareability on social platforms.
Category channels that will be displayed to them
Salla Merchant App
Category translations are based on the store's enabled language locale. For instance, if the store supports both Arabic and English, the translations
object will return two entries: ar
for Arabic and en
for English.
A unique identifier that references the parent or higher-level category to which a specific category belongs, establishing a hierarchical relationship within a categorization system.
Sort order dictates the sequence or arrangement of categories when displayed to users. It determines the order in which categories are presented, often using numerical values to assign priority, allowing for controlled and organized navigation.
Assign products and specify the sort order.
an Integer number signifying the sort order of the product inside the category
{
"name": "طعام قطط",
"status": "hidden",
"image": "https://salla-dev.s3.eu-central-1.amazonaws.com/Mvyk/dBmLWHOfKm3tRfQ3Txqs3l96SjI6jdbf6rCsYYQu.jpg",
"metadata_title": "Dress",
"metadata_description": "Amazing Dress",
"metadata_url": "https://dress.com",
"show_in": {
"app": true
},
"translations": {
"en": {
"name": "cat food",
"metadata_title": "cat food",
"metadata_description": "welcome",
"metadata_url": "cat-food"
}
}
}
Request samples
Responses
{
"status": 201,
"success": true,
"data": {
"id": 707972603,
"name": "Dress 101",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 0,
"items": [],
"parent_id": 516861512,
"status": "hidden",
"metadata": {
"title": "Dress",
"description": "Amazing Dress",
"url": "https://dress.com"
}
}
}