POST v1/Products/{productId}/UpdateStock
Update the stock QTY for given product.
Request Information
Requires Authorization!
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productId |
The Id of the product. |
integer |
Required. |
Body Parameters
The update values.
ProductStockUpdateInput| Name | Description | Type | Additional information |
|---|---|---|---|
| WarehouseLocationId |
Gets or sets the warehouse location identifier. |
integer |
Required |
| Qty |
Gets or sets the qty. |
decimal number |
Required |
| Reason |
Gets or sets the reason. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WarehouseLocationId": 1,
"Qty": 2.0,
"Reason": "sample string 3"
}
application/xml, text/xml
Sample:
<ProductStockUpdateInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <WarehouseLocationId>1</WarehouseLocationId> <Qty>2</Qty> <Reason>sample string 3</Reason> </ProductStockUpdateInput>
Response Information
Resource Description
Returns the transaction id when the update was successful.
integer
Response Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int>1</int>