We have a zap that creates an invoice in our accounting app when an order is placed in Magento 2. We use configurable products in Magento 2. However when one of the configurations is ordered both the simple product (child) as well as the configurable product (parent) are included in the items array. So what happens is an invoice is created with duplicate items.
Is there any way to remove the configurable parent items from the from the array so just the simple products go through?