validateProduct
Arguments
productId
Product ID
variantId
Variant ID
quantity
Quantity
productOptions
Product options list
storeHash
Store hash
channelId
Channel ID
target
Validation target: ‘CART’ or ‘QUOTE’ (default). Controls whether OOS/Non-Purchasable products return errors or warnings.
Returns
responseType
The type of response returned. Possible values are SUCCESS | WARNING | ERROR.
message
The message returned if the product is not valid.
errorCode
The error code returned if the product is not valid. Possible values are NON_PURCHASABLE | OOS | INVALID_FIELDS | OTHER.
product
Details of the product