POST v1/Products/{productId}/MoveStock
Move stock from one location to an other location 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 move values.
ProductStockMoveInput| Name | Description | Type | Additional information |
|---|---|---|---|
| FromWarehouseLocationId |
Gets or sets from warehouse location identifier. |
integer |
None. |
| ToWarehouseLocationId |
Gets or sets to warehouse location identifier. |
integer |
None. |
| Qty |
Gets or sets the Qty. |
decimal number |
Required |
| Reason |
Gets or sets the reason. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"FromWarehouseLocationId": 1,
"ToWarehouseLocationId": 2,
"Qty": 3.0,
"Reason": "sample string 4"
}
application/xml, text/xml
Sample:
<ProductStockMoveInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FromWarehouseLocationId>1</FromWarehouseLocationId> <ToWarehouseLocationId>2</ToWarehouseLocationId> <Qty>3</Qty> <Reason>sample string 4</Reason> </ProductStockMoveInput>
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>