Check for an active accounting connection
Before configuring a new accounting connection for an entity, make sure this entity has no other existing accounting connections that are active at the moment. For this purpose, callGET /accounting_connections with the X-Monite-Entity-Id header containing the entity ID:
200 OK response with an empty data array:
Trigger accounting synchronization
By default, Monite automatically synchronizes the entity’s data in our database with the data in the entity’s accounting system every hour. However, entities can also trigger an instant synchronization when needed. To do this, callPOST /accounting_connections/{connection_id}/sync:
202 Accepted response is returned if the request is successful.
Disconnect an accounting system
To disconnect an already established accounting connection, callPOST /accounting_connections/{id}/disconnect:
200 OK response contains "status": "disconnected":
Check synchronization logs
You can obtain an overview of all the synchronization events between Monite and the accounting system in a list. When the synchronization is successful, the status and IDs of records from both systems will be returned. If not, an error status with details will be returned instead. To get a list with all the sync records, callGET /accounting_synced_records. Filtering the results by the object_type is mandatory. For example, GET /accounting_synced_records?object_type=bill will get all the sync records for bills (payables).
object_id query parameter to the request, for example:
For the full list of available sort and filter parameters, see the
GET /accounting_synced_records endpoint.sync_status and errors fields, representing the synchronization status and information about any errors, respectively.
GET request to the /accounting_synced_records/{synced_record_id} endpoint.
Retrieve accounting tax rates
When pushing an invoice to an accounting system, Monite tries to map the applicable tax rates used in the invoice to the tax rates available in the entity’s accounting system. Entities can retrieve the available tax rates from the accounting system to ensure that they match either thetax_rate_value or vat_rate_id fields in the invoice line items. To do this, call GET /accounting_tax_rates:
Retry pushing data
You can manually retry a failed sync to the accounting system in cases where errors occur during the attempt by callingPOST /accounting_synced_records/{synced_record_id}/push. The synced_record_id of the failed sync can be obtained in the synchronization log: