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 n

  • Name
    not
    Type
    Description

    Value does not equal n

  • Name
    in
    Type
    Description

    Value n exists in list

  • Name
    notIn
    Type
    Description

    Value n does not exist in list

  • Name
    lt
    Type
    Description

    Value n is less than x

  • Name
    lte
    Type
    Description

    Value n is less than or equal to x

  • Name
    gt
    Type
    Description

    Value n is greater than x

  • Name
    gte
    Type
    Description

    Value n is greater than or equal to x

  • Name
    contains
    Type
    Description

    Value n contains x

  • Name
    startsWith
    Type
    Description

    Value n starts with x

  • Name
    endsWith
    Type
    Description

    Value n ends with x