Getting a customer profile by email returning wrong addressId on availableAddresses

When using the endpoint from the api “Getting a customer profile by email” the addressId field is returning the value from addressName instead of the document Id.
How to fix this?
I’ve also tried to use " Get client addresses" endpoint from Profile System but it didn’t work, it always return with every user id.

At the end I used the endpoint for find documents and get the ID first, after that I could update the address properly