API Documentation
Authentication APIs
- Login & Register
- Create & Manage Users
Catalog APIs
- GETList all products
- GETList all skus
- GETRetrieve a product
- GETRetrieve product variants
- GETRetrieve variant detail
- GETList all categories
- GETRetrieve product reviews
- POSTCreate product review
- GETRetrieve similar products
- GETRetrieve up sell products
- GETRetrieve cross sell products
- GETRetrieve recommended products
- POSTDatocms webhook
Cart & Checkout APIs
- Cart
- Checkout
Coupons & promotions API
Customers API
Orders APIs
Shipping APIs
Analytics
Campaigns API
Customers API
Retrieve all reviews
GET
/
customers
/
{user_id}
/
reviews
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/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>"
}
]
}
}
Authorizations
Access token
Path Parameters
user id
Response
200 - application/json
OK
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/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>"
}
]
}
}