Skip to Content
0
Former Member
Jun 01, 2018 at 10:24 PM

All VarientOptions for OCC /product End Point

89 Views

Hi!

I'm currently building a PWA using the OCC rest API. One issue that I'm running into is not being able to get all the variant options with a requested product.

The situation in particular is when I request a product variation, lets say '122340_mint_leather' (so it had a selected style variant option), it will only give me the variant options that are in stock (one variant that is size medium).

So if I was to build my UI I only have enough information to populate my "size" drop down with "medium" because that this the only one available.

Is there a way to get all the variations in stock or not with the /product endpoint?

Essentially I want a request to get '122340_mint_leather' to return all the other style variations and sizes.

Thank you, Ben

On a side note, if this isn't possible, is there a way to request multiple products in one call?