Category Children
GET
/categories/{category}/childrenThis endpoint allows you to return specific category children by passing the category
as a path parameter.
Request
The Category ID. List of Category ID can be found here
The Pagination page number
Request samples
[api.label.responses]
Response Status Code
Whether or not the response is successful
Category ID
Category Name
Category Sort Order
For a better response behavior as well as maintain the best security level, All retrieving API endpoints use a mechanism to retrieve data in chunks called pagination. Pagination working by return only a specific number of records in each response, and through passing the page number you can navigate the different pages.
number of returned results
number of all results
number of results per page
number of current page
number of total pages
array of linkes to next and previous pages
{
"status": 200,
"success": true,
"data": [
{
"id": 1255216786,
"name": "فواكه صيفية",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profile"
},
"sort_order": 1,
"items": []
}
],
"pagination": {
"count": 1,
"total": 1,
"perPage": 15,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}