Data type settings
Concept overview and key details
A 'data type' is a specific type of data, like an invoice.
On the Data type settings page in the Codat Portal, you can view current settings for each data type split by integration type, override the default sync settings, and specify the fetch frequency for refreshing datasets. You can also view dataType
keys for each data type.
You can also choose whether data is automatically pulled when a company is linked for the first time, using the Fetch on first link setting.
Override the default sync settings
To customize your data type settings:
- Sign in to the Codat Portal.
- On the navigation bar, click Settings > Data types. The Data type settings page is displayed.
- Customize settings for the data types you're interested in and save your changes.
You can learn more about each data type setting by reading the sections below.
Use "Fetch on first link"
By default, Fetch on first link is on for most data types.
When Fetch on first link is on for a data type:
- The data type is automatically queued for synchronization when a company is first linked, provided that the data type is available in the company's accounting platform.
- The data type is queued for synchronization when clicking the Refresh data button for a company in the Codat Portal.
- The data type is queued for synchronization when you make a request to
POST /companies/{companyId}/data/queue/{dataType}
with all as the datatype.
When Fetch on first link is turned off for a data type:
- The data type is not automatically queued for synchronization when a company is first linked.
- You can still queue a pull for this individual data type using the endpoint
POST /companies/{companyId}/data/queue/{dataType}
. This might be useful for testing, or if you only need infrequent access to a dataset.
For more information about how to synchronize datasets on demand, see Synchronizing your data.
Choose a synchronization frequency
By default, Sync frequency is set to None.
You can change the synchronization frequency using the drop-down list next to the data type name:
- None (disables the synchronization)
- Monthly
- Weekly
- Daily
- Hourly (premium feature)
Syncs will automatically trigger based on the last sync date. For example, if the frequency is daily (24 hours), the next sync would automatically be queued 24 hours after the last sync.
It is not possible to set a specific date or time for syncs to occur. If you need this kind of functionality, you can build custom scheduling using cron and our Refresh data type endpoint.
If a connector remains installed on the user’s machine and a sync frequency is configured, the offline connector will continue to periodically sync data when the connector is available.
Queue a sync from the Codat Portal
To manually trigger your data to be synchronized:
- In the navigation bar of the Codat Portal, select Companies.
- Select the required company, then click Refresh data.
You can also view Pull history and Push history to check the status of previous pull and push data syncs.
For most data types, we retrieve all available history. For financial statement data types (balanceSheet
, profitAndLoss
, cashFlowStatement
), we retrieve 24 months of history. These default settings can be overriden via our API using advanced sync settings.
Read next
- Next concept: Data status