API customer - location_name and location_id

The fields location_name and location_id always seem to be null.
I have customers with location data, but when retrieving those customers via the API, the location_name and location_id fields only contain null.

Why?