Locations
Locations are specific places in your warehouses where you can place products. When you manage your locations consequently, it speeds up your operations.
You can manage your locations with these endpoints. You can use locations to link to products.
Containers
Containers are a type of locations. Both can contain stock and behave the same way. In the web interface they are shown in their own way, but in the API they are the same.
Locations of the type "location" can be nested, and you can choose your own name. Locations of the type "container" only have 1 dimension, have an incremental number as name and don't have a fixed location in the warehouse.
Attributes
Name | Type | Required | Description |
---|---|---|---|
idlocation | integer | generated | Unique Picqer reference |
idwarehouse | integer | required | Linked to resource Warehouse |
type | string | optional | "location" or "container" |
idlocation_type* | integer | optional | Linked to resource LocationType, will be linked to default value if empty |
parent_idlocation* | integer | optional | Linked to resource Location, for nested locations |
name | string | required | Name of location |
remarks | string | optional | Remarks for the location |
unlink_on_empty* | boolean | optional | If true, products will be unlinked from this location if their stock reaches 0 (default: false) |
is_bulk_location* | boolean | optional | If true, location will be used for bulk stock (default: false) |
is_exclusive_location* | boolean | optional | If true, location can only be linked to one product (default: false) |
* These attributes are only returned when type is "location".
Get locations
By default, only locations with the type "location" are returned. Use the type filter to get containers.
Filters
You can filter the locations with the following parameters. Add these filters as querystring parameters to the URL.
By default, only locations of type "location" are returned.
Attribute | Description | Example |
---|---|---|
type | Return only locations of the "location" or "container" type (default: "location") | container |
idwarehouse | Only get locations for this warehouse | 13 |
name | Search for a specific location name | A.B.12 / Container 1 |
idlocation_type* | Only get locations from this type | 2 |
only_available* | If true, only get locations that do not have any products linked yet | true |
* Not in use when "container" objects are requested.
Get single location
In case of type "location":
In case of type "container":
Create new location
In case of type "location":
You can also create a location with the param auto_link_to_parent set to 1. This will look for a obvious parent in your naming, and link to the parent if it exists, or otherwise create the parent. So the endpoint is https://example.picqer.com/api/v1/locations?auto_link_to_parent=1
In case of type "container":
Update location
Delete location
Location can only be deleted if there are no products linked.
Get products on location
This gives you the products (with or without stock) that are currently linked to this location.
If the location is a container we also show the "intent" for the product in the container. This is the location we suggest as a destination for a product in a container.
There is currently only 1 type of intent, namely "to_location".
Change the intent location for a product in a container
Intents can only be changed for products in a container.
Link products to locations
This is documented on the product endpoint page.