Product All Reviews

To fetch all product reviews

GET https://emart.caslteindia.in /api/reviews/{productid}/{type}?secret=xxxx?page=1

Path Parameters

NameTypeDescription

productid*

Integer

Id of the product

Type of product

type*

Integer

v = variant s = simple

Query Parameters

NameTypeDescription

Page

Integer

Page no for review default 1

Secret

String

Secret key obtained from admin panel.

Headers

NameTypeDescription

Accept*

String

application/json

{
    "ratingstates": {
        "overallrating": 4,
        "quality": 25,
        "price": 25,
        "value": 25
    },
    "product": {
        "name": {
            "en": "UA Play Up"
        },
        "des": {
            "en": "UA Play Up Shorts"
        },
        "rating": 4
    },
    "reviews": {
        "current_page": 1,
        "data": [
            {
                "rating": 4,
                "review": "Good product",
                "user": "Sara",
                "image": null,
                "created_at": "1 year ago"
            },
            {
                "rating": 4,
                "review": null,
                "user": "seller01",
                "image": "1591341768avatar5.png",
                "created_at": "1 year ago"
            },
            {
                "rating": 4,
                "review": null,
                "user": "Alexandra",
                "image": null,
                "created_at": "1 year ago"
            },
            {
                "rating": 4,
                "review": null,
                "user": "Admin",
                "image": "1628072295user2-160x160.jpg",
                "created_at": "1 year ago"
            }
        ],
        "first_page_url": "https://emart.test/api/reviews/39/v?page=1",
        "from": 1,
        "next_page_url": null,
        "path": "https://emart.test/api/reviews/39/v",
        "per_page": 15,
        "prev_page_url": null,
        "to": 4
    }
}
If validation fail

Last updated