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.
Attributes
Name | Type | Required | Description |
---|---|---|---|
idlocation | integer | generated | Unique Picqer reference |
idwarehouse | integer | required | Linked to resource Warehouse |
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 |
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) |
Get all locations
Filters
You can filter the products with the following parameters. Add these filters as querystring parameters to the URL.
Attribute | Description | Example |
---|---|---|
idlocation_type | Only get locations from this type | 2 |
idwarehouse | Only get locations for this warehouse | 13 |
only_available | If true, only get locations that do not have any products linked yet | true |
name | Search for a specific location name | A.B.12 |
Get single location
Create new 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
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.
Link products to locations
This is documented on the product endpoint page.