Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following table provides the URI and method that can be used to search for contacts in Crittah.

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/contacts/search
POST

Post a JSON or XML object with search criteria.

Search Fields

FieldValue typeMandatoryDescriptionExample
FirstNamestring


First name of the contactJarryd
LastNamestring
Last name of the contactHayne
Phonestring
Phone number of the contact987649874
Mobilestring


Mobile phone number of the contact041658246
Faxstring
Fax number of the contact6546548665
Emailstring


Email address of the contactfred@smith.com
ContactRefstring
The unique reference of the contact allocated by Crittah contact created6548335

Example Search

Perform a POST to the following URL https://[companyID].crittah.com/ws/apiv2/json/contacts/search

JSON

Code Block
{
	"FirstName": "James", 
	"Mobile": "0438770502", 
	"Email": "james@skurray.com"
}

XML

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<ContactSearchParamsComplex xmlns="http://schemas.datacontract.org/2004/07/Spinifex.lib.objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
	<FirstName>James</FirstName>
</ContactSearchParamsComplex>


Working with a single contact

The following table provides the URI and methods that can be used to add, updated, delete and get a contact in Crittah

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/contacts/[contactId]
DELETEDeletes one contact
GETReturns data for one contact
POSTCreate or modify only the supplied data for one contact; returns contact data after request
PUTNot supported

...