Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
commerce_webhook_event_uuiduuidYes—UUID of the persisted commerce_webhook_event row
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
commerce_webhook_event_uuiduuidYes—UUID of the persisted commerce_webhook_event row
actorstringNo——
provider_event_namestringNo——
universal_event_typestringNo——
target_workflowstringNo——
target_external_refstringNo——
dispatch_workflow_uuidstringNo——
dispatched_atstringNo——
skipped_reasonstringNo——
processed_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—dispatchWebhook event received; looking up + dispatching
completedNoYesYes—Dispatch complete; row marked processed
failedNoYesNo—Dispatch failed; row.error populated

State Diagram ​

Transitions ​

FromActionToDescription
initiateddispatchcompleted—
initiatedfailfailed—

Business Errors ​

CodeMessage Template
BLING_WEBHOOK_EVENT_NOT_FOUNDcommerce_webhook_event {commerce_webhook_event_uuid} not found in finance DB
BLING_WEBHOOK_EVENT_ALREADY_PROCESSEDcommerce_webhook_event {commerce_webhook_event_uuid} was already processed at
BLING_WEBHOOK_DISPATCH_FAILEDdispatch 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"
  }
}