The customer is able to rate each product purchased in a specific order. This endpoint is used to save the customer's review comments on the purchased products list.The products rating endpoint has been implemented in the Rating Web Component, , and It's all setup to save developer's time and effort. Payload authenticated
#
The order's id, which contains the list of products to be rated.
products
array [object {3}]
optionalThe array list of the purchased products.
The customer review comment on the purchased product.
The customer's rating in form of 5-star scale.
Response#
Usage#
To perform the process of rating the list of the purchased products, the developer may call the method products()
along with the products' array and the order id as per the following example.Events#
This endpoint may trigger two events, the onProductsRated and onProductsFailed events.onProductsRated#
This event is triggered when the process of rating a list of the purchased products is done without having any errors coming back from the backend.onProductsFailed#
This event is triggered when the process of rating a list of the purchased products is not completed and an error has occurred. Modified at 2025-03-04 12:54:02