How to check order is invoiced or shipped in magento 2? 8 years ago i am creating invoice and shipping pragmatically, but first i want to check there is already invoice or shipment created