Hello!
I’m part of a team developing a Shopify App designed to sync order data from an external sale channel into Shopify’s dashboard.
When a customer places an order on the external site, our app grabs the order data (specifically, the products in the order) then builds a request sent to the Shopify API that creates a Shopify order in the “orders” dashboard of the client’s store. This way, they can manage and fulfill all their orders in one place.
The issue we are encountering occurs when a client is using an app such as Shopify Bundles to create product bundles. When we attempt to fetch the product bundle via its variant ID, we receive the following error:
line_items.variant_id - cannot be a variant with components
Note: the create order functionality works fine with individual products.
I was wondering if someone could (A) explain this error in further detail and (B) clarify what the Shopify API would accept instead of the variant id when we need to send a request for a product bundle order. Is there some sort of workaround that needs to be implemented?
We are using the GraphQL API.
Thanks for your help!