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

  1. In My Dashboard, go to Settings → Workflow Manager.

  2. Select the Workflow tab.

  3. Click the plus (+) icon to expand a Workflow Step.

  4. Use the dropdown arrow next to the action you want to configure.

  5. Open the Custom Validation tab.

  6. Add a new Custom Validation Endpoint.

  7. 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