Get a List of Stock Movements
Show stock movements within a 24 hour date range.
Query String Parameters
Name | Type | Description | Note |
---|---|---|---|
Action | String | FindStockMovements | Required |
Start | DateTime | Start of date range. Must be in format: yyyy-MM-dd HH:mm:ss. | Required |
End | DateTime | End of date range. Must be in format: yyyy-MM-dd HH:mm:ss. Date range cannot exceed 24 hours. | Required |
ResourceId | Int | Unique resource Id. | Optional |
ContactId | Int | Filter by contact Id. | Optional |
Make | String | Filter by make. | Optional |
Model | String | Filter by model. | Optional |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Missing or invalid parameter Start | Date value is invalid or was not specified (when required) |
2 | Missing or invalid parameter End | Date value is invalid or was not specified (when required) |
2 | Start Date must be before End Date | Supplied Date range is invalid |
2 | Start to End time span greater than 24 hours | Supplied Date range is invalid |
2 | Missing or invalid parameter ResourceId | Mandatory parameter was not supplied |
2 | Invalid ContactId | Integer value is invalid or was not specified (when required) |
2 | Unable to locate resource with id {resourceId} | No record found using the specified parameters |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=FindStockMovements&Start=2024-09-22 09:00:00&End=2024-09-23 09:00:00
Response Data
{ "Code": 0, "Result": [ { "StockId": "772325", "StockConsumable": true, "StockMake": "", "StockModel": "GSB Wire 1", "StockNumber": "", "StockTypeId": 4820, "StockTypeName": "Wires", "StockItemId": 0, "StockItemReference": "", "StockItemUsage": 0, "JobId": 0, "ResourceId": 17868, "PickupDate": "9/23/2024 12:00:00 AM", "PickupContactId": "10597479", "PickupAssetId": "", "PickupAssetRegistration": "", "PickUpQuantity": "1", "PickupIsEquipment": false, "DropOffDate": "9/23/2024 12:00:00 AM", "DropOffContactId": "2745756", "DropOffAssetId": "", "DropOffAssetRegistration": "", "DropOffItemId": "", "DropOffItemReference": "", "DropOffQuantity": "1", "DropOffAsEquipment": false, "SIHistoDropOff4Sell": true } ] }