Sync

Initiate sync for specific range

Initiate a sync for the specified start date to the specified finish date in the request payload.

post/meta/companies/{companyId}/sync/commerce/historic

Path parameters

companyIdstring uuid required

Unique identifier for your SMB in Codat.

Example:8a210b68-6988-11ed-a1eb-0242ac120002

Unique identifier for a company.

Request body

Response

Success

companyIdstring guid

Unique identifier for your SMB in Codat.

commerceSyncIdstring guid

Unique identifier for the sync in Codat.

syncStatusCodeinteger

Numerical status code sync of the company data.

syncStatusstring nullable

Status of the sync of the company data. This is linked to status code.

errorMessagestring nullable

Friendly error message for the sync operation.

syncExceptionMessagestring nullable

Exception message for the sync operation.

syncUtcCreated — unresolved $ref
dataPushedboolean

Boolean indicator for data being pushed during a sync operation.

Changes

Changed in 9 of the 52 revisions of this API.4318

    • the response property dataConnections/items/integrationKey became optional for the status 200

      response-property-became-optional

    • the response property dataConnections/items/dataConnectionErrors became nullable for the status 200

      response-property-became-nullable

    • the response property dataConnections/items/connectionInfo became nullable for the status 200

      response-property-became-nullable

    • the response property dataConnections/items/lastSync became nullable for the status 200

      response-property-became-nullable

    • removed the optional property dataConnections/items/additionalProperties from the response with the 200 status

      response-optional-property-removed

    • added the optional property dataConnections/items/dataConnectionErrors/items/resolvedOnUtc to the response with the 200 status

      response-optional-property-added

    • added the optional property dataConnections/items/dataConnectionErrors/items/status to the response with the 200 status

      response-optional-property-added

    • added the optional property validation to the response with the 400 status

      response-optional-property-added

    • added the optional property validation to the response with the 401 status

      response-optional-property-added

    • added the optional property validation to the response with the 402 status

      response-optional-property-added

    • added the optional property validation to the response with the 403 status

      response-optional-property-added

    • added the optional property validation to the response with the 404 status

      response-optional-property-added

    • added the optional property validation to the response with the 429 status

      response-optional-property-added

    • added the optional property validation to the response with the 500 status

      response-optional-property-added

    • added the optional property validation to the response with the 503 status

      response-optional-property-added

    • added the new Expense enum value to the dataConnections/items/sourceType response property for the response status 200

      response-property-enum-value-added

    • added the new BankFeed enum value to the dataConnections/items/sourceType response property for the response status 200

      response-property-enum-value-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 402

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • added the non-success response with the status 503

      response-non-success-status-added