title: Catalog Page Search Request
x-tags:
  - Catalog
type: object
properties:
  page:
    type:
      - integer
      - 'null'
    minimum: 1
    default: 1
  per_page:
    type:
      - integer
      - 'null'
    minimum: 1
    maximum: 25
    default: 25
  sort_field:
    oneOf:
      - type: 'null'
      - $ref: ./CatalogSortField.yaml
    default: uuid
  sort_direction:
    oneOf:
      - type: 'null'
      - $ref: ./SortDirection.yaml
    default: asc
  filters:
    type:
      - object
      - 'null'
    properties:
      model_types:
        type:
          - array
          - 'null'
        uniqueItems: true
        items:
          $ref: ./CatalogModelType.yaml
      tags:
        oneOf:
          - type: 'null'
          - $ref: ./CatalogUuidList.yaml
        description: UUIDs of tags owned by the merchant.
      query:
        type:
          - string
          - 'null'
        minLength: 1
        maxLength: 255
        description: The catalog model names to search against.
      excluded_uuids:
        type:
          - array
          - 'null'
        uniqueItems: true
        items:
          type: string
          format: uuid
        description: Catalog model UUIDs to exclude from the results.
