You should integrate the product object and the expected data types shared in the sample methods. For example, the taxonomy field requires an array of strings. If you submit this field as a string instead of an array, it won't work properly, and Insider One methods won't handle the product.
It will not function properly if you submit the productId field as an integer instead of a string.