Light Mode
Category Details
GET
/categories/{category}Last modified:Â 18 days ago
This endpoint allows you to return the complete details for a specific category by passing the category
as a path parameter.
Request
Path Params
category
integerÂ
required
The Category ID. List of Category ID can be found here
Query Params
with
array[string]
optional
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
Example:
["items"]
Request samples
Responses
Category details returned successfully.(200)
Record Not Found(404)
Success | `With` Query Parameter translations(200)
Category details returned successfully.
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 742010040,
"name": "mobiles",
"urls": {
"customer": "https://salla.sa/dev-mwedkrieofanmuri/mobiles/c789234040",
"admin": "https://s.salla.sa/categories"
},
"items": [],
"parent_id": 0,
"status": "active",
"sort_order": 0,
"update_at": "2024-03-17 15:23:22",
"metadata": {
"title": null,
"description": null,
"url": null
}
}
}
Last modified: 18 days ago