Filtering results
In this guide, we will look at how to filter results using one of the list endpoints.
Filter format
To filter results on an endpoint you can use the filter query string parameter. It consists of the word filter with brackets containing the name of the field you want to filter on.
The value of the parameter, all after the = sign, consists of the operator you want a : sign and the value you want this operator to have.
Multiple filters will always be interpreted as AND operators meaning all filters should evaluate to true for a record to match the filter. String will always be tested case sensitive meaning Eierbal or eierbal are not the same.
Filter results
curl
--location
--request 'https://partner.punt-uit.nl/api/fulfilment/v3/products?filter[sku]=startsWith:978'
--header 'Authorization: Bearer ey...'
--header 'Content-Type: application/json'
Filter operations
- Name
equals- Type
- Description
Value equals
nMatch all resoures where field
orderRefequals10712./resource?filter[orderRef]=equals:10712
- Name
not- Type
- Description
Value does not equal
nMatch all resources where field
refnot equalsJQQLD5PG5L./?filter[ref]=not:JQQLD5PG5L
- Name
in- Type
- Description
Value
nexists in listMatch all resource where field
statushas one of the valuesnew, on_hold./?filter[status]=in:new,on_hold
- Name
notIn- Type
- Description
Value
ndoes not exist in listMatch all resources where field
statusdoes not match one of the valuescancelled,on_hold./?filter[status]=notIn:cancelled,on_hold
- Name
lt- Type
- Description
Value
nis less thanxMatch all resources where field
deliveryDateis less than2023-09-21./?filter[deliveryDate]=lt:2023-09-21
- Name
lte- Type
- Description
Value
nis less than or equal toxMatch all resources where field
stockis less than or equal to42./?filter[stock]=lte:42
- Name
gt- Type
- Description
Value
nis greater thanxMatch all resources where field
quantityis greater than42./?filter[quantity]=gt:42
- Name
gte- Type
- Description
Value
nis greater than or equal toxMatch all resources where field
priceis greater than or equal to37.99./?filter[price]=gte:37.99
- Name
contains- Type
- Description
Value
ncontainsxMatch all resources where field
namecontains the phraseeierbal./?filter[name]=contains:eierbal
- Name
startsWith- Type
- Description
Value
nstarts withxMatch all resources where field
shipToPostCodestarts with the phrase7822./?filter[shipToPostCode]=startsWith:7822
- Name
endsWith- Type
- Description
Value
nends withxMatch all resources where field
shippingContactEmailends with the phrasestatus418.nl./?filter[shippingContactEmail]=endsWith:status418.nl