TanqoryDocs

tanqoryExtProductReviewSubmit

  • Mutation
  • Storefront

Keeps a shopper's review of a product (1-5 stars, an optional title of one line up to 150 characters, text up to 5000 characters, the name to show up to 120 characters and an email that is never shown). It waits for the merchant's approval. Private token only.

Arguments

ArgumentTypeRequiredDefault
productIdID!Required
ratingInt!Required
titleStringOptional
bodyString!Required
authorString!Required
emailString!Required

Returns

TanqoryExtProductReviewSubmitPayload!

FieldTypeDescription
pendingBoolean!

The review was kept; it waits for the merchant's approval before it shows.

userErrors[TanqoryExtStorefrontReviewUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtProductReviewSubmit($productId: ID!, $rating: Int!, $body: String!, $author: String!, $email: String!) {\n  tanqoryExtProductReviewSubmit(productId: $productId, rating: $rating, body: $body, author: $author, email: $email) {\n    pending\n    userErrors {\n      field\n      message\n      code\n    }\n  }\n}","variables":{"productId":"gid://tanqory/Type/id","rating":1,"body":"","author":"","email":""}}'

Built from commit 0cac88ece6de · API version 2026-10