Skip to content

Project review insertion

Request

Creates a new project review. This endpoint is available only when the 'Rating' module is active. Also, the e-shop must have store ratings enabled in the administration settings.

Security
shoptetAccessToken or shoptetPrivateApiToken
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/reviews/project \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "date": "2018-05-29T09:02:27+0200",
      "orderCode": "2011000002",
      "rating": 5,
      "description": "Snack was very good",
      "fullName": "John Doe",
      "email": "johndoe@email.tld",
      "customerGuid": "443cad54-73bc-11e8-8216-002590dad85e",
      "visible": false,
      "ipAddress": "213.46.237.24",
      "reaction": {
        "reactionCreated": "2018-05-29T09:02:27+0200",
        "reactionFullName": "John Doe",
        "reactionEmail": "johndoe@email.tld",
        "reactionText": "Thank you for your review!"
      }
    }
  }'

Responses

Created

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "review": {} }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }