Start an accounting sync
POST
Queues an on-demand sync with the connected accounting system and returns immediately with the new sync-log entry. The connector must be CONNECTED. Currently an on-demand sync checks that the stored access still works; track the result in the sync history.
How to use it
- Check the connector is CONNECTED with Get accounting connector details.
- Start the sync. It runs in the background; the response gives the syncLogId.
- Follow the result in List accounting sync history; the connector's lastSyncAt and lastSyncStatus are updated when it finishes.
BearerAuthheader
AuthorizationBearer <JWT>provider*stringAccounting connector slug, for example zoho-books (from List accounting connectors).
OK
*/*- response
status*stringOutcome of the request: SUCCESS when it worked; errors return an error status with the reason in message.
message*stringShort human-readable message describing the outcome.
data?The sync-log entry created for the queued sync.
Example Request
curl -X POST 'https://beta.iotoms.com/api/v1/integrations/accounting/connectors/string/sync'Example Response
{ "status": "string", "message": "string", "data": { "syncLogId": "8a831ce0-fd84-4c14-9c7b-7f1ccc68faec", "provider": "string", "syncType": "CONNECTIVITY_CHECK", "status": "PENDING", "startedAt": "2019-08-24T14:15:22Z" }}