addInventoryWarehouseLocationType
The method allows you to add or update a warehouse location type.
Input parameters
Output data:
A sample request in PHP:
| location_type_id | int | (optional) ID of the location type to update. Omit this parameter to create a new location type. |
| name | varchar(50) | Location type name (e.g. "Pallet"). Required when creating a new location type, optional when updating. Maximum 50 characters, must be unique among the authenticated user's location types. |
| max_quantity | int | (optional) Maximum number of products allowed at a single location of this type. 0 means no limit. Range: 0 - 999999999. Default for new types: 0. |
| max_weight | float | (optional) Maximum total weight in kilograms allowed at a single location of this type. 0 means no limit. Range: 0 - 9999.99. Default for new types: 0. |
| width | float | (optional) Width of a single location of this type, in centimeters. 0 means not set. Range: 0 - 9999.99. Default for new types: 0. |
| height | float | (optional) Height of a single location of this type, in centimeters. 0 means not set. Range: 0 - 9999.99. Default for new types: 0. |
| depth | float | (optional) Depth of a single location of this type, in centimeters. 0 means not set. Range: 0 - 9999.99. Default for new types: 0. |
| is_transfer_bin | bool | (optional) Whether locations of this type are used as transfer bins (intermediate locations during goods movements). Default for new types: false. |
Output data
The method returns the data in JSON format.
| status | varchar(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 |
| location_type_id | int | ID of the created or updated location type. |
Sample
Input data:Output data:
A sample request in PHP: