About the Review Requests API

The Review Requests API allows you to create and manage requests that can be sent to customers, asking them to provide reviews for a specific order or specific items.

With the Review Requests API, you can:

Before you begin

It is important to note the following points before starting to code:

  • The Review Requests API is currently only available with the "stores" namespace.
  • The order or items a review is requested for must exist within a site's orders or catalog. To retrieve these IDs use the eCommerce Orders API or the Stores Catalog API.

Use case

Terminology

  • Review request: A request sent to a customer to provide a review for a specific order or item.
  • Recipient: The contact to send a review request to.
Did this help?

Sample Use Case and Flow

This article presents a possible use case and corresponding sample flow that you can support. This can be a helpful jumping off point as you plan your implementation.

Retrieve tomorrow's scheduled review requests and cancel those for specific items

You can retrieve a list of all review requests scheduled to be sent tomorrow. This enables you to preview and manage these requests before they are sent.

To retrieve tomorrow's review requests:

  1. Call Query Review Requests with a filter for sendDate of tomorrow.
  2. Review the list and note if any review requests should be canceled for specific items.
  3. Cancel any unnecessary requests by calling Bulk Cancel Review Request By Filter with a filter for review requests containing those specific items.
Did this help?

Review Requests: Supported Filters and Sorting

The following table shows field support for filters and sorting for review request properties:

FieldSupported FiltersSortable
automationActivationId$eq, $ne, $in, $nin, $existsNo
communicationChannel$eq, $ne, $in, $ninNo
createdDate$eq, $ne, $lt, $lte, $gt, $gte $in, $ninYes
id$eq, $ne, $in, $ninNo
items.catalogItemId$eq, $ne, $in, $nin, $hasSome, $hasAllNo
items.reviewId$eq, $ne, $in, $nin, $hasSome, $hasAll, isEmptyNo
namespace$eq, $ne, $in, $ninNo
order.id$eq, $ne, $in, $nin, $existsNo
recipient.contactId$eq, $ne, $in, $ninNo
requestedBy.appId$eq, $ne, $in, $ninNo
requestedBy.identityType$eq, $ne, $in, $ninNo
requestedBy.wixUserId$eq, $ne, $in, $ninNo
sendDate$eq, $ne, $lt, $lte, $gt, $gte $in, $ninYes
status$eq, $ne, $in, $ninYes
Did this help?

Review Request Object


A review request is a request sent to a customer to solicit a review for a specific order or specific items.

Properties
idstringRead-onlyformat GUID

Review request ID.


revisionintegerRead-onlyformat int64

Revision number, which increments by 1 each time the review request is updated. To prevent conflicting changes, the current revision must be passed when updating the review request.

Ignored when creating a review request.


createdDatestringRead-onlyformat date-time

Date and time the review request was created.


updatedDatestringRead-onlyformat date-time

Date and time the review request was last updated.


sendDatestringformat date-time

Date and time the review request was, or will be, sent. This field is only informational and does not trigger a send action.


namespacestringminLength 1maxLength 100

Name of the Wix app whose catalog the items being reviewed belong to.

Supported values:

  • Wix Stores: stores

Currently, only Wix Stores is fully integrated with the Wix Reviews app.


orderOrder

Order that a review is requested for.


itemsArray <Item>maxItems 5

Items that a review is requested for.


recipientRecipient

Customer to send a review request to.


communicationChannelstring

Communication channel for sending the review request.


statusstringRead-only

Review request status.


automationActivationIdstringformat GUID

ID of the automation action that triggered the review request to be created.

This field is only used if a review request was created by the automation included with Wix Reviews. Also see the Automations API for more information.


requestedByRequestedByRead-only

ID of the user or app that generated the review request.


One Of
Choose one of the following parameters

sentOptionsSentOptionsRead-only

Info if status is SENT.


failedOptionsFailedOptionsRead-only

Info if status is FAILED.

ReviewRequest
JSON
{ "id": "15f470a4-a960-43bb-b1ed-886e1050efcd", "revision": "1", "createdDate": "2024-08-21T06:43:38.240Z", "updatedDate": "2024-08-21T07:22:40.086Z", "sendDate": "2024-08-21T06:44:38.231Z", "namespace": "stores", "order": { "id": "6f4770fc-b8ee-4bf2-9977-d048a7f27987", "number": "10049" }, "items": [ { "catalogItemId": "cd59cd36-b6d2-2cf3-9d48-81793a7bdbbd", "reviewId": "754df3c0-0cf3-4df5-b988-fc5a0eed0eb6" } ], "recipient": { "contactId": "8d141741-5caf-455b-9775-64b64119fa9a" }, "communicationChannel": "EMAIL", "status": "SCHEDULED", "automationActivationId": "73fff183-acf3-4770-b527-f65f9f10d5f6", "requestedBy": { "wixUserId": "28073e47-8038-4dd3-ad3c-343602992889", "identityType": "WIX_USER" } }
Did this help?

POST

Create Review Request


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a new review request.

A review request is a request sent to a customer to solicit a review for a specific order or specific items. This method requires either the order.id or items.catalogItemId.

You must pass either an order ID or at least 1 item ID:

  • Order ID only:: The review request automatically includes the 5 most expensive items from the order.
  • Item IDs only: The review request includes only the specified items.
  • Order ID and item IDs: The review request includes the specified items from the given order.
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Review Requests
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/reviews/v2/review-requests

Body Params
reviewRequestReviewRequestRequired

Review request to create.

Response Object
reviewRequestReviewRequest

Created review request.

Create Review Request
Request
cURL
curl -X POST \ 'https://www.wixapis.com/reviews/v2/review-requests' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>' \ -d '{ "reviewRequest": { "sendDate": "2024-08-21T06:44:38.231Z", "namespace": "stores", "order": { "id": "6f4770fc-b8ee-4bf2-9977-d048a7f27987", "number": "10049" }, "items": [ { "catalogItemId": "cd59cd36-b6d2-2cf3-9d48-81793a7bdbbd", } ], "recipient": { "contactId": "8d141741-5caf-455b-9775-64b64119fa9a" }, "communicationChannel": "EMAIL", "automationActivationId": "73fff183-acf3-4770-b527-f65f9f10d5f6", } }'
Response
JSON
{ "reviewRequest": { "id": "15f470a4-a960-43bb-b1ed-886e1050efcd", "revision": "1", "createdDate": "2024-08-21T06:43:38.240Z", "updatedDate": "2024-08-21T07:22:40.086Z", "sendDate": "2024-08-21T06:44:38.231Z", "namespace": "stores", "order": { "id": "6f4770fc-b8ee-4bf2-9977-d048a7f27987", "number": "10049" }, "items": [ { "catalogItemId": "cd59cd36-b6d2-2cf3-9d48-81793a7bdbbd" } ], "recipient": { "contactId": "8d141741-5caf-455b-9775-64b64119fa9a" }, "communicationChannel": "EMAIL", "status": "SCHEDULED", "automationActivationId": "73fff183-acf3-4770-b527-f65f9f10d5f6", "requestedBy": { "wixUserId": "28073e47-8038-4dd3-ad3c-343602992889", "identityType": "WIX_USER" } } }
Errors
400Invalid Argument

There is 1 error with this status code.

428Failed Precondition

There are 3 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?