well 24.5 k miles at equator iirc.
top of elevator could connect to a solar array that is charging gold telsa batteries.
not sure how to stablize the shaft of the elevator the solar array would power a warehouse transfer station.
I read something many years ago about a 'tethered' satellite which drags a cable into the magnetic field.
I can't remember the details or where I read it but there were large amounts of power to be extracted just by having the cable there.
You can extract electricity from the earth with a cable.
Something like this I think :
https://pwg.gsfc.nasa.gov/Education/wtether.html