Preview smart listing results

Returns all product variants that match the specified listing rules without creating a listing

POST/api/v1/{team_slug}/{app_slug}/smart-listings/preview
API
Management
Updated
Apr 26, 2026

management-api:POST:/api/v1/{team_slug}/{app_slug}/smart-listings/preview

Returns all product variants that match the specified listing rules without creating a listing

API ownership

  • API family: Management API
  • Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data.
  • Do not use from: Browser-only storefront code or public clients.
  • Guide route: /apis/management/latest

The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.

Operation

  • Method: POST
  • Path: /api/v1/\{team_slug\}/\{app_slug\}/smart-listings/preview
  • Summary: Preview smart listing results
  • Description: Returns all product variants that match the specified listing rules without creating a listing
  • OpenAPI contract: management-api
  • Operation ID: Not documented in the OpenAPI contract.

Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.

Parameters2 parameters
NameInRequiredTypeDescription
app_slugpathYesstringApp slug
team_slugpathYesstringTeam slug
Request bodyDocumented body
  • Required: Yes
  • Description: smart-listing configuration
  • Content: application/json (object)

Smart Listing Request

PropertyTypeRequiredDetails
rulesobject[]Yes-
slugstringYes-

Listing Rule Request

PropertyTypeRequiredDetails
operatorenum("equal", "not-equal", "greater-than", "less-than", "contains")Yes-
targetenum("stock", "price", "attribute", "title", "category")Yes-
target_idstringNoused for warehouse stock validation
value_floatnumberNo-
value_liststring[]No-
value_stringstringNo-

Generated example (synthetic):

{
  "rules": [
    {
      "operator": "equal",
      "target": "stock",
      "target_id": "string",
      "value_float": 0,
      "value_list": [
        "string"
      ],
      "value_string": "string"
    }
  ],
  "slug": "string"
}
Responses5 statuses
StatusDescriptionContent
200All product-variants affected by the listing rulesapplication/json (object)
400Invalid request (e.g. bad UUID, validation error)application/json (object)
401Unauthorized accessapplication/json (object)
422Invalid request and not parsable by backendapplication/json (object)
500Internal server errorapplication/json (object)

200 - object

Smart Listing Products

PropertyTypeRequiredDetails
dataobject[]No-
detailsstring[]NoAdditional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanNo-
Listing Product Variant
PropertyTypeRequiredDetails
app_idstringNo-
attributesobject[]No-
category_slugsstring[]No-
custom_fieldsobjectNo-
idstringNo-
image_urlsstring[]No-
pricesobject[]No-
product_idstringNo-
product_namestringNo-
total_stockintegerNo-
variant_namestringNo-
variant_numberstringNo-
warehouse_stocksobject[]No-
Product Listing Attribute
PropertyTypeRequiredDetails
template_idstringNo-
template_namestringNo-
valuesstring[]No-
Price
PropertyTypeRequiredDetails
amountnumberNo-
currencystringNo-
on_salebooleanNo-
Warehouse Stock
PropertyTypeRequiredDetails
stockintegerNo-
warehouse_idstringNo-
{
  "data": [
    {
      "app_id": "string",
      "attributes": [
        {
          "template_id": null,
          "template_name": null,
          "values": null
        }
      ],
      "category_slugs": [
        "string"
      ],
      "custom_fields": {},
      "id": "string",
      "image_urls": [
        "string"
      ],
      "prices": [
        {
          "amount": null,
          "currency": null,
          "on_sale": null
        }
      ],
      "product_id": "string",
      "product_name": "string",
      "total_stock": 0,
      "variant_name": "string",
      "variant_number": "string",
      "warehouse_stocks": [
        {
          "stock": null,
          "warehouse_id": null
        }
      ]
    }
  ],
  "details": [
    "string"
  ],
  "success": false
}

400 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

401 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

422 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

500 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

Contract identity

Use these fields to confirm you are implementing the intended endpoint contract.

  • API family: Management API
  • Method: POST
  • Path: /api/v1/\{team_slug\}/\{app_slug\}/smart-listings/preview
  • Operation ID: Not documented in the OpenAPI contract.
  • OpenAPI tag: Smart Listings
  • OpenAPI summary: Preview smart listing results

Preview smart listing results

# Preview smart listing results Returns all product variants that match the specified listing rules without creating a listing
POST /api/v1/{team_slug}/{app_slug}/smart-listings/preview
Purpose

Returns all product variants that match the specified listing rules without creating a listing

Required inputs

app_slug path team_slug path

Primary response

200 ยท All product-variants affected by the listing rules

Operation key

management-api:POST:/api/v1/{team_slug}/{app_slug}/smart-listings/preview

## API ownership - API family: Management API - Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data. - Do not use from: Browser-only storefront code or public clients. - Guide route: [/apis/management/latest](/apis/management/latest) The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation. ## Operation - Method: `POST` - Path: `/api/v1/{team_slug}/{app_slug}/smart-listings/preview` - Summary: Preview smart listing results - Description: Returns all product variants that match the specified listing rules without creating a listing - OpenAPI contract: management-api - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `management-api:POST:/api/v1/{team_slug}/{app_slug}/smart-listings/preview` Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID. ## Parameters | Name | In | Required | Type | Description | | --- | --- | --- | --- | --- | | app_slug | path | Yes | string | App slug | | team_slug | path | Yes | string | Team slug | ## Request body - Required: Yes - Description: smart-listing configuration - Content: application/json (object) ### Smart Listing Request | Property | Type | Required | Details | | --- | --- | --- | --- | | `rules` | object[] | Yes | - | | `slug` | string | Yes | - | #### Listing Rule Request | Property | Type | Required | Details | | --- | --- | --- | --- | | `operator` | enum("equal", "not-equal", "greater-than", "less-than", "contains") | Yes | - | | `target` | enum("stock", "price", "attribute", "title", "category") | Yes | - | | `target_id` | string | No | used for warehouse stock validation | | `value_float` | number | No | - | | `value_list` | string[] | No | - | | `value_string` | string | No | - | **Generated example (synthetic):** ```json { "rules": [ { "operator": "equal", "target": "stock", "target_id": "string", "value_float": 0, "value_list": [ "string" ], "value_string": "string" } ], "slug": "string" } ``` ## Responses | Status | Description | Content | | --- | --- | --- | | 200 | All product-variants affected by the listing rules | application/json (object) | | 400 | Invalid request (e.g. bad UUID, validation error) | application/json (object) | | 401 | Unauthorized access | application/json (object) | | 422 | Invalid request and not parsable by backend | application/json (object) | | 500 | Internal server error | application/json (object) | ### 200 - object #### Smart Listing Products | Property | Type | Required | Details | | --- | --- | --- | --- | | `data` | object[] | No | - | | `details` | string[] | No | Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes | | `success` | boolean | No | - | ##### Listing Product Variant | Property | Type | Required | Details | | --- | --- | --- | --- | | `app_id` | string | No | - | | `attributes` | object[] | No | - | | `category_slugs` | string[] | No | - | | `custom_fields` | object | No | - | | `id` | string | No | - | | `image_urls` | string[] | No | - | | `prices` | object[] | No | - | | `product_id` | string | No | - | | `product_name` | string | No | - | | `total_stock` | integer | No | - | | `variant_name` | string | No | - | | `variant_number` | string | No | - | | `warehouse_stocks` | object[] | No | - | ##### Product Listing Attribute | Property | Type | Required | Details | | --- | --- | --- | --- | | `template_id` | string | No | - | | `template_name` | string | No | - | | `values` | string[] | No | - | ##### Price | Property | Type | Required | Details | | --- | --- | --- | --- | | `amount` | number | No | - | | `currency` | string | No | - | | `on_sale` | boolean | No | - | ##### Warehouse Stock | Property | Type | Required | Details | | --- | --- | --- | --- | | `stock` | integer | No | - | | `warehouse_id` | string | No | - |
Generated example (synthetic) ```json { "data": [ { "app_id": "string", "attributes": [ { "template_id": null, "template_name": null, "values": null } ], "category_slugs": [ "string" ], "custom_fields": {}, "id": "string", "image_urls": [ "string" ], "prices": [ { "amount": null, "currency": null, "on_sale": null } ], "product_id": "string", "product_name": "string", "total_stock": 0, "variant_name": "string", "variant_number": "string", "warehouse_stocks": [ { "stock": null, "warehouse_id": null } ] } ], "details": [ "string" ], "success": false } ```
### 400 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ### 401 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ### 422 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ### 500 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ## Contract identity Use these fields to confirm you are implementing the intended endpoint contract. - API family: Management API - Method: `POST` - Path: `/api/v1/{team_slug}/{app_slug}/smart-listings/preview` - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `management-api:POST:/api/v1/{team_slug}/{app_slug}/smart-listings/preview` - OpenAPI tag: Smart Listings - OpenAPI summary: Preview smart listing results