Skip to main content

Reviews API

The Reviews API lets you request an app review modal overlaid on your app in the Shopify admin. You control when to request the modal, but it only displays if certain conditions are met. Use this API to prompt merchants for feedback at the right moment in your app workflow.

It's better to request a review at the end of a successful workflow than when a merchant first opens your app, or at any point that interrupts their task. Don't trigger a request with a merchant action, as rate-limiting might prevent the modal from displaying, making your app appear to be broken.

You can use your development store to test the Reviews API, which bypasses the rate limits and restrictions. Reviews submitted from development stores are not published on the Shopify App Store.

  • Review prompts: Request an app review modal at strategic moments like after a successful merchant action.
  • Rating collection: Prompt merchants to leave app store ratings and reviews.
  • Timing control: Choose when to request a review modal, though display is subject to Shopify's rate limits and conditions.
  • Feedback collection: Gather merchant feedback through the native Shopify review flow.

The reviews object provides methods for requesting app review modals from merchants.

Anchor to request
request
() => Promise<>
required

Requests an app review modal. The modal only displays if rate limits and eligibility conditions are met. Returns a Promise that resolves to a response object with success, code, and message properties indicating whether the modal was shown and, if not, the reason why.


Anchor to Response codes and messagesResponse codes and messages

A successful request to the Reviews API has a single response code:

  • success: true
  • code: success
  • message: Review modal displayed

If a request is unsuccessful (success is false), the response includes a code and message explaining why the modal was not displayed, such as rate limits or merchant eligibility.

  • already-open: Review modal is already open
  • already-reviewed: Merchant already reviewed this app
  • annual-limit-reached: Review modal already displayed the maximum number of times within the last 365 days
  • cancelled: Review modal opening was cancelled
  • cooldown-period: Review modal already displayed within the last 60 days
  • merchant-ineligible: Merchant isn't eligible to review this app
  • mobile-app: Review modal not supported on mobile devices
  • open-in-progress: Review modal opening is already in progress
  • recently-installed: Merchant installed this app for less than 24 hours

Anchor to Rate limits and restrictionsRate limits and restrictions

A review modal will only be displayed to the merchant if certain conditions are met. For each condition below, the corresponding error code is listed as a reference.

The Reviews API applies rate limits to ensure a good merchant experience and to prevent abuse. A review modal is only displayed to a merchant:

  • Once within any 60-day period (cooldown-period).
  • Three times within any 365-day period (annual-limit-reached).

A review modal is never displayed in the following cases:

  • The merchant already reviewed your app (already-reviewed).
  • The merchant is on a mobile device (mobile-app).
  • The merchant is ineligible to leave a review (merchant-ineligible).
  • The merchant has installed your app for less than 24 hours (recently-installed).

Was this page helpful?