Sales Limitation Validator
Enforces product sales restrictions based on customer and market rules.
Overview
The Sales Limitation Validator checks whether any products in the cart are restricted from being sold to the current customer based on configured sales limitation rules. Sales limitations can restrict which products a specific customer or market group is allowed to purchase.
Identifier
| Property | Value |
|---|---|
| Connector ID | salesLimitationValidator |
Behavior
- If the cart has no line items, validation passes
- Determines the market group from the cart's market
- Queries the sales limitation service for restrictions matching the customer, SKUs, and market group
- If any products are restricted, returns a validation error for each restricted SKU
- If no restrictions apply, validation passes
Error messages
| Condition | Translation Key |
|---|---|
| Product is restricted for this customer | SalesLimitationIsNotForSaleForCustomer |
Configuration
No additional properties required.
