# Partner reviews

List the partner organizations that worked on the store and write, edit or delete the store owner's review of each.

Partner organizations build stores and hand them over, or work on them as collaborators. The store owner reviews them: 1 to 5 stars and text, one review per partner organization per store. A partner can be reviewed once it handed the store over, or after holding collaborator access for 7 days; past partners stay reviewable. The partner needs a Partner Directory listing, and the owner can't review an organization they belong to.

A review appears on the partner's public listing at once and counts toward its average rating, signed with the store's name when `show_store_name` is true, otherwise "Verified client". The partner can reply once in public (`reply`) and can report a review to Tringify; Tringify can hide a review (`status` `hidden`, with `hidden_reason`), which takes it off the listing and its rating.

Only the store owner reviews partners. Reads use `read_reviews` and changes `write_reviews`, and the request must come from a Store Admin API token the owner created or an AI tool the owner connected; app tokens and other staff are refused with `PARTNER_REVIEW_OWNER_ONLY`. A store can make 20 review changes an hour.

## Endpoints

## List partners to review

`GET /api/2025-01/partner-reviews`

Returns every partner organization that handed the store over or has or had collaborator access, current and past, with `relationship` (`handoff` or `collaborator`), `current`, `can_review` and, when it is false, `reason`: `too_soon` (collaborator access held for less than 7 days; `reviewable_from` says when), `no_listing` (the partner has no Partner Directory listing) or `own_organization` (the owner belongs to it). `review` is the store's review of the partner, or null: `version` counts its versions, `edited_at` is null until a real edit, `can_edit` is false (with `edit_blocked_reason`) once Tringify hid it, and a `reply` with `earlier_version` true answered a version before the current one. The `*_display` fields are dates written in the store's time zone and the request language. `limits` holds the rating range and the text length. Only the store owner can review partners: the request must come from a Store Admin API token the owner created or a tool the owner connected; an app token is refused with `PARTNER_REVIEW_OWNER_ONLY`.

Scope: `read_reviews`

```curl
curl 'https://api-store.tringify.com/api/2025-01/partner-reviews' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "limits": {
      "body_max_length": 2000,
      "body_min_length": 10,
      "rating_max": 5,
      "rating_min": 1
    },
    "partners": [
      {
        "can_review": true,
        "current": false,
        "listing_url": "https://partners.tringify.com/directory/northwind-studio",
        "organization_id": "4b8f2c6e-9d1a-4e37-b5f0-2a6c8d9e1f73",
        "organization_name": "Northwind Studio",
        "reason": null,
        "relationship": "handoff",
        "review": {
          "body": "They moved our catalogue over in a week and trained the team on fulfilment.",
          "can_edit": true,
          "created_at": "2026-12-01T14:02:00Z",
          "created_display": "Dec 1, 2026",
          "edit_blocked_reason": null,
          "edited_at": "2026-12-05T10:40:00Z",
          "edited_display": "Dec 5, 2026",
          "id": "8d3e1f52-6a7b-4c90-9e21-5f4a3b2c1d06",
          "listing_url": "https://partners.tringify.com/directory/northwind-studio",
          "organization_id": "4b8f2c6e-9d1a-4e37-b5f0-2a6c8d9e1f73",
          "rating": 5,
          "reply": {
            "body": "Thank you, it was a pleasure working with your team.",
            "earlier_version": true,
            "replied_at": "2026-12-03T09:15:00Z",
            "replied_display": "Dec 3, 2026",
            "updated_at": "2026-12-03T09:15:00Z",
            "updated_display": "Dec 3, 2026",
            "version": 1
          },
          "show_store_name": false,
          "status": "published",
          "updated_at": "2026-12-05T10:40:00Z",
          "version": 2
        },
        "reviewable_from": null,
        "reviewable_from_display": null
      }
    ]
  },
  "success": true
}
```

## Review a partner

`POST /api/2025-01/partner-reviews`

Writes the store's review of a partner listed with `can_review` true: 1 to 5 stars and 10 to 2000 characters of text. The review appears on the partner's Partner Directory listing at once, signed with the store's name when `show_store_name` is true, otherwise "Verified client". The partner is told about it and can answer once in public. A store reviews each partner once; edit the review to change it. Only the store owner can review partners: the request must come from a Store Admin API token the owner created or a tool the owner connected; an app token is refused with `PARTNER_REVIEW_OWNER_ONLY`.

