novinzodevelopers
Your store's APIApps referenceReviews

Import Reviews

POST/admin/reviews/import

Imports up to 100 reviews from another platform, published, with no order: source "migration", as a store migration brings them. Answers one outcome per review, in order: Imported with the review's id and notes on what was changed to fit (a message or reply shortened), or Skipped with the reason, such as a rating that is not one to five stars or a product (or variant) that is not one of the store's live ones. A key imported before, here or by a store migration, is answered Imported again with the same id, and changes nothing: retry a call freely. Only the store's owner, or an app API key, may call it: a team member is StoreOwnerRequiredError.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

reviews*array<>
Itemsitems <= 100

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/reviews/import" \  -H "Content-Type: application/json" \  -d '{    "reviews": [      {        "key": "string",        "productId": "string",        "rating": -9007199254740991,        "createdAt": "string"      }    ]  }'
[  {    "_tag": "Imported",    "key": "string",    "id": "string",    "notes": [      "string"    ]  }]