Browse the API docs

Reviews

Product reviews from Loom Reviews, in stores that have it installed (other stores answer 403). Published reviews show on the storefront and count towards the product's stars; pending, hidden and spam ones don't. Customers' words are plain text. Reviews created here have the source api.

Endpoints#

Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.

The review object#

What the endpoints below return for one review, and the payload of the reviews/created, reviews/published webhooks.

review
{
  "id": "cm3rev0001",
  "product_id": "cm2prod0001",
  "rating": 5,
  "title": "Soft and true to size",
  "body": "The lawn is soft and the print looks just like the photos.",
  "author_name": "Fatima M.",
  "author_email": "[email protected]",
  "author_phone": null,
  "photos": [
    "https://dhaaga.storeloom.example/uploads/cm2store01/9f2c4a.jpg"
  ],
  "status": "published",
  "verified": true,
  "source": "request",
  "reply": "Thank you, Fatima!",
  "replied_at": "2026-10-28T09:12:00.000Z",
  "helpful_count": 4,
  "reported_count": 0,
  "order_id": "cm3order001",
  "customer_id": "cm3cust001",
  "locale": "ur",
  "external_id": null,
  "published_at": "2026-10-27T18:40:00.000Z",
  "created_at": "2026-10-27T18:40:00.000Z",
  "updated_at": "2026-10-28T09:12:00.000Z"
}

List reviews#

GET/reviews.jsonread_reviews

The store's reviews, with the filters below. author_email and author_phone are null unless the app also has the read_customers scope.

Query parameters
ParameterDescription
limitResults per page, 1–250 (default 50).
page_infoCursor from the Link header for the next or previous page.
since_idOnly reviews after this id.
idsComma-separated ids.
product_idReviews of this product.
statuspending, published, hidden or spam.
ratingReviews with this many stars (1–5).
verifiedtrue: only verified buyers' reviews; false: only the others.
created_at_min / created_at_max, updated_at_min / updated_at_maxISO 8601 bounds.
fieldsComma-separated fields to return.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/reviews.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "reviews": [ … ] }

Count reviews#

GET/reviews/count.jsonread_reviews
Query parameters
ParameterDescription
product_id, status, rating, verified, created_at_*, updated_at_*Same filters as the list.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/reviews/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "count": 23 }

Get a review#

GET/reviews/{id}.jsonread_reviews

author_email and author_phone are null unless the app also has the read_customers scope.

Request
curl "https://store.weftgrid.com/api/admin/2026-10/reviews/$REVIEW_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "review": {
    "id": "cm3rev0001",
    "product_id": "cm2prod0001",
    "rating": 5,
    "title": "Soft and true to size",
    "body": "The lawn is soft and the print looks just like the photos.",
    "author_name": "Fatima M.",
    "author_email": "[email protected]",
    "author_phone": null,
    "photos": ["https://dhaaga.storeloom.example/uploads/cm2store01/9f2c4a.jpg"],
    "status": "published",
    "verified": true,
    "source": "request",
    "reply": "Thank you, Fatima!",
    "replied_at": "2026-10-28T09:12:00.000Z",
    "helpful_count": 4,
    "reported_count": 0,
    "order_id": "cm3order001",
    "customer_id": "cm3cust001",
    "locale": "ur",
    "external_id": null,
    "published_at": "2026-10-27T18:40:00.000Z",
    "created_at": "2026-10-27T18:40:00.000Z",
    "updated_at": "2026-10-28T09:12:00.000Z"
  }
}

Create a review#

POST/reviews.jsonwrite_reviews

Adds a review (source api). product_id, rating (1–5), author_name and a body or title are required. status is published, pending or hidden; without it the store's own rule decides, as for reviews written on the storefront. With order_id, the review is a verified buyer's when that order has the product. photos are https image links (up to 5), shown as they are.

Request body
{ "review": { "product_id": "cm2prod0001", "rating": 5, "title": "Lovely colours", "body": "Bought it for Eid, everyone asked where it was from.", "author_name": "Sana T.", "author_email": "[email protected]", "order_id": "cm3order004" } }
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/reviews.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "review": { "product_id": "cm2prod0001", "rating": 5, "title": "Lovely colours", "body": "Bought it for Eid, everyone asked where it was from.", "author_name": "Sana T.", "author_email": "[email protected]", "order_id": "cm3order004" } }'
Example responseShow
{
  "review": {
    "id": "cm3rev0001",
    "product_id": "cm2prod0001",
    "rating": 5,
    "title": "Soft and true to size",
    "body": "The lawn is soft and the print looks just like the photos.",
    "author_name": "Fatima M.",
    "author_email": "[email protected]",
    "author_phone": null,
    "photos": ["https://dhaaga.storeloom.example/uploads/cm2store01/9f2c4a.jpg"],
    "status": "published",
    "verified": true,
    "source": "request",
    "reply": "Thank you, Fatima!",
    "replied_at": "2026-10-28T09:12:00.000Z",
    "helpful_count": 4,
    "reported_count": 0,
    "order_id": "cm3order001",
    "customer_id": "cm3cust001",
    "locale": "ur",
    "external_id": null,
    "published_at": "2026-10-27T18:40:00.000Z",
    "created_at": "2026-10-27T18:40:00.000Z",
    "updated_at": "2026-10-28T09:12:00.000Z"
  }
}

Update a review#

PUT/reviews/{id}.jsonwrite_reviews

Changes a review's status (published, pending, hidden or spam) and the store's public reply (null or "" removes it). The customer's own words aren't changed through the API.

Request body
{ "review": { "status": "published", "reply": "Thank you, Sana! Eid Mubarak." } }
Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/reviews/$REVIEW_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "review": { "status": "published", "reply": "Thank you, Sana! Eid Mubarak." } }'
Example responseShow
{
  "review": {
    "id": "cm3rev0001",
    "product_id": "cm2prod0001",
    "rating": 5,
    "title": "Soft and true to size",
    "body": "The lawn is soft and the print looks just like the photos.",
    "author_name": "Fatima M.",
    "author_email": "[email protected]",
    "author_phone": null,
    "photos": ["https://dhaaga.storeloom.example/uploads/cm2store01/9f2c4a.jpg"],
    "status": "published",
    "verified": true,
    "source": "request",
    "reply": "Thank you, Fatima!",
    "replied_at": "2026-10-28T09:12:00.000Z",
    "helpful_count": 4,
    "reported_count": 0,
    "order_id": "cm3order001",
    "customer_id": "cm3cust001",
    "locale": "ur",
    "external_id": null,
    "published_at": "2026-10-27T18:40:00.000Z",
    "created_at": "2026-10-27T18:40:00.000Z",
    "updated_at": "2026-10-28T09:12:00.000Z"
  }
}

Delete a review#

DELETE/reviews/{id}.jsonwrite_reviews

Deletes the review for good, with the photos the customer uploaded.

Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/reviews/$REVIEW_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
204 No Content