Light Mode
List Category Products
GET
/categories/{id}/productsLast modified: 4 hours ago
This endpoint allows you to list all the products and their sort order that are related in a specified category by passing the id
as a path parameter..
Request
Path Params
id
integer
required
Category ID. Get a list of Category IDs from here
Request samples
Responses
Success(200)
Unauthorized(401)
Record Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Success
{
"status": 200,
"success": true,
"data": [
{
"id": 1616381492,
"name": "iPhone 16 Pro",
"image": "https://salla-dev.s3.eu-central-1.amazonaws.com/Mvyk/1b333d84-4a80-49fc-9fb1-6565aa44045e-500x333.33333333333-omJjjLFh9HqShwJa7O4YD904Q2mfXLqKy0wcLVJE.jpg",
"sort": 1
},
{
"id": 388819608,
"name": "أقراط الياقوت",
"image": "https://cdn.salla.sa/nzvOE/a2f5abed-2e38-479e-a4ff-4e442508935c-500x500-y5Wuuum0SgGrYfYHbpKPunlapp0BXVXeaT413.jpg",
"sort": 2
}
],
"pagination": {
"count": 2,
"total": 2,
"perPage": 15,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
Last modified: 4 hours ago