Extended validations
Extended validations enable an enterprise to perform additional item validations on an order.
The following additional item validations can be performed:
- Effective date range
- Cannot be sold separately
- Minimum and maximum quantities
- Item status
- Customer entitlements
Item validation must be enabled before the system performs extended validations.
By default, extended validation is enabled.
An order can also be validated by calling the validateItemForOrder
API.
Effective date range
The effective date range of an item in an order is validated when the order is created, modified, or confirmed. If the system date is outside the effective date range of the item, the system throws an error during item validation. However, if supersession is enabled for the item, the validation is ignored.
Cannot be sold separately
The validation ensures that the item in the order is a part of a bundle or a physical kit. Validation occurs when the order is created, modified, or confirmed.
Minimum and maximum quantity
The minimum and maximum quantities of an item in an order are validated on order confirmation. If the quantity of an item in an order falls outside the minimum-maximum range for the item, the system throws an error.
Item status
The validation ensures that the status of the item is orderable at the time of order creation and modification. If the status of an item is not Published, the system throws an error.
Customer entitlements
Customer entitlements for an item in an order are validated when the order is created, modified, or confirmed. If a customer tries to order an item to which the customer is not entitled, the system throws an error during item validation.
An item becomes invalid when one of the following criteria is met:
- The current date falls outside of the item's effective date range.
- The product cannot be sold separately (IsSoldSeparately="N").
- The item is not published (status not equal to 3000).