Add a Stock Reorder Level
Adjust the stock reorder level for a stock item.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | AddStockReorderLevel | Required |
StockId | Int | Unique Id of the stock. | Required |
EntityType | Int | Contact = 1, Asset = 2. | Required |
EntityId | Int | The Id of the contact or the asset. | Required |
Quantity | Double | Quantity determines order level increase. | Required |
StockReorderId | Int | Filter the number of stock items to display. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Missing parameter entitytype | Mandatory parameter was not supplied |
2 | Missing parameter stockid | Mandatory parameter was not supplied |
2 | stockid not a valid integer value | Integer value is invalid or was not specified (when required) |
2 | Missing parameter entityid | Mandatory parameter was not supplied |
2 | entityid not a valid integer value | Integer value is invalid or was not specified (when required) |
2 | Missing parameter quantity | Mandatory parameter was not supplied |
2 | quantity not a valid double value | Double value is invalid or was not specified (when required) |
2 | ex.Message | The message generated by an internal error when saving the reorder level. |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=AddStockReorderLevel&StockId=3243783&EntityType=1&EntityId=2570304&Quantity=10
Response Data
{ "Code": 0, "Result": { "StockReorderId": 139051, "StockReorderStockId": 3243783, "StockReorderQuantity": 10, "StockReorderEntityId": 2570304, "StockReorderEntityTypeid": 1, "StockReorderEntityType": "Contact" } }