When using the warehouse module and processing consolidated shipments for orders (multiple sales orders are packed in the same box and shipped together), it results in a consolidated packing slip that is related to multiple sales orders. However, only 1 sales order ID is referenced on the packing slip and invoice header. This causes issues in Ecommerce order history synchronization, because when using the Retail APIs to look up sales order details and invoices, they are not returned for sales orders that are linked to the consolidated packing slip and invoice. This happens because the related packing slips and invoices do not have the same SO number on the header.


The APIs should work regardless and should return the linked packing slip and invoices for a sales order that is contained in these entities.