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

NameDescriptionTypeAdditional information
addToStock

if true - add quantiry to stock, otherwise replace

boolean

Required

employeeId

integer

Required

Body Parameters

Collection of ProductStockImportLine
NameDescriptionTypeAdditional information
CompanyId

integer

None.

SKU

string

None.

Stock

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CompanyId": 1,
    "SKU": "sample string 2",
    "Stock": 3.0
  },
  {
    "CompanyId": 1,
    "SKU": "sample string 2",
    "Stock": 3.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
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.