The DeletePickupAddressRequest API enables MOL users to permanently remove pickup addresses from their account. This operation provides secure deletion with strict ownership validation and comprehensive error handling to prevent unauthorized access or accidental deletions.
The API requires minimal input with the address identifier. The PickupAddressId field is the ID of the pickup address that will be deleted.
It must be a valid existing address, must belong to the requesting MOL user and cannot be a customer-level shared address
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://www.onlinembe.eu/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:DeletePickupAddressRequest>
<RequestContainer>
<System></System>
<Credentials>
<Username></Username>
<Passphrase></Passphrase>
</Credentials>
<InternalReferenceID>your_reference</InternalReferenceID>
<PickupAddressId>491808</PickupAddressId>
</RequestContainer>
</ws:DeletePickupAddressRequest>
</soapenv:Body>
</soapenv:Envelope>
<Response>
<Status>OK</Status>
<PickupAddressId>491808</PickupAddressId>
<PickupAddressStatus>DELETED</PickupAddressStatus>
</Response>
Possible errors:
"This pickup address either has already been deleted or it is incorrect" if the MOL user inserts an invalid pickup address (which has already been deleted or it is nonexistent);
"This MOL user cannot edit that pickup address" if the pickup address ID does not belong to the requestant MOL user.