Null Price Validator
Ensures all line items in the cart have a non-zero price.
Overview
The Null Price Validator checks that all line items in the cart have a PlacedPrice greater than zero. Line items with a price of zero typically indicate missing price data, which should be resolved before the cart can become an order.
Identifier
| Property | Value |
|---|---|
| Connector ID | nullPriceValidator |
| Validation Type | Price |
Behavior
- Finds all line items where
PlacedPriceequals zero - If no zero-priced items exist, validation passes
- Returns one validation error per line item with a zero price, including the SKU code in the message
Error messages
| Condition | Translation Key |
|---|---|
| Line item has zero price | NullPriceValidationError |
Configuration
No additional properties required.
