bling.receive-webhook
Dispatch a persisted Bling webhook delivery to the right entity-specific fetch workflow. Re-fetches the affected resource so platform state stays in sync with Bling. Marks commerce_webhook_event.processed_at on success.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-bling |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
connection_uuid | uuid | Yes | — | — |
commerce_webhook_event_uuid | uuid | Yes | — | UUID of the persisted commerce_webhook_event row |
actor | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
connection_uuid | uuid | Yes | — | — |
commerce_webhook_event_uuid | uuid | Yes | — | UUID of the persisted commerce_webhook_event row |
actor | string | No | — | — |
provider_event_name | string | No | — | — |
universal_event_type | string | No | — | — |
target_workflow | string | No | — | — |
target_external_ref | string | No | — | — |
dispatch_workflow_uuid | string | No | — | — |
dispatched_at | string | No | — | — |
skipped_reason | string | No | — | — |
processed_at | string | No | — | — |
failure_reason | string | No | — | — |
failed_at | 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 | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | dispatch | Webhook event received; looking up + dispatching |
completed | No | Yes | Yes | — | Dispatch complete; row marked processed |
failed | No | Yes | No | — | Dispatch failed; row.error populated |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
initiated | dispatch | completed | — |
initiated | fail | failed | — |
Business Errors
| Code | Message Template |
|---|---|
BLING_WEBHOOK_EVENT_NOT_FOUND | commerce_webhook_event {commerce_webhook_event_uuid} not found in finance DB |
BLING_WEBHOOK_EVENT_ALREADY_PROCESSED | commerce_webhook_event {commerce_webhook_event_uuid} was already processed at |
BLING_WEBHOOK_DISPATCH_FAILED | dispatch to {target_workflow} for event {provider_event_name} failed: |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "bling.receive-webhook",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"commerce_webhook_event_uuid": "value"
}
}