Get Contacts By Phone Number
Search contacts by phone.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | ContactsByPhone | Required |
PhoneNumber | String | The phone number associated with the Contact you wish to locate. Phone numbers must be encoded and in International format with no spaces. ie: %2B447954012012 | Required |
IncludeLandline | Bool | Set to true to also search landline numbers linked to the contact. | Required |
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Data | See 'Response' example tab |
0 | No results | No data returned or set-up in BigChange |
2 | Missing phonenumber parameter | Mandatory parameter was not supplied |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=contactsbyphone
Response Data
{ "Code": 0, "Result": { "ContactId": 5930839, "ContactGroupId": 25420, "ContactName": "Contact Name", "ContactStreet": "Somewhere Close", "ContactPostCode": "XX15 7DF", "ContactTown": "Somewhere", "ContactCountry": "Anywhere", "ContactPerson": "Joe Bloggs", "ContactPhone": "+447777123456", "ContactEmail": "joebloggs@email.com", "ContactExtra": "", "ContactFlagged": false, "ContactCenter": { "Latitude": 5.388543, "Longitude": -0.742185 }, "ContactOwnerId": 25193, "ContactOnStop": 0 } }