Get an Asset
Returns details for a specific asset.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | AssetDetail | Required |
AssetId | Int | The unique identifier of the asset which can be retrieved using Asset List. | Optional - See Tip |
AssetRegistration | String | The registration number of the asset. | Optional - See Tip |
AssetReference | String | The internal reference of the asset. | Optional - See Tip |
IncludeCustomFields | Bool | Include custom fields in the response. | Optional |
tip
Any combination of the AssetID, Registration or Reference parameter can be provided. You only need to provide one of the three parameters.
If multiple parameters are provided, the method will use AssetId over Registration, over Reference.
If multiple parameters are provided, the method will use AssetId over Registration, over Reference.
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
2 | Asset not found | |
2 | Invalid format - AssetId, AssetRegistration or AssetReference is required | |
2 | Invalid format - AssetGroupId | |
2 | There are no assets setup in JobWatch |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=AssetDetail&AssetId=226330
Response Data
{ "Code": 0, "Result": [ { "Registration": "XXX 123Z", "Assetid": 226330, "AssetTypeid": 1, "AssetType": "Vehicle", "AssetRegistration": "XXX 123Z", "AssetResourceId": 36230, "AssetReference": "AAABBBCCC", "AssetCostPerKm": 0, "AssetCostCurrencyKm": "GBP", "AssetCostPerDay": 0, "AssetCostCurrencyDay": "GBP", "AssetGroupId": 10406, "AssetGroupName": "Car" } ] }