Filter
Our API endpoint supports filtering data based on the parameters below for commerce endpoints.
You can filter data using the following parameters:
Parameter | Description | Type | Format |
---|---|---|---|
source_created_at_before | Returns results where the source creation date is before the specified date. | string | YYYY-MM-DD |
source_created_at_after | Returns results where the source creation date is after the specified date. | string | YYYY-MM-DD |
source_update_at_before | Returns results where the source update date is before the specified date. | string | YYYY-MM-DD |
source_update_at_after | Returns results where the source update date is after the specified date. | string | YYYY-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.