OrderWorkflow Steps
Validation Steps
Workflow steps for validating orders, payments, and data integrity.
Overview
Validation steps verify order data, payment status, and business rules before allowing orders to progress through the workflow. They act as gates to ensure data integrity and completeness.
Available Steps
| Step | Key | Description |
|---|---|---|
| Validate Order | ValidateOrder | Run order validators for data integrity |
| Check For Fraud | CheckForFraud | Run fraud detection checks |
| Verify Completely Paid | VerifyCompletelyPaid | Verify order is 100% paid |
| Verify Capture Is Completed | VerifyCaptureIsCompleted | Verify payment captures succeeded |
| Validate Default External ID | ValidateDefaultExternalId | Validate required external ID exists |
| Validate Serial Numbers | ValidateSerialNumbers | Validate serial numbers on serializable products |
| Validate Tracking Number | ValidateTrackingNumber | Validate shipment tracking numbers |
| Validate Colli Count | ValidateColliCount | Validate package count on shipments |
Common Use Cases
Pre-Processing Validation
Before processing orders, validate data completeness:
Payment Verification
Ensure payments are complete before fulfillment:
Pre-Ship Validation
Validate shipment data before completing:
Validation Behavior
Most validation steps follow this pattern:
- Check condition - Evaluate if validation criteria are met
- Return result - Success if valid, Error if invalid
- Cancel workflow - Many validation steps cancel the workflow on failure to prevent invalid orders from progressing
This ensures orders only progress when all required data is present and valid.