Scope: `write_reviews`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/partner-reviews' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "They moved our catalogue over in a week and trained the team on fulfilment.",
  "organization_id": "4b8f2c6e-9d1a-4e37-b5f0-2a6c8d9e1f73",
  "rating": 5,
  "show_store_name": false
}'
```

Response:

```json
{
  "data": {
    "body": "They moved our catalogue over in a week and trained the team on fulfilment.",
    "can_edit": true,
    "created_at": "2026-12-01T14:02:00Z",
    "created_display": "Dec 1, 2026",
    "edit_blocked_reason": null,
    "edited_at": "2026-12-05T10:40:00Z",
    "edited_display": "Dec 5, 2026",
    "id": "8d3e1f52-6a7b-4c90-9e21-5f4a3b2c1d06",
    "listing_url": "https://partners.tringify.com/directory/northwind-studio",
    "organization_id": "4b8f2c6e-9d1a-4e37-b5f0-2a6c8d9e1f73",
    "rating": 5,
    "reply": {
      "body": "Thank you, it was a pleasure working with your team.",
      "earlier_version": true,
      "replied_at": "2026-12-03T09:15:00Z",
      "replied_display": "Dec 3, 2026",
      "updated_at": "2026-12-03T09:15:00Z",
      "updated_display": "Dec 3, 2026",
      "version": 1
    },
    "show_store_name": false,
    "status": "published",
    "updated_at": "2026-12-05T10:40:00Z",
    "version": 2
  },
  "success": true
}
```

## Edit a partner review

`PUT /api/2025-01/partner-reviews/{id}`

Replaces the rating, text and `show_store_name`, at once and in public. Every real edit is kept as the review's next version: `version` goes up, `edited_at` is set, the public listing shows the review as edited and the partner is told. A request that changes none of the three returns the review as it is and records nothing. The listing's rating follows at once. A review Tringify hid can't be edited; it can still be deleted. Only the store owner can review partners: the request must come from a Store Admin API token the owner created or a tool the owner connected; an app token is refused with `PARTNER_REVIEW_OWNER_ONLY`.

Scope: `write_reviews`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/partner-reviews/5ff7d4ea-3250-4a4d-9d26-07f64d917d31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "They moved our catalogue over in a week and trained the team on fulfilment.",
  "rating": 5,
  "show_store_name": false
}'
```

Response:

```json
{
  "data": {
    "body": "They moved our catalogue over in a week and trained the team on fulfilment.",
    "can_edit": true,
    "created_at": "2026-12-01T14:02:00Z",
    "created_display": "Dec 1, 2026",
    "edit_blocked_reason": null,
    "edited_at": "2026-12-05T10:40:00Z",
    "edited_display": "Dec 5, 2026",
    "id": "8d3e1f52-6a7b-4c90-9e21-5f4a3b2c1d06",
    "listing_url": "https://partners.tringify.com/directory/northwind-studio",
    "organization_id": "4b8f2c6e-9d1a-4e37-b5f0-2a6c8d9e1f73",
    "rating": 5,
    "reply": {
      "body": "Thank you, it was a pleasure working with your team.",
      "earlier_version": true,
      "replied_at": "2026-12-03T09:15:00Z",
      "replied_display": "Dec 3, 2026",
      "updated_at": "2026-12-03T09:15:00Z",
      "updated_display": "Dec 3, 2026",
      "version": 1
    },
    "show_store_name": false,
    "status": "published",
    "updated_at": "2026-12-05T10:40:00Z",
    "version": 2
  },
  "success": true
}
```

## Delete a partner review

`DELETE /api/2025-01/partner-reviews/{id}`

Removes the review and the partner's reply from the Partner Directory; the listing's rating follows at once. The store can review the partner again afterwards. Only the store owner can review partners: the request must come from a Store Admin API token the owner created or a tool the owner connected; an app token is refused with `PARTNER_REVIEW_OWNER_ONLY`.

Scope: `write_reviews`

```curl
curl -X DELETE 'https://api-store.tringify.com/api/2025-01/partner-reviews/5ff7d4ea-3250-4a4d-9d26-07f64d917d31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"deleted":true}}
```

