Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/reviews \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"reviews": [
{
"id": "<string>",
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"status": "<string>",
"rating": 123,
"review_text": "<string>",
"review_date": "2023-11-07T05:31:56Z",
"average_rating": 123,
"tags": [
"<string>"
],
"images": [
{
"blur_url": "<string>",
"thumbnail_url": "<string>",
"standard_url": "<string>"
}
],
"videos": [
{
"cover_image_url": "<string>",
"video_preview_url": "<string>",
" playback": {
"hls": "<string>",
"dash": "<string>"
},
"duration": "<string>",
"size": "<string>"
}
],
"listing_price": 123,
"selling_price": 123,
"order_number": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"ready_for_review": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"selling_price": 123,
"listing_price": 123,
"order_number": "<string>"
}
]
}
}
Retrieve all reviews
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/reviews \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"reviews": [
{
"id": "<string>",
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"status": "<string>",
"rating": 123,
"review_text": "<string>",
"review_date": "2023-11-07T05:31:56Z",
"average_rating": 123,
"tags": [
"<string>"
],
"images": [
{
"blur_url": "<string>",
"thumbnail_url": "<string>",
"standard_url": "<string>"
}
],
"videos": [
{
"cover_image_url": "<string>",
"video_preview_url": "<string>",
" playback": {
"hls": "<string>",
"dash": "<string>"
},
"duration": "<string>",
"size": "<string>"
}
],
"listing_price": 123,
"selling_price": 123,
"order_number": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"ready_for_review": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"selling_price": 123,
"listing_price": 123,
"order_number": "<string>"
}
]
}
}
Access token
user id
OK
The response is of type object
.