Product Review
get each products review and write review for a product
Write a review
POST
‎https://<domain>/<api prefix>/<version>/commerce/product/product-review/
Using this API users can write a review for a previously purchased product.
Headers
apikey*
string
Authorization*
string
Bearer Access Token
Request Body
comment*
string
review comment
bundle*
number
product bundle id (unique id)
stars*
number
no. of stars given
Sample Code
Node
PHP
Error Responses
Status code
Error Type
Field
Description
400
Validation Error
bundle
Bundle id is required.
This field may not be blank.
Product with bundle id not exist.
400
Validation Error
comment
comment is required
400
Validation Error
stars
stars count is required
Get Review Status
GET
‎https://<domain>/<api prefix>/<version>/commerce/product/product-review/
This endpoint will return how many times the user purchased this product previously.
Query Parameters
bundle_id
string
Headers
apikey*
string
apikey
Authorization*
string
Bearer Access Token
Note:
All Reviews from different users of a product are fetched in product details api.
Sample Code
Node
PHP
Error Responses
Status Code
Error Type
Field
Description
400
Validation Error
bundle_id
Bundle id is required.
This field may not be blank.
Product with bundle id not exist.
Last updated