validateProducts

Arguments

productslist of optional ObjectsRequired
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 Object
isValidBoolean
Whether the general validation was successful.
productslist of optional Objects
Validation details of each product.