Skip to navigation

validateProduct

Arguments

productIdIntegerRequired
Product ID
variantIdIntegerRequired
Variant ID
quantityIntegerRequired
Quantity
productOptionslist of optional StringsOptional
Product options list
storeHashStringOptional
Store hash
channelIdIntegerOptional
Channel ID
targetStringOptional

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

Returns

an optional ValidateProductType
responseTypeStringOptional

The type of response returned. Possible values are SUCCESS | WARNING | ERROR.

messageStringOptional
The message returned if the product is not valid.
errorCodeStringOptional

The error code returned if the product is not valid. Possible values are NON_PURCHASABLE | OOS | INVALID_FIELDS | OTHER.

productProductValidationTypeOptional
Details of the product