I think I used the tracking number for the packing kit shipping to match to the orders. I believe the order for each phone showed the trade in kit shipments for tracking.
I did this last year with my 11 Pro's. Had two iPhone X's to send back. I don't recall exactly what the differentiator was, but it was clear which box went with which phone.