Skip to main content

Filter

Our API endpoint supports filtering data based on the parameters below for commerce endpoints.

You can filter data using the following parameters:

ParameterDescriptionTypeFormat
source_created_at_beforeReturns results where the source creation date is before the specified date.stringYYYY-MM-DD
source_created_at_afterReturns results where the source creation date is after the specified date.stringYYYY-MM-DD
source_update_at_beforeReturns results where the source update date is before the specified date.stringYYYY-MM-DD
source_update_at_afterReturns results where the source update date is after the specified date.stringYYYY-MM-DD

Example:

Suppose we want to filter data to return all sources created before March 1, 2022, and updated after January 1, 2022. We can use the filtering parameters as follows:

GET ...?source_created_at_before=2022-03-01&source_update_at_after=2022-01-01

This request will return all sources that were created before March 1, 2022, and updated after January 1, 2022.