ValidateReturnQty
Changed on:
7 Aug 2025
Overview
The rule provides the foundation to validate that the return request is valid.| Plugin Name | Order Reference Module |
|---|---|
| Namespace | [[account.id]].order |
UI Description
Provides the foundation to validate that the return request is valid. When a return is initiated for an existing order, a return entity is created and the rule validates if ReturnOrder can be processed based on order item qty passed in event attributes.
Accepts
- ORDER
Actions
- This rule produces createReturn mutation.
Rule parameters
Event attributes
| Parameter | Description | Data Type | Required? |
| returnItems | The list of return items | Array list | Required |
Exceptions
- if the
`accountId/entityId`property is not provided - if the order is not found or invalid
- if a return item is invalid
Configuration example
1{
2 "name": "<ACCOUNTID>.order.ValidateReturnQty",
3 "props": {}
4}