Export Order
Export orders to external systems using configured order exporter connectors.
Overview
The Export Order step exports order data to external systems (ERP, WMS, etc.) using configured order exporter connectors. This is the primary mechanism for sending order data to backend systems.
Identifier
| Property | Value |
|---|---|
| Key | ExportOrder |
| Group | Export |
| Applicable Statuses | New, Completed, ReadyForPickup, Ship |
Configuration Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
Connector | String | Yes | - | Name of the order exporter connector |
ConnectorId | String | No | - | Optional connector identifier for display |
StopOnError | Boolean | No | false | Cancel workflow if export fails |
ErrorStatus | String | No | - | Status to set on order if export fails |
RunAfterOrderIsSaved | Boolean | No | false | Wait for order to be saved before export |
Behavior
What It Does
- Skips execution in test mode
- If
RunAfterOrderIsSavedis true:- Ensures order is fully saved and available via the API before proceeding
- Creates order exporter instance using factory and connector name
- Calls
Export()on the exporter with order, shipment, and properties - Logs export event to order history
- Handles export results:
- On success: Clears any previous export errors
- On failure: Sets error status and optionally cancels workflow
Prerequisites
- Order exporter connector must be configured
- Connector must support order export operations
Side Effects
- Order exported to external system
- Export event logged
- May set error on order if export fails
- May change order status on error
Business Cases
When to Use
- ERP integration: Export orders to ERP systems
- WMS integration: Send orders to warehouse management
- Third-party fulfillment: Export to external fulfillment providers
Example Scenarios
Scenario 1: Successful Export Order exported to ERP successfully. Previous errors cleared.
Scenario 2: Export Failure with StopOnError
Export fails, StopOnError=true, ErrorStatus=ExportFailed. Order status set to "ExportFailed", workflow cancelled.
Scenario 3: Export Failure without StopOnError
Export fails, StopOnError=false. Warning logged, workflow continues.
Scenario 4: Test Mode Running in test mode. Export skipped, success returned.
Error Handling
| Condition | Result | Continues Workflow? |
|---|---|---|
| Test mode | Success (skipped) | Yes |
| Export successful | Success | Yes |
| Exporter not found | Error | Based on StopOnError |
| Export failed (StopOnError=true) | Error | No |
| Export failed (StopOnError=false) | Warning | Yes |
Related Steps
- Export Payments - Export payment data
- Export Invoices - Export invoice data
- Webhook Workflow Step - External webhook export
