Light Mode
List Reviews
GET
/reviewsLast modified: 16 days ago
This endpoint allows you to list product reviews, general product, and shipping ratings as well as Merchant store reviews.
:::info[Review Types]
- Product reviews are of type
rating
. - General product questions are of type
ask
. - Ratings about shipping are of type
shipping
. - Merchant store reviews are of type
testimonial
.
:::
Request
Query Params
page
integer
optional
The Pagination page number
is_published
boolean
optional
Indicates whether the review is published publicly and seen on the Merchant store front
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 1989531006,
"type": "ask",
"rating": 0,
"content": "does it work on MAC machines?",
"order_id": null,
"is_published": false,
"created_at": "2023-09-28 17:17:53",
"customer": {
"id": 1227534533,
"name": "Ahmed Ali",
"mobile": 566666666,
"email": "[email protected]",
"avatar": "https://cdn.assets.salla.network/admin/cp/assets/images/avatar_male.png",
"country": "السعودية",
"city": "الخبر"
}
},
{
"id": 1853140150,
"type": "rating",
"rating": 5,
"content": "I like this product",
"order_id": 123456789,
"is_published": true,
"created_at": "2023-09-28 17:20:24",
"customer": {
"id": 1227534533,
"name": "Mohammed Ali",
"mobile": 565555555,
"email": "[email protected]",
"avatar": "https://cdn.assets.salla.network/admin/cp/assets/images/avatar_male.png",
"country": "السعودية",
"city": "الرياض"
}
}
],
"pagination": {
"count": 2,
"total": 2,
"perPage": 15,
"currentPage": 1,
"totalPages": 1,
"links": []
}
}
Last modified: 16 days ago