I've got a product with hundreds of variants. I'm tracking inventory by variant, but I'd like to give the customer availability feedback when they select the variant options, as opposed to when they Add to Cart. I'm working on an AJAX solution that should access the REST API. I've got a couple of issues, but I'll stick to one for now.What class do I need to access to get the variant inventory? I thought it would be CMS.Product, but /rest/cms.product/all (yes, I'm working with global admin while building this) gives me a 404 error.I'll note that I'm successfully accessing the REST API with AJAX elsewhere on the site.
↧