POST api/updateProductStock?addToStock={addToStock}&employeeId={employeeId}
Update Stock By Product SKU
Request Information
Allows multi-location processing, in case of using parent location token restrictByLocations parameter is strongly recommended with comma separated list of locations to select from or update in
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| addToStock |
if true - add quantiry to stock, otherwise replace |
boolean |
Required |
| employeeId | integer |
Required |
Body Parameters
Collection of ProductStockImportLine| Name | Description | Type | Additional information |
|---|---|---|---|
| ModifiedBy | string |
None. |
|
| CompanyId | integer |
None. |
|
| SKU | string |
None. |
|
| Stock | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"ModifiedBy": "sample string 1",
"CompanyId": 2,
"SKU": "sample string 3",
"Stock": 4.0
},
{
"ModifiedBy": "sample string 1",
"CompanyId": 2,
"SKU": "sample string 3",
"Stock": 4.0
}
]
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
list of results in format: [CompanyId], [Sku], [NewStock], [IsSuccess]. IsSuccess false if sku was not found in the company
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |