filter.md

Filter

Use $filter to narrow the resources returned by an API request.

The current OpenAPI specifications document $filter for:

Syntax

$filter=PROPERTY_NAME operator VALUE

Example:

GET https://api2.saleslayer.com/catalog/Products?$filter=contains(prod_title,'EC')

Supported expressions

Filtering can use comparison operators, logical operators, and string functions where supported by the endpoint.

Examples:

prod_ref eq 'ABC-001'
contains(prod_title,'EC')
cat_ref eq 'LPG' or cat_title eq 'Products'

Supported properties

For Catalog resources, use metadata endpoints to confirm the fields available for filtering.

For DAM images, use the DAM endpoint reference for supported query fields and examples.

Limitations

Based on the migrated documentation and the current API descriptions:

Example with $select

GET https://api2.saleslayer.com/catalog/Products?$select=prod_ref,prod_title&$filter=contains(prod_title,'EC')

Notes