You can get the Shipment data or collection for the specific order by order id in Magento 2.
Using Magento\Sales\Api\ShipmentRepositoryInterface interface, you need to use getList() function to fetch no. of Shipment by sales order id.
Using SearchCriteriaBuilder Class, You need to use addFilter() method, filter by order id and pass searchCriteria object to getList() method of ShipmentRepositoryInterface. Continue reading “Get Shipment collection details by order id Magento 2.”