POST api/Stock/MultiAdjust

Make a range of stock adjustments to one or multiple SKUs

Request Information

URI Parameters

None.

Body Parameters

EskimoClassLibraries.clsStockAdjustments
NameDescriptionTypeAdditional information
Adjustments

Collection of EskimoClassLibraries.clsStockAdjustmentInfo

Required

ReturnStockLevels

If true, a response will be returned containing the current stock levels. If False, null will be returned, but a Status Code of 200 will indicate success.

boolean

None.

OperatorID

Optional. Assigns the stock adjustment to a particular member of staff. If omitted, a system opertator will be assigned.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Adjustments": [
    {
      "SKU_Code": "sample string 1",
      "StockLocation": 2,
      "AdjustmentType": 1,
      "Amount": 3,
      "AdjustmentReason": "sample string 4",
      "Identifier": "sample string 5",
      "StoreNumber": "sample string 6"
    },
    {
      "SKU_Code": "sample string 1",
      "StockLocation": 2,
      "AdjustmentType": 1,
      "Amount": 3,
      "AdjustmentReason": "sample string 4",
      "Identifier": "sample string 5",
      "StoreNumber": "sample string 6"
    }
  ],
  "ReturnStockLevels": true,
  "OperatorID": "sample string 2"
}

application/xml, text/xml

Sample:
<clsStockAdjustments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries">
  <OperatorID>sample string 2</OperatorID>
  <ReturnStockLevels>true</ReturnStockLevels>
  <Adjustments>
    <clsStockAdjustmentInfo>
      <AdjustmentReason>sample string 4</AdjustmentReason>
      <AdjustmentType>SetToValueSpecified</AdjustmentType>
      <Amount>3</Amount>
      <Identifier>sample string 5</Identifier>
      <SKU_Code>sample string 1</SKU_Code>
      <StockLocation>2</StockLocation>
      <StoreNumber>sample string 6</StoreNumber>
    </clsStockAdjustmentInfo>
    <clsStockAdjustmentInfo>
      <AdjustmentReason>sample string 4</AdjustmentReason>
      <AdjustmentType>SetToValueSpecified</AdjustmentType>
      <Amount>3</Amount>
      <Identifier>sample string 5</Identifier>
      <SKU_Code>sample string 1</SKU_Code>
      <StockLocation>2</StockLocation>
      <StoreNumber>sample string 6</StoreNumber>
    </clsStockAdjustmentInfo>
  </Adjustments>
</clsStockAdjustments>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of EskimoClassLibraries.clsStockAdjustmentResult
NameDescriptionTypeAdditional information
StoreNumber

string

None.

Identifier

string

None.

StockLevel1

integer

None.

StockLevel2

integer

None.

StockLevel3

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StoreNumber": "sample string 1",
    "Identifier": "sample string 2",
    "StockLevel1": 3,
    "StockLevel2": 4,
    "StockLevel3": 5
  },
  {
    "StoreNumber": "sample string 1",
    "Identifier": "sample string 2",
    "StockLevel1": 3,
    "StockLevel2": 4,
    "StockLevel3": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfclsStockAdjustmentResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries">
  <clsStockAdjustmentResult>
    <Identifier>sample string 2</Identifier>
    <StockLevel1>3</StockLevel1>
    <StockLevel2>4</StockLevel2>
    <StockLevel3>5</StockLevel3>
    <StoreNumber>sample string 1</StoreNumber>
  </clsStockAdjustmentResult>
  <clsStockAdjustmentResult>
    <Identifier>sample string 2</Identifier>
    <StockLevel1>3</StockLevel1>
    <StockLevel2>4</StockLevel2>
    <StockLevel3>5</StockLevel3>
    <StoreNumber>sample string 1</StoreNumber>
  </clsStockAdjustmentResult>
</ArrayOfclsStockAdjustmentResult>