API documentation
Method list
Test your request
Changelog


getInventoryWarehouseZones
The method allows you to retrieve the list of warehouse zones. The returned list is sorted alphabetically by name.


Input parameters



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
zonesarrayAn array of warehouse zones containing the fields listed below.
| - zone_idintZone identifier. Use this value as zone_id when calling addInventoryWarehouseRack (to assign a rack to a zone) or addInventoryWarehouseLocation (to assign a location to a zone).
| - namevarchar(50)Zone name.
| - colorchar(6)Zone color in 6-character lowercase hex format (without "#"), e.g. "5cb85c".
| - location_prefixvarchar(10)Prefix applied to location names within this zone. Empty string if not set.



Sample
Input data:
Output data:
A sample request in PHP: