novinzodevelopers
Your store's APIApps referenceReviews

Create Order Review

POST/admin/reviews/orders/{orderId}

Publishes the buyer's review of one line of one of the store's paid orders, such as one paid through your own checkout, as if they had left it on their order page: source "buyer", status "published", under the order's customer. orderItemId names the line. An empty message leaves a rating without words. A line takes one review, from either surface: a second is ReviewAlreadySubmittedError. An order of another store, or none the store has, is OrderNotFoundError; one not yet paid for is OrderNotPaidError. Only the store's owner, or an app API key, may call it: a team member is StoreOwnerRequiredError.

Path Parameters

orderId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

orderItemId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
rating*number

Value in

  • 1
  • 2
  • 3
  • 4
  • 5
message*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/reviews/orders/string" \  -H "Content-Type: application/json" \  -d '{    "orderItemId": "string",    "rating": 1,    "message": "string"  }'
{  "id": "string",  "productId": "string",  "productVariantId": "string",  "productName": "string",  "variantName": "string",  "orderId": "string",  "orderItemId": "string",  "customerId": "string",  "customerEmail": "string",  "rating": 1,  "message": "string",  "reply": "string",  "repliedAt": "string",  "status": "published",  "source": "buyer",  "automatic": true,  "createdAt": "string"}