> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get pending reviews

> Retrieve products from completed orders that are pending review.

## Request

```http theme={null}
GET /reviews/pending
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
```

## Headers

| Header          | Type   | Description                                   |
| --------------- | ------ | --------------------------------------------- |
| `Authorization` | string | Provide the customer token as `Bearer <jwt>`. |
| `x-shop-id`     | string | Identify the shop.                            |

<Note>
  An order is eligible for review ONLY if its status is `completed` AND: 1. It
  has no shipment attached, OR 2. The attached shipment's status is
  `delivered`.
</Note>

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Pending reviews retrieved successfully",
    "data": {
        "pendingProducts": [
            {
                "orderId": "6938414ad9485f4d96134f8c",
                "orderNumber": 9,
                "orderDate": "2025-12-09T15:33:30.039Z",
                "product": {
                    "_id": "68bc52f0e15404b8e40a7c52",
                    "name": "Salesive Hoodie Merch",
                    "slug": "salesive-hoodie-merch",
                    "images": [
                        "https://cdn.salesive.com/products/hoodie-1.jpg",
                        "https://cdn.salesive.com/products/hoodie-2.jpg"
                    ],
                    "price": 25000
                },
                "variant": "692caacbb07303c9be5ea8f2",
                "variantAttributes": {
                    "color": "green"
                },
                "imageUrl": "https://cdn.salesive.com/products/hoodie-1.jpg"
            },
            {
                "orderId": "6937b2a9e455c711f1fc8bd4",
                "orderNumber": 5,
                "orderDate": "2025-12-09T05:24:57.688Z",
                "product": {
                    "_id": "68c4f1cab50803b7b1310c60",
                    "name": "Apple MacBook Pro 16\" (M3 Pro, 2023)",
                    "slug": "apple-macbook-pro-16-m3-pro-2023",
                    "images": [
                        "https://cdn.salesive.com/products/macbook-1.jpg"
                    ],
                    "price": 2500000
                },
                "variant": null,
                "variantAttributes": {},
                "imageUrl": "https://cdn.salesive.com/products/macbook-1.jpg"
            }
        ],
        "total": 2
    }
}
```

## Empty response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Pending reviews retrieved successfully",
    "data": {
        "pendingProducts": [],
        "total": 0
    }
}
```

## Error response

```json theme={null}
{
    "status": 401,
    "success": false,
    "message": "Unauthorized",
    "data": {}
}
```


## OpenAPI

````yaml GET /reviews/pending
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /reviews/pending:
    get:
      summary: Get pending reviews
      description: Retrieve products from completed orders that are pending review.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
      responses:
        '200':
          description: Pending reviews retrieved successfully
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````