PUT stocklocations/{stockLocationID}

Update a Stock Location by ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stockLocationID The ID of the Stock Location to update integer Required

Body Parameters

The Stock Location object

StockLocationBasicUpdateModel
NameDescriptionTypeAdditional information
StockLocationReference The Stock Location Reference string Required
WarehouseZoneIDType WarehouseZoneIDTypeModel None.
StockLocationType The type of the stock location. I.e. Pickbin, Bulk Location.. StockLocationType None.
KeepProduct Keep product determines whether when the stock location inventory for a product reaches 0 whether the stock location will retain the product or it will be removed. boolean None.
LocationOrder This is the priority of the stock location. A location order of 1 will be picked before 10. integer None.

Request Formats

application/json, text/json

Sample:
{
  "StockLocationReference": "A-1",
  "StockLocationType": "Pickbin",
  "KeepProduct": true,
  "LocationOrder": 1
}

application/xml, text/xml

Sample:
<StockLocationBasicUpdateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <StockLocationReference>A-1</StockLocationReference>
  <StockLocationType>Pickbin</StockLocationType>
  <KeepProduct>true</KeepProduct>
  <LocationOrder>1</LocationOrder>
</StockLocationBasicUpdateModel>

Response Information

Resource Description

Update a Stock Location by ID

StockLocationModel
NameDescriptionTypeAdditional information
StockLocationID The ID for the StockLocation integer Required
StockLocationReference The reference for the stock location. string None.
Warehouse The warehouse for the stocklocation WarehouseBaseModel None.
StockLocationType The type of the stock location. I.e. Pickbin, Bulk Location.. StockLocationType None.
KeepProduct Keep product determines whether when the stock location inventory for a product reaches 0 whether the stock location will retain the product or it will be removed. This is unavailable for accounts without multiple stock locations. boolean None.
LocationOrder This is the priority of the stock location. A location order of 1 will be picked before 10. integer None.
IsEmpty This is whether the stock locations contains any products. boolean None.
HasProducts This is whether the stock location has products associated to it. boolean None.
WarehouseZone The warehouse zone for the stocklocation WarehouseZoneBaseModel None.
Url The URL to access the object. string None.

Response Formats

application/json, text/json

Sample:
{
  "StockLocationID": 1,
  "StockLocationReference": "A-1",
  "Warehouse": {
    "WarehouseName": "My Warehouse",
    "WarehouseGuid": "7e97449d-eb77-4c69-97b9-9fbab11cf698",
    "WarehouseID": 1
  },
  "StockLocationType": "Pickbin",
  "KeepProduct": true,
  "LocationOrder": 1,
  "IsEmpty": false,
  "HasProducts": false
}

application/xml, text/xml

Sample:
<StockLocationModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <StockLocationID>1</StockLocationID>
  <StockLocationReference>A-1</StockLocationReference>
  <LocationOrder>1</LocationOrder>
  <Warehouse>
    <WarehouseName>My Warehouse</WarehouseName>
    <WarehouseGuid>7e97449d-eb77-4c69-97b9-9fbab11cf698</WarehouseGuid>
    <WarehouseID>1</WarehouseID>
  </Warehouse>
  <StockLocationType>Pickbin</StockLocationType>
  <KeepProduct>true</KeepProduct>
  <IsEmpty>false</IsEmpty>
  <HasProducts>false</HasProducts>
</StockLocationModel>