Reporting API v1 - using updatedDate filters
Introduction
This article explains how to use updatedDate filters in the Reporting API v1 to retrieve only recently modified data. Understanding these filters will help you optimize API performance and implement efficient incremental data loading strategies.
How updatedDate filters work
Several Reporting API endpoints allow you to restrict the data received based on when it was last updated. This is useful for scenarios where only recent changes are needed, such as incremental data loads. In most cases, using these filters will also improve API performance by reducing the volume of data transferred.
Using updatedDateFrom and updatedDateTill parameters
To receive a filtered response, use the updatedDateFrom and updatedDateTill parameters by entering dates in the yyyy-MM-dd format.
Example:
This will return only records that were updated between January 1, 2024, and January 15, 2024.
API Endpoint Example:
The parameters can be added to any supported Reporting API endpoint as query parameters. For example, when querying subscriptions:
Limitations
When using updatedDate filters, be aware of the following limitations:
1. False positive updates: There may be cases when the updatedDateTime field is updated without any values actually changing in the API response. This may happen when a related entity in the Platform has been updated but the changed content is not included in the API response.
2. Specific field exclusions: The updatedDateTime field does not react to changes to industryTypes and isVendor fields in the Get Organization Details API endpoint. Changes to these fields will not trigger an update to the updatedDateTime value.
Summary
Use updatedDateFrom and updatedDateTill parameters in Reporting API endpoints to filter data by last update date, entering dates in yyyy-MM-dd format. This approach improves API performance and enables efficient incremental data loading by retrieving only recently modified records. Be aware that the updatedDateTime field may update when related entities change even if the API response content remains unchanged, and that changes to industryTypes and isVendor fields in the Get Organization Details endpoint do not trigger updatedDateTime updates.
Was this article helpful?
Articles in this section
- Reporting API v1 - overview
- Reporting API v2 - overview
- Reporting API v1/v2 - requesting access
- Reporting API v1 - data model
- Reporting API v1 - how to map your invoice data
- Reporting API v1 - detailed invoice line items
- Reporting API v2 - Invoice Taxes
- Reporting API v1 - how to identify organizations in your sales channel
- Reporting API v1 - currencies within the invoices
- Reporting API v1 - preview invoices in status 'New'
Add comment
Please sign in to leave a comment.