Custom Validations
This functionality enables users to build custom validation processes in third-party applications such as n8n.
Third-Party Workflow Requirements
Validation Logic
Implement a switch case statement to inspect the OrderEazi payload.
If the payload field
"Validate"
is populated, return a webhook plain text response:
"Verified"
Webhook Response Format
All webhook responses must follow the JSON format below:
{
"Message": Success Message or Error Message,
"Name": Name of Automation Workflow,
"Success": true or false
}
Example:
{
"Message": "Valid TV License",
"Name": "TV License Validator",
"Success": true
}
Insert Custom Validations
Steps
In My Dashboard, go to Settings → Workflow Manager.
Select the Workflow tab.
Click the plus (+) icon to expand a Workflow Step.
Use the dropdown arrow next to the action you want to configure.
Open the Custom Validation tab.
Add a new Custom Validation Endpoint.
Save Changes.
Notes
Endpoints are validated each time you save the workflow process.
Only Required and Verified custom validations will be active in workflows.
Any additional action information can be captured in the Data Field tab in the workflow step that included the custom validation. This will be included in the payload sent to the third-party workflow.
Last updated