latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-05222395.4 KB

f669e8c3c34f

Sync

Initiate new sync

Run a Commerce sync from the last successful sync up to the date provided (optional), otherwise UtcNow is used.\r\nIf there was no previously successful sync, the start date in the config is used.

post/companies/{companyId}/sync/commerce/latest

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

syncToCreated — unresolved $ref

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.