Fetch Reviews
Retrieve a list of product reviews from your store.
Endpoint
GET /api/reviews/searchQuery Parameters
| Name | Type | Description |
|---|---|---|
| page | int | Page number (optional) |
| limit | int | Items per page (optional) |
| product | string | Filter by product ID (optional) |
| rating | int | Filter by rating (optional) |
| published | bool | Filter by published status |
Response
json
{
"results": [
{
"_id": "string",
"storeId": "string",
"product": {
"_id": "string",
"name": "string",
"image": "string"
},
"customer": {
"_id": "string",
"firstname": "string",
"lastname": "string"
},
"content": "Great product!",
"images": ["https://cdn.example.com/review1.jpg"],
"rating": 5,
"published": true,
"createdAt": "2024-01-01T00:00:00.000Z"
}
],
"paginate": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1
}
}