Location Types
To distinguish different types of locations, you can use location types. For example, based on the size of the location, or special locations for best sellers.
Attributes
Name | Type | Required | Description |
---|---|---|---|
idlocation_type | integer | generated | Unique identifier for the location type |
name | string | required | Name of the location type |
default | boolean | generated | Indicates whether this location type is the default type |
color | string | required | Color code for the location type (e.g., "#FF0000") |
Get all location types
Retrieve a list of all location types.
Get single location type
Retrieve details of a specific location type by its ID.
Create a location type
Create a new location type. Only the listed fields can be provided; other fields like idlocation_type and default are automatically generated by the system.
Attributes
Name | Type | Required | Description |
---|---|---|---|
name | string | required | Name of the location type |
color | string | required | Color code for the location type (e.g., "#FF0000") |
Update a location type
Update an existing location type. Only the listed fields can be modified.
Attributes
Name | Type | Required | Description |
---|---|---|---|
name | string | optional | Name of the location type |
color | string | optional | Color code for the location type (e.g., "#FF0000") |
Delete a location type
Delete a specific location type by its ID. Note that you cannot delete a location type that is set as default or is still in use by locations in the warehouse.
Set as default
Set a location type as the default. This will unset any previously set default location type. No request body is required.