palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/me/reviews/{review_id}/vote

Vote a review helpful or not helpful

Record or update the signed-in customer's helpfulness vote on a published product or store review.

Called by a signed-in user of your app, with their token and the publishable key.

Path

review_idstring · requiredPath parameter review_id.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/me/reviews/<review_id>/vote" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200Updated vote counts

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation VoteReview of commerce's contract.