Filtering

Below is a list of attributes and operators available for filtering products.

Attribute

Type

Operators

Example

name

string

eq / like

like(name,Deck*)

slug

string

eq / like

eq(slug,deck-shoe)

sku

string

eq / like

eq(sku,deck-shoe-001)

status

string

eq / like

eq(status,live)

description

string

like

like(description,*deck*)

commodity_type

string

eq

eq(commodity_type,digital)

manage_stock

boolean

eq

eq(manage_stock,true)

brand.id

string

eq

eq(brand.id,id)

category.id

string

eq

eq(category.id,id)

collection.id

string

eq

eq(collection.id,id)

Get all products for one category

In the example below, we will make a request to get all products that belong to one category.

curl -X GET https://api.moltin.com/v2/products?filter=eq(category.id,XXXX) \
     -H "Authorization: Bearer XXXX"

Last updated