Skip to content
Proud to collaborate with Microsoft for Startups

bling.initial-sync ​

Runs the per-entity Bling sync workflows in dependency order — first the catalog support (categories, warehouses, contacts), then products, then stock, then sales documents.

Orchestrate every per-entity sync in dependency order.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
sincestringNo—ISO date — limits each per-entity sync to changes after this date
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
sincestringNo—ISO date — limits each per-entity sync to changes after this date
actorstringNo——
layer_resultsjsonNo—{ layer_index: { workflow_type: { workflow_uuid, synced_count, status } } }
total_syncedintegerNo——
started_atstringNo——
completed_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run_layersInitial sync requested
completedNoYesYes—All layers complete
failedNoYesNo—Initial sync failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrun_layerscompleted—
initiatedfailfailed—

Business Errors ​

CodeMessage Template
BLING_LAYER_SYNC_FAILEDLayer {layer} failed at {workflow_type}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bling.initial-sync",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}