Skip to main content

Add or Update a Contact

Add or edit a contact within BigChange

Query String Parameters

NameTypeDescriptionRequired
ActionStringContactSaveRequired
ContactNameString(50)The name of the contact.Required
ContactGroupString(50)The unique identifier of the contact note group which can be retrieved using Contact Groups - must be provided if also supplying CustomFields

The contact group will be created if it does not exist. Will default to "Imported Contacts" of not provided
Optional
ContactParentReferenceString(40)The internal reference of the parent contact.Optional
ContactParentIdIntThe unique identifier of the parent contact which can be retrieved using Contact List.Optional
ContactReferenceString(40)The internal reference of the contact.Optional
ContactIdIntThe unique identifier of the contact which can be retrieved using Contact List.Optional
ContactStreetString(100)The street address of the contact. Required unless using ContactLat and ContactLngOptional
ContactPostcodeString(10)The postal code of the contact.Optional
ContactTownString(100)The address town of the contact.Optional
ContactCountryString(50)The address country of the contact. CountryOptional
ContactLatDoubleThe geolocation latitude of the contact. Required if ContactStreet is not providedOptional
ContactLngDoubleThe geolocation longitude of the contact. Required if ContactStreet is not providedOptional
ContactRadiusMeterIntRadius of circular geofence in meters.Optional
ContactPersonString(30)The primary person of the contact.Optional
ContactPhoneString(30)The phone number of the primary person of the contact.

Phone numbers must be encoded and in International format with no spaces. ie: %2B447954012012
Optional
ContactEmailString(100)Email address for the primary person of the contact.Optional
ContactExtraString(255)Free format text information about the Contact.Optional
ContactReplaceSameRefIntExisting contact with same reference will be replaced Default 0.Optional
ContactFirstNameStringFirst name of the contact.Optional
ContactLastNameStringLast name of the contact.Optional
ContactAccountReferenceStringThe financial account reference.Optional
ContactAccountTypeIntAccount type.Optional
ContactExtraUpdateIntUpdate contact’s extra info.Optional
CreditLimitStringContact’s credit limit.Optional
CreditLimitCurrencyStringCurrency of the credit limit.Optional
ContactExtraDelay2PayStringAn extra parameter for Delay2Pay.Optional
ContactOnStopIntOn Stop status. Optional
ContactOnStopDescendantBoolMust be set to true to apply 'On Stop' to child contacts.Optional
ContactOnStopReasonStringFree format field to explain reason contact is on stopOptional
ContactWhat3WordsStringSet location using What3Words. Will over-write any polygon data, and replace with a radius (default or supplied).Optional
ContactPolygonUpdateBoolSet to true updates the polygon based on lat/lng coordinates.Optional
cust_custom field nameStringPass cust_ followed by the caption of an existing custom field.Optional

Response Codes

CodeMessageInformation
0Response DataSee 'Response' example tab
2Contact Radius is not a valid numberInteger value is invalid or was not specified (when required)
2Invalid Credit LimitDouble value is invalid or was not specified (when required)
2Invalid Delay2PayShort value is invalid or was not specified (when required)
2contactOnStopType - must be integer value 0 = None , 1 = OnStop , 2 = Credit Limit On StopUnrecognized constant value - please verify the supported values
2The specified contact group does not exist and cannot be created with the details passedAn error occurred when attempting to save the Contact Group. Contact Support if this continues.
2Invalid parameter ContactWhat3WordsCheck the format of the What3Words string and that the names are correct

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=ContactSave&contactname=Lucy+Margetts&contactgroup=Customer&contactreference=IH-04&contactstreet=23+Maple+Avenue&contacttown=Leicester&contactpostcode=LE47QP&contactphone=%2B447932883112&contactemail=lucymargetts%40outlook.com