Skip to main content
In this guide, you’ll learn how to attach a store’s response to a review from your own server code. A response is a single public note the store adds to a review it received.

Run the workflow

respondReviewWorkflow writes the seller_note on an existing review:
src/api/custom/respond/route.ts
A store can respond once. The workflow throws if the review already has a seller_note, and it throws NOT_FOUND if the review id doesn’t exist. It captures the previous value so a rollback clears the response again.

Clearing a response

The respond flow won’t overwrite an existing note. To replace a response, first clear it with updateReviewWorkflow, then respond again:
Responding never changes the review’s status. A store can respond to a pending review, but the response only becomes public once the review is published.