Skip to main content

Get a List of Stock Items by Asset Id or Registration

Query String Parameters

NameTypeDescriptionRequired
ActionStringFindStockItemByAssetRequired
AssetIdIntThe unique identifier of the asset which can be retrieved using Asset List.Required
AssetRegistrationIntThe internal reference of the asset.

The AssetReference or AssetRegistration can be supplied. If both parameters are provided, the AssetID will used in preference.
Required
IncludeCustomFieldsIntInclude custom fields in the response, value of 1 includes custom fields, 0 excludes custom fieldsOptional

Response Codes

CodeMessageInformation
0Response DataSee 'Response' example tab
2Invalid format - assetIdInteger value is invalid or was not specified (when required)
2Missing parametersMandatory parameter was not supplied
2Asset does not exist in JobWatch - assetIdNo record found using the specified parameters

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=FindStockItemByAsset&AssetId=69067