reviews
GET
https://hermeticor.com /ingest/v1/reviews Published reviews of one product, newest first
Parameters
productIdstringqueryrequiredlimitintegerquerycursorstringqueryreviewTypestringqueryratingintegerqueryminRatingintegerqueryverifiedstringqueryhasMediastringquerysortstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/reviews?productId=<productId>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"productId": "string",
"reviewType": "string",
"rating": 0,
"title": "string",
"body": "string",
"authorName": "string",
"verified": true,
"featured": true,
"images": [
"string"
],
"publicReply": "string",
"publicReplyAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredproductIdstringrequiredreviewTypestringrequiredratingintegerrequiredtitlestringrequiredbodystringrequiredauthorNamestringrequiredverifiedbooleanrequiredfeaturedbooleanrequiredimagesstring[]requiredpublicReplystringrequiredpublicReplyAtstringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /ingest/v1/reviews Submit a product review; it stays pending until a moderator publishes it
Request body
application/json
productIdstringrequiredreviewTypestringratingintegerauthorNamestringtitlestringbodystringemailstringorderIdstringimagesstring[]{
"productId": "string",
"reviewType": "review",
"rating": 0,
"authorName": "string",
"title": "string",
"body": "string",
"email": "string",
"orderId": "string",
"images": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/reviews" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"productId":"string","reviewType":"review","rating":0,"authorName":"string","title":"string","body":"string","email":"string","orderId":"string","images":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /ingest/v1/reviews/media Upload one review photo (multipart field "file"; JPEG, PNG, WebP or GIF); send the returned URL in the review's images
Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/reviews/media" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredGET
https://hermeticor.com /ingest/v1/review-values-reports Count, average and 1-5 histogram of published reviews, per product
Parameters
productIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/review-values-reports" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"productId": "string",
"count": 0,
"average": 0,
"histogram": {}
}
],
"nextCursor": "string"
}Schema
itemsItemsItem80[]requiredShow child parameters
productIdstringrequiredcountintegerrequiredaveragenumberrequiredhistogramobjectrequirednextCursorstringrequiredUpdated