How to place an order for bundled items in an online store?

Hello Guys,
I’m getting this strange error while placing an order on the Shopify store. After checking here & there, I found this error was coming because I was placing an order for a bundled item.

Array
(
    [error] => Array
        (
            [line_items.variant_id] => Array
                (
                    [0] => cannot be a variant with components
                )

        )

)

is there any workaround to find out which item belongs to bundled items and with which API, I can place an order for an item that belongs to the bundle group?
Any help would be highly appreciated.