Skip to content

katana_public_api_client.models.customer_search_request

katana_public_api_client.models.customer_search_request

Classes

CustomerSearchRequest

Structured search body for POST /customers/search. Returns the same paginated {"data": [...]} shape as the corresponding list endpoint, plus an X-Pagination header.

Example:
    {'filter': {'and': [{'category': None, 'eq': 'Wholesale'}]}, 'order': ['name ASC'], 'limit': 50, 'page': 1}

Attributes:
    filter_ (CustomerSearchFilter | Unset): Filter clause for ``POST /customers/search``. Only the fields listed
        here may appear; unknown fields are rejected with 422. Custom field
        values are addressable via ``custom_fields.<uuid>`` keys.
    order (list[str] | str | Unset): Sort directive(s). Each entry is ``<field> ASC|DESC``
        (direction defaults to ASC). Only filterable fields may be
        used; ``custom_fields.<uuid>`` paths are orderable.
    limit (int | Unset): Page size; maximum 200. Omit to let the server apply its
        default of 50.
    page (int | Unset): 1-based page number. Omit to let the server default to 1.