Skip to main content

Add or Update Asset

This method adds or updates assets. Existing values will be retained when updating existing assets and the parameters have been omitted.

Query String Parameters

NameTypeDescriptionRequired
ActionStringAssetSaveRequired
AssetIdIntUnique Id of the asset.Required
AssetRegistrationStringThe registration number of the asset.Required
AssetTypeInt/StringThe type of asset to be created. Parameter can be either the "int" or "string" value, where: 1 = Vehicle or 2 = Trailer.Required
VehicleTypeInt/StringUse method 'VehicleTypes' for supported values.Required
GroupIdIntProvide either the Group Id or Group Name. At least one must be provided when creating an asset.Required
GroupNameStringProvide either the Group Id or Group Name. At least one must be provided when creating an asset.Required
MakeStringAsset make.Required
ModelStringAsset model.Required
YearNumericAsset year.Required
OdometerUnitStringString to represent the Odometer where: mi = miles (default) km = kilometer.Required
ReferenceStringThe internal reference of the asset.Required
UsedForJobsBool1 = true, 0 = falseRequired
ResourceIdIntId of the fixed resource (if required). Provide the ResourceId or ResourceReference to associate a fixed resource.Required
ResourceReferenceStringReference of the fixed (resource).Required
CostPerKmDecimalCost per kilometer.Required
CostPerMileCurrencyStringCost per mile currency.Required
CostPerDayDecimalCost per day.Required
CostPerDayCurrencyStringCost per day currency.Required
Co2DoubleNot implemented - provided for future support.Required
IdlingFuelConsumptionDoubleNot implemented - provided for future support.Required
Attributes<id,date>AttributeId,AttributeDate - use method 'Attributes' for support values. Multiple instances of the parameter can be provided.Required
WorksheetsForVehicleChecksNot implemented - provided for future support.Required
VehicleTypeForDefectsNot implemented - provided for future support.Required
MaxRPMShortMaximum RPMRequired
IconNameStringDefault icon name is "rig". Use method 'AssetIcons' for supported values.Required
cust_custom field namePass cust_ followed by the caption of an existing custom field.Optional
ContactGroupString(50)Name of the contact group. If the group doesn’t already exist it will be created. The contactGroup parameter must be supplied if custom fields are included in the request.Optional
ContactParentReferenceString(40)Reference you use in your system to identify contact’s parent.Optional
ContactParentIdIntInternal BigChange ContactParentId.Optional
ContactReferenceString(40)Key you use in your system to identify the contact.Optional
ContactIdIntInternal BigChange contact reference.Optional
ContactStreetString(100)Address information. If you have your address information in one whole string you can only specify the parameter "Street".Optional
ContactPostcodeString(10)Post Code.Optional
ContactTownString(100)Town.Optional
ContactCountryString(50)Country.Optional
ContactLatDoubleLatitude.Optional
ContactLngDoubleLongitude.Optional
ContactRadiusMeterIntRadius in meters.Optional
ContactPersonString(30)Person you are in touch with at the contact.Optional
ContactPhoneString(30)Phone number of the person working at that contact. Must be in International format. No space E.g. +447954012012 Please ensure you encode the Phone Number.Optional
ContactEmailString(100)Email of that person.Optional
ContactExtraString(255)Any extra bit of info you want to save.Optional
ContactReplaceSameRefIntWhen = 1, a contact with the specified reference will be updated with the new info. 1 or 0. Default 0.Optional
cust_custom field nameStringPass cust_ followed by the caption of an existing custom field.Optional
ContactFirstNameStringFirst name of the contact.Optional
ContactLastNameStringLast name of the contact.Optional
ContactAccountReferenceStringThe financial account reference.Optional
ContactAccountTypeIntContact's account typeOptional
ContactExtraUpdateIntUpdate contact’s extra info.Optional
CreditLimitStringContact’s credit limit.Optional
CreditLimitCurrencyStringCurrency of the credit limit.Optional
ContactExtraDelay2PayStringAn extra parameter for Delay2Pay.Optional
ContactOnStopintPass the relevant integer value to set the contacts on stop status. ContactOnStop values 0 = None , 1 = OnStop , 2 = Credit Limit On Stop.Optional
ContactOnStopReasonStringSets the ContactOnStop Reason.Optional
ContactWhat3WordsStringSet location using What3Words . Will over-write any polygon data, and replace with a radius (default or supplied).Optional

note

At a minimum either the parameter "ContactStreet", or the coordinates ("ContactLat" & "ContactLng"), are required.

Response Codes

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=AssetSave&AssetRegistration=XXX 123Z&AssetType=1&VehicleType=4&GroupId=1046&Reference=AAABBBCCC