List Categories
GET
/categoriesThis endpoint allows you to list all categories related to your store directly from this endpoint. Also, it allows you to filter them using a keyword, the endpoint would return any category which name matches this keyword.
Request
The Pagination page number
A keyword to filter categories by a specific name.
The status of the category, whether or not it is active
or hidden
Returns the response with translations or items (or both). Takes values with separated comma or array of either items, translations or both in this case:
with=items OR with=translations OR with[]=items&with[]=translations OR with=items,translations
Request samples
Responses
{
"status": 200,
"success": true,
"data": [
{
"id": 846957281,
"name": "خضروات",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 0,
"items": []
},
{
"id": 181391824,
"name": "User Name",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 0,
"items": []
},
{
"id": 205564386,
"name": "فواكه",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 1,
"items": [
{
"id": 1255216786,
"name": "فواكه صيفية",
"sort_order": 1,
"items": []
}
]
},
{
"id": 1240558514,
"name": "Dress",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 18,
"items": []
}
]
}