Webhook Workflow Step
Execute external workflow steps through webhook integration.
Overview
The Webhook Workflow Step executes external workflow logic via webhook calls. This enables integration with external systems that need to perform actions or return data as part of the order workflow.
Identifier
| Property | Value |
|---|---|
| Key | WebhookWorkflowStep |
| Group | Export |
| Applicable Statuses | All (null = available for all statuses) |
Configuration Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
Connector | String | Yes | - | Webhook connector configuration |
StopOnError | Boolean | No | false | Cancel workflow if webhook fails |
ErrorStatus | String | No | - | Status to set on order if webhook fails |
RunAfterOrderIsSaved | Boolean | No | false | Wait for order to be saved before calling webhook |
Behavior
What It Does
- If
RunAfterOrderIsSavedis true:- Ensures order is fully saved and available via the API before proceeding
- Creates external order action service for "Webhook"
- Executes webhook with order, shipment, and workflow step
- Logs export event to order history
- If webhook returns updated order data:
- Updates order Status, OrderType, Tags, Name, Errors, FollowUpDate, Assets, Origin, Properties
- Handles results:
- On success: Clears previous errors
- On failure: Sets error status and optionally cancels workflow
Prerequisites
- Webhook connector must be configured
- External system must implement webhook endpoint
Side Effects
- Webhook called with order data
- Order properties may be updated from webhook response
- Export event logged
- May change order status on error
Business Cases
When to Use
- External validation: Call external system for fraud or credit checks
- Custom logic: Execute business logic in external systems
- System integration: Trigger actions in systems without native connectors
- Dynamic workflow: Let external systems modify order data
Example Scenarios
Scenario 1: Successful Webhook Webhook returns success. Order continues through workflow.
Scenario 2: Webhook Updates Order Webhook returns modified order data. Status, tags, and properties updated on order.
Scenario 3: Webhook Failure with StopOnError
Webhook fails, StopOnError=true. Workflow cancelled, error status set.
Scenario 4: Webhook Service Not Found Webhook service not available. Error returned.
Error Handling
| Condition | Result | Continues Workflow? |
|---|---|---|
| Webhook successful | Success | Yes |
| Webhook returns order updates | Success (order updated) | Yes |
| Webhook service not found | Error | Yes |
| Webhook failed (StopOnError=true) | Error | No |
| Webhook failed (StopOnError=false) | Warning | Yes |
Related Steps
- Export Order - Standard order export
- Notification - Send notifications
