API Reference

Reviews

What buyers said about your products. Reviews are written by buyers only — the API reads them and can remove them.

List reviews

GET/api/v1/reviewsAbilityreviews.read
Returns the store's reviews, newest first.

Query parameters

product_idinteger
Only one product's reviews.
ratinginteger
Only reviews with this rating, from 1 to 5.
per_pageinteger
Items per page, from 1 to 100. Default 20. A value outside that range returns 422.
pageinteger
Page number, from 1 to 10000. Default 1. A value outside that range returns 422.
curl "https://sellitex.com/api/v1/reviews?rating=1" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": [
    {
      "id": 301,
      "product_id": 12,
      "product_name": "VIP Diamante",
      "customer_id": 42,
      "author_name": "Fulano",
      "rating": 5,
      "body": "Entrega instantânea, recomendo!",
      "created_at": "2026-08-20T18:05:00+00:00"
    }
  ],
  "links": {
    "first": "…?page=1",
    "last": "…?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "per_page": 20,
    "to": 1,
    "total": 1
  }
}

Retrieve a review

GET/api/v1/reviews/{review}Abilityreviews.read
A record that belongs to another store answers 404, exactly like one that doesn't exist.

Path parameters

reviewintegerrequired
The review id.
curl "https://sellitex.com/api/v1/reviews/301" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": {
    "id": 301,
    "product_id": 12,
    "product_name": "VIP Diamante",
    "customer_id": 42,
    "author_name": "Fulano",
    "rating": 5,
    "body": "Entrega instantânea, recomendo!",
    "created_at": "2026-08-20T18:05:00+00:00"
  }
}

Remove a review

DELETE/api/v1/reviews/{review}Abilityreviews.write
Takes the review off the store. It is recorded in the audit log.

Path parameters

reviewintegerrequired
The review id.
curl -X DELETE "https://sellitex.com/api/v1/reviews/301" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response204
(no body)

The object

The fields this resource's endpoints return. Money is an integer in cents and dates are ISO 8601, in UTC.

idinteger
The review identifier.
product_idinteger
The product reviewed.
product_namestring
Product name.
customer_idinteger|null
The account that reviewed, when there is one.
author_namestring|null
The author's display name, or null for anonymous.
ratinginteger
Rating, from 1 to 5.
bodystring|null
Review text.
created_atstring
When it was written.