Skip to main content

Documentation Index

Fetch the complete documentation index at: https://integrations.docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

A sync pulls or pushes data for a connected company. Each sync creates jobs per data model.

Lifecycle

  1. Trigger — start a sync (POST /v4/core/companies/{company_id}/syncs).
  2. Monitor — list sync history and jobs.
  3. Cancel — stop a running sync.
  4. Retry — re-run a completed sync.

Response envelope

Successful JSON responses are wrapped as:
{
  "data": { ... },
  "request_id": "uuid"
}

Sync object

FieldTypeDescription
idstringSync ID.
companyIdinteger | nullCompany ID.
integrationTypeenumIntegration type (e.g. NETSUITE).
dataModelsarrayData models included in this sync.
configModeenumREAD, CREATE, UPDATE, etc.
fullSyncbooleanWhether this was a full sync.
syncTypeenumMANUAL or AUTO_SYNC.
statusenumSUCCESS, RUNNING, FAILED, or PARTIAL_SUCCESS.
jobCountsobjectJob status counts (total, success, failed, etc.).
dataModelCountsobjectPer-data-model status counts.
startTimestring | nullSync start time (ISO 8601).
endTimestring | nullSync end time (ISO 8601).
createdAtstringCreation timestamp (ISO 8601).
Create and retry return { sync: { id, dataModelsSyncing } } only.

Job object

FieldTypeDescription
idstringJob ID.
dataModelenumData model for this job.
statusenumCREATED, RUNNING, SUCCESS, FAILED.
jobTypeenumPULL, PUSH, or CUSTOM.
configModeenumConfig mode for this job.
recordsSyncedinteger | nullNumber of records synced.
retryCountintegerRetry count.
parentJobIdstring | nullParent job ID, if any.
errorCodestring | nullError code when failed.
errorMessagestring | nullError message when failed.
errorResponseobject | nullError details when failed.
startTimestring | nullJob start time (ISO 8601).
endTimestring | nullJob end time (ISO 8601).
createdAtstringCreation timestamp (ISO 8601).
ActionEndpoint
Sync configUpdate Company Sync Config
CompanyGet Company