data.commerce.sync-cursor.get
Read the last_synced_at cursor for (connection, provider, entity_type). Returns exists=False when no row — caller treats that as 'sync from the beginning of time'.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-commerce |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | — |
provider | string | Yes | — | — |
entity_type | string | Yes | — | — |
actor | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | — |
provider | string | Yes | — | — |
entity_type | string | Yes | — | — |
actor | string | No | — | — |
sync_cursor_uuid | uuid | No | — | Null when no cursor exists yet (first-time sync) |
last_synced_at | string | No | — | — |
items_synced_total | integer | No | — | — |
last_error | string | No | — | — |
exists | boolean | Yes | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Read cursor |
completed | No | Yes | Yes | — | Cursor read |
failed | No | Yes | No | — | Cursor read failed |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.commerce.sync-cursor.get",
"initial_data": {
"cloud_connection_uuid": "value",
"provider": "value",
"entity_type": "value"
}
}