API documentation
Method list
Test your request
Changelog


addInventoryWarehouseRack
The method allows you to add or update a warehouse rack. Providing a rack_id updates the existing rack; omitting it creates a new one.


Input parameters
rack_idint(optional) Rack identifier for update. Leave blank or pass 0 to create a new rack. If provided, the rack with this ID will be updated.
namevarchar(100)Rack name. Maximum 100 characters, cannot be empty.
zone_idint(optional) Identifier of the zone this rack belongs to. Must be an existing zone for the user. Pass 0 or omit to leave unassigned. Default: 0.
layoutintPicking side layout. Accepted values: 0 (top), 1 (right), 2 (bottom), 3 (left).
location_prefixvarchar(10)(optional) Prefix applied to location names within this rack. Maximum 10 characters. Default: empty string.



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
rack_idintID of the created or updated rack.



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