The GetPickupAddressesRequest API retrieves all pickup addresses linked accessible to the requesting MOL user.
This includes both:
User-owned addresses
These addresses are the ones created directly by the requesting MOL user, are always included in the response regardless of configuration and can be modified and deleted by the user
Customer-level shared addresses
In addition, if the flag Show shipments with same customer ID is enabled for the MOL user by the Center on HUB, all the pickup addresses at customer level will be returned
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.onlinembe.eu/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:GetPickupAddressesRequest>
<RequestContainer>
<System>IT</System>
<Credentials>
<Username>?</Username>
<Passphrase>?</Passphrase>
</Credentials>
<InternalReferenceID>TEST</InternalReferenceID>
</RequestContainer>
</ws:GetPickupAddressesRequest>
</soapenv:Body>
</soapenv:Envelope>
In the screenshot below, the first pickup address belongs to the customer, while the second one belongs to the MOL user.
If the MOL user does not have any pickup address, and it does not see any pickup address at customer level, the following error will occur:
No address could be found