Shopify Community,
I have a simple question to ask regarding the REST API and Product data structure that I believe I already understand, but I want to confirm with the community that my understanding is indeed correct.
Am I correct in stating that when you retrieve a Shopify product’s information from the REST API, and the product does not have any variants, that there will always be a variant field returned in that REST API call with one member in the variants JSON array? Is this what we call the default variant for a product, even if the product is not marked as having any variants itself in the Shopify admin?
I believe the answer to this question is yes, but I would like to hear confirmation from anyone else to ensure my understanding is indeed correct. The GraphQL API is a bit more detailed in its product information returned than the REST API is.
Thank you!
Best Regards,
Daniel