POST api/Stock/Adjust
Make a singular stock adjustment to a SKU
Request Information
URI Parameters
None.
Body Parameters
EskimoClassLibraries.clsStockAdjustment| Name | Description | Type | Additional information |
|---|---|---|---|
| Adjustment | 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:
{
"Adjustment": {
"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:
<clsStockAdjustment 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>
<Adjustment>
<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>
</Adjustment>
</clsStockAdjustment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EskimoClassLibraries.clsStockAdjustmentResult| Name | Description | Type | Additional 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
}
application/xml, text/xml
Sample:
<clsStockAdjustmentResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries"> <Identifier>sample string 2</Identifier> <StockLevel1>3</StockLevel1> <StockLevel2>4</StockLevel2> <StockLevel3>5</StockLevel3> <StoreNumber>sample string 1</StoreNumber> </clsStockAdjustmentResult>