Accounting Guides
Syncing Data Models in the Accounting Category
When integrating Knit, certain data models in the Accounting category have synchronization enabled by default. This means that as soon as you complete the integration, these models will automatically begin syncing. Specifically:
- Accounts Sync: Automatically synchronizes account data upon integration.
- Contacts Sync: Automatically synchronizes contact data upon integration.
Syncing Optional Data Models
For other data models, such as Invoices or Purchase Orders, synchronization is not enabled by default. To sync these models, you must explicitly trigger the synchronization process using our Sync Start API
.
How to Start Syncing for Optional Data Models
To initiate the synchronization for optional data models, you need to use the Sync Start API
. Below is an example demonstrating how to enable synchronization for the Invoices data model.
curl --request POST \
--url https://api.getknit.dev/v1.0/sync.start \
--header 'Authorization: Bearer API Key' \
--header 'X-Knit-Integration-Id: IntegrationID' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"dataType": "accounting_invoices",
"syncType": "initial_sync",
"honorScheduler": false,
"includeInactiveRecords": false
}
'
Updated 3 days ago