Right now there is no API endpoint to retrieve warehouses or warehouse locations.
The only workaround is to infer them from inventory movements, which results in incomplete and unreliable data. Any location that has not yet been used in a movement does not exist in the API from our perspective.
This also makes it impossible to:
A proper endpoint for warehouses and warehouse locations would significantly improve integration reliability.