---
search:
  tags:
    - Smart Listings V2
    - POST
seo:
  description: >-
    Read-only evaluation of rules. Returns the… Reference for the POST
    /api/v2/{team_slug}/{app_slug}/smart-listings/preview endpoint in the
    Management API v2.
sidebar:
  label: Preview smart listing
  badge: POST
title: Preview smart listing
type: openapi-operation
---
Read-only evaluation of rules. Returns the variants that match; nothing is written.

`POST /api/v2/{team_slug}/{app_slug}/smart-listings/preview`

**Request body** (`application/json`, required)

- `rules` (SmartListingRule[], required)

Request body example:

```json
{
  "rules": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "target": "stock",
      "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
      "operator": "less-than",
      "value_string": "string",
      "value_list": [
        "string"
      ],
      "value_float": 0
    }
  ]
}
```

**Responses**

- `200` — OK
- `400` — Request-level failure
- `401` — Request-level failure
- `403` — Request-level failure
- `500` — Request-level failure

Response example, 200:

```json
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "app_id": "affd1d10-9538-4fc8-9e0b-4594a28c1335",
      "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
      "variant_name": "string",
      "product_name": "string",
      "variant_number": "string",
      "custom_fields": {
        "property1": "string",
        "property2": "string"
      },
      "image_urls": [
        "string"
      ],
      "total_stock": 0,
      "category_slugs": [
        "string"
      ]
    }
  ]
}
```
