Catalog
- GETRetrieve all products
- POSTCreate product
- GETRetrieve skus
- GETRetrieve product details
- PUTUpdate product details
- DELDelete product
- GETRetrieve product variants
- POSTCreate variant
- POSTUpdate variants in bulk
- GETRetrieve a variant details
- PUTUpdate a variant
- DELDelete a variant
- GETRetrieve product inventory
- POSTUpdate product inventory
- GETRetrieve product inventory activities
- PUTUpdate product inventory activities
- POSTCreate product inventory activities
- GETRetrieve product reviews
- GETRetrieve product review
- PUTUpdate product review
- DELDelete product review
- GETRetrieve all categories
- POSTCreate category
- GETRetrieve category
- PUTUpdate category
- DELDelete category
- GETRetrieve all attributes
- POSTCreate attribute
- GETRetrieve attribute
- PUTUpdate attribute
- DELDelete attribute
- POSTAdd product pricing
- PUTUpdate product pricing
- DELDelete product pricing
- POSTAdd product image
- PUTUpdate product image
- DELDelete product image
- GETRetrive sku detail
Auth
- PUTActivate user account
- PUTDeactivate user account
- GETCheck domain availability
- GETRetrieve all roles
- POSTCreate new role
- PUTUpdate role
- DELDelete role
- GETRetrieve all permissions of a role
- POSTAdd permission to role
- DELRemove permission from role
- GETRetrieve all members
- POSTCreate new member
- GETRetrieve member detail
- PUTUpdate member details
- DELDelete member
- GETRetrieve all roles of a member
- POSTAssigne role to member
- DELRemove role from member
Coupons & promotions API
- GETList all coupons
- POSTCreate coupon
- GETRetrieve coupon details
- PUTUpdate coupon
- DELDelete coupon
- GETList all coupon codes
- POSTAdd coupon code
- GETList all coupon customers
- GETRetrieve coupon usage
- GETList all promotions
- POSTCreate promotion
- GETRetrieve promotion details
- PUTUpdate promotion
- DELDelete promotion
- GETList all promotion usage
- GETList all promotion customers
Warehouse
Orders API
Shipping API
Customers API
Segments API
Payments API
Media Gallery API
Catalog
Update product review
PUT
/
catalog
/
products
/
{product_id}
/
reviews
/
{id}
curl --request PUT \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{product_id}/reviews/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "Pending",
"tags": [
"<string>"
],
"is_featured": true
}'
{
"message": "<string>",
"success": true,
"content": {
"review": {
"id": 123,
"product_id": "<string>",
"rating": 123,
"review_text": "<string>",
"name": "<string>",
"email": "<string>",
"status": "Pending",
"is_featured": true,
"tags": [
"<string>"
],
"images": [
{
"id": 123,
"title": "<string>",
"alternate_text": "<string>",
"sort_order": 123,
"url_tiny": "<string>",
"url_thumbnail": "<string>",
"url_standard": "<string>",
"url_zoom": "<string>",
"other_details": {}
}
],
"videos": [
{
"title": "<string>",
"cover_image_url": "<string>",
"video_preview_url": "<string>",
"sort_order": 123,
"other_details": {}
}
],
"review_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Available options:
Pending
, Approved
, Rejected
, Archived
Response
200 - application/json
OK
Maximum length:
128
Maximum length:
128
Available options:
Pending
, Approved
, Rejected
, Archived
Maximum length:
128
Maximum length:
128
Maximum length:
512
Maximum length:
512
Maximum length:
512
Maximum length:
512
curl --request PUT \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{product_id}/reviews/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "Pending",
"tags": [
"<string>"
],
"is_featured": true
}'
{
"message": "<string>",
"success": true,
"content": {
"review": {
"id": 123,
"product_id": "<string>",
"rating": 123,
"review_text": "<string>",
"name": "<string>",
"email": "<string>",
"status": "Pending",
"is_featured": true,
"tags": [
"<string>"
],
"images": [
{
"id": 123,
"title": "<string>",
"alternate_text": "<string>",
"sort_order": 123,
"url_tiny": "<string>",
"url_thumbnail": "<string>",
"url_standard": "<string>",
"url_zoom": "<string>",
"other_details": {}
}
],
"videos": [
{
"title": "<string>",
"cover_image_url": "<string>",
"video_preview_url": "<string>",
"sort_order": 123,
"other_details": {}
}
],
"review_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
}
}