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

# The thresholds behind the computed product badges

> How the dynamic badges are computed for this merchant: the New in window, how many products count as bestsellers, slow movers and trending, the low-stock percentage and the order window. Read-only; a merchant that never saved settings gets the defaults.



## OpenAPI

````yaml /api-reference/openapi/lite.json get /settings/dynamic-status
openapi: 3.1.0
info:
  title: Search & Merchandising API
  version: 1.0.0
  description: >-
    REST API behind Depict: Search & Merchandising, the native Shopify app:
    onboarding, collections, boost & bury, dashboards, A/B testing and
    multi-store management. Endpoints are served under the /api/lite prefix and
    are authenticated with the Shopify session token that App Bridge issues to
    the embedded app.
servers:
  - url: /api/lite
security:
  - ShopifySessionToken: []
paths:
  /settings/dynamic-status:
    get:
      summary: The thresholds behind the computed product badges
      description: >-
        How the dynamic badges are computed for this merchant: the New in
        window, how many products count as bestsellers, slow movers and
        trending, the low-stock percentage and the order window. Read-only; a
        merchant that never saved settings gets the defaults.
      operationId: dynamicStatus
      parameters:
        - schema:
            type: string
            description: Lite merchant id, e.g. `shopify-<shop id>`.
          required: true
          description: Lite merchant id, e.g. `shopify-<shop id>`.
          name: merchant_id
          in: query
      responses:
        '200':
          description: The badge thresholds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicStatusConfig'
        '400':
          description: >-
            The query, path or body failed the schema; `detail` carries zod's
            messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '403':
          description: Authenticated, but this identity may not call the API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '404':
          description: Merchant not found for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    DynamicStatusConfig:
      type: object
      properties:
        config_name:
          type: string
        new_in_days:
          type: integer
          description: A product is New in for this many days.
        bestseller_n_products:
          type: integer
          description: How many top sellers get Bestseller.
        slowmover_n_products:
          type: integer
          description: How many bottom sellers get Slow mover.
        low_in_stock_percentage:
          type: integer
          description: Low stock below this percentage of variants in stock.
        order_data_days:
          type: integer
          description: Days of orders the sales-based badges are computed over.
        trending_n_products:
          type: integer
          description: How many products get Trending.
        new_in_date_source:
          type: string
          enum:
            - published_at
            - created_at
          description: Which product date starts the New in window.
      required:
        - new_in_days
        - bestseller_n_products
        - slowmover_n_products
        - low_in_stock_percentage
        - order_data_days
        - trending_n_products
        - new_in_date_source
    Detail:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
      description: 'Every 4xx/5xx body: `{detail}`.'
  securitySchemes:
    ShopifySessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Shopify App Bridge session token of the embedded Depict: Search &
        Merchandising app. The shop in the token determines the merchant;
        merchant_id parameters must belong to that shop.

````