> For the complete documentation index, see [llms.txt](https://support.ordereazi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.ordereazi.com/sales-features/settings/workflow-manager/custom-validations.md).

# Custom Validations

## 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:

```json
{
  "Message": Success Message or Error Message,
  "Name": Name of Automation Workflow,
  "Success": true or false
}
```

Example:

```json
{
    "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.
