Inactive Customer Validator

Prevents checkout for inactive business customers.

Overview

The Inactive Customer Validator checks whether the business customer associated with the cart is marked as inactive. If the customer is inactive, the validator blocks the cart from proceeding to order creation.

Identifier

PropertyValue
Connector IDinactiveCustomerValidator
Validation TypeGeneral

Behavior

  1. Checks if the cart has a CustomerId set
  2. If a customer ID is present, looks up the business customer
  3. If the customer's IsInactive flag is true, returns a validation error
  4. If no customer is set or the customer is active, validation passes

Error messages

ConditionTranslation Key
Customer is inactiveInactiveCustomerValidatorErrorMessage

Configuration

No additional properties required.

{
  "name": "inactiveCustomerValidator",
  "implementations": ["IValidator"],
  "disableStandardErrorPolicy": false
}

On this page