validateProducts

Arguments

productslist of optional ValidateProductInputTypeRequired
Products list to validate
channelIdIntegerOptional
Channel ID
storeHashStringOptional
Store hash
targetStringOptional

Validation target: ‘CART’ or ‘QUOTE’ (default). Controls whether OOS/Non-Purchasable products return errors or warnings.

Returns

an optional ValidateProductsType
isValidBoolean
Whether the general validation was successful.
productslist of optional ValidateProductType
Validation details of each product.