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 Company is created when a customer completes an invite link flow. Each company joins your organization to a single integration and exposes connection health, sync activity, and per-model sync configuration.

Lifecycle

  1. Invite link created — company record is provisioned with an integration/category.
  2. Customer connects — platform credentials are stored on the active connection.
  3. Data syncs — enabled models sync on the configured schedule or via manual sync.
  4. Disconnect — revoke platform credentials while keeping the company and invite link.
  5. Archive — soft-delete the company, invite link, and connection.
Companies are scoped to your organization. All company endpoints require the api_key header. List returns every visible company; detail/update/delete endpoints require access to that specific company ID.

Response envelope

Successful JSON responses are wrapped as:
{
  "data": { ... },
  "request_id": "uuid"
}
Mutation endpoints that return no payload respond with { "request_id": "uuid" } only. DELETE /core/companies/{company_id} returns 204 No Content with an empty body.

Company object

Both list and detail endpoints return the same serialized company shape.
FieldTypeDescription
idintegerCommenda company ID (rootfi_id).
companyIdintegerSame as id.
inviteLinkIdstring | nullInvite link UUID, if present.
companyNamestring | nullDisplay name.
integrationenumConnected integration type (e.g. NETSUITE).
integrationCategoryenumACCOUNTING, PAYMENTS, or ECOMMERCE.
integrationEntityIdstring | nullPlatform entity identifier, when available.
connectionStatusenum | nullConnection health. Null when no connection exists.
syncStatusenum | nullConnection sync pipeline status.
hasActiveSyncbooleanWhether a read sync is currently running.
lastSyncedstring | nullLast successful sync timestamp (ISO 8601).
syncFromstring | nullHistorical sync start date from invite link.
createdAtstringCompany creation timestamp (ISO 8601).
dataModelConfigsarrayPer-model sync config (empty without a connection).
connectionobject | nullActive connection details, when connected.
Each dataModelConfigs[] entry includes dataModel, category, enabled, frequency, interval, scopeAccess, syncFrom, isOverridden, and isChild. Each connection object includes id, createdAt, updatedAt, companyId, organisationId, integrationType, integrationEntityId, category, status, syncStatus, syncResumeAt, lastSynced, and client-safe variables.
ActionEndpoint
Create companyInvite Links (POST /v4/core/invite-links)
List / get / update / archiveCompanies endpoints in this section
Trigger syncSync Data (POST /v4/core/companies/{company_id}/syncs)