Big Commerce API variants

I am trying to create an experience for a user, where they can select a Product and one of the variants to get the associated inventory at the variant level.
In Shopify’s API, I can do a Product API call, and the structure is:

  • Product
  • Variant
  • Inventory
    The problem is, when I am working with BigCommerce and I’m trying to get the stock level of the product variant I have to make 2 separate API calls.
    In BigCommerce’s API,
    I can do a Product API call
    I have to a separate Variant API call
    How would you go about getting the inventory level of a variant, for a given product
2 Likes