The present invention relates to a method for operating a door having a mechanical lock of a parcel locker compartment, comprised in a parcel locker having a service point ID. The method comprises the acts of transmitting beacon signals, comprising the service point ID and receiving a user electronic token tagged with a matching service point ID, comprising a piece ID and instruction of a user event. The method further comprises the acts of creating a parcel locker command for the received instructions and transmitting a parcel locker command signal for the parcel locker command for operating the lock. The invention further relates to a parcel locker, and a foundation thereof.