Initiating a Sync
Learn how to manually trigger a sync for a specified date range
You may need to perform a manual Commerce syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. for a companyCompany In Codat, a company represents your customer's business entity. Companies can have multiple connections to different data sources. from the date of its last successful syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. to a specified date. To do so, make a call to the Latest SyncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. endpoint:
POST /companies/{companyId}/sync/commerce/latest
You need to specify the companyId, which is a required parameter.
The lower limit of the syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. date range is determined as the date of the last successful syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule.. If there were no previous successful syncsSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule., the syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. start date configured in the Synchronization schedule is used.
For the higher limit of the syncSync The process of fetching the latest data from a connected data source. Syncs can be triggered manually or run automatically on a schedule. date range, you can include a syncTo date in the request body. If no date is provided, the current time UtcNow is used.
Before making the call, you can also explore the Latest Commerce Sync endpoint in our APIAPI A set of rules and protocols that allows different software applications to communicate with each other. Codat provides APIs for accessing financial data from accounting, banking, and commerce platforms. Reference.