Hi, i need a help to how can i get the packages related to a customer

I found a issue to how can i get the package related to a customer, i see we have the batch_id, that returns me the booking is linked to him, but i need a way to return to me if we have a package associated with the customer.