Versions Compared

Key

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

...

FieldValue typeMandatoryDescriptionExample
IDSitestring 
Unique identifier of the site.7090fad1-c4da-4488-9ceb-55ee9847edcc
Sitestring 
Name of siteMelbourne
Descriptionstring 
description of siteThis is a description of the site

...

FieldValue typeMandatoryDescriptionExample
IDTypestring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
TypeNamestring 
Name of typePhone
Descriptionstring 
description of typeLead generated by phone.

...

 
FieldValue typeMandatoryDescriptionExample
IDTypestring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
TypeNamestring 
Name of typeVIP
Descriptionstring
description of typeVery important customer

...

 
FieldValue typeMandatoryDescriptionExample
IDTypestring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
TypeNamestring 
Name of typeVIP
Descriptionstring
description of typeVery important customer

...

FieldValue typeMandatoryDescriptionExample
IDJobTypestring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
IDWorkFlowstring 
ID of the workflow used for the specific job type.jdk0fad1-c4da-4488-ereb-55ee9847edcc
Namestring 
Name of jobAdHoc
Descrstring 
Description of jobAdHoc job used for last minute work
Colourstring 
HEX colour used to colour code the job#hhjkgf

...

FieldValue typeMandatoryDescriptionExample
IDTypestring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
TypeNamestring 
Name of typeGeneral
Descriptionstring 
description of typeGeneral note type

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfTypeCrittah xmlns="http://schemas.datacontract.org/2004/07/Spinifex.lib.objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <TypeCrittah>
      <IDType>22fcd267-1958-4a27-8e9c-09139ea3f8a8</IDType>
      <TypeName>Delivery</TypeName>
      <Description>Delivery Details</Description>
   </TypeCrittah>
   <TypeCrittah>
      <IDType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDType>
      <TypeName>General</TypeName>
      <Description>GeneralNote</Description>
   </TypeCrittah>
   <TypeCrittah>
      <IDType>2b11efc3-2a43-4c03-92ac-923e77f821a2</IDType>
      <TypeName>Important</TypeName>
      <Description>Important Note</Description>
   </TypeCrittah>
</ArrayOfTypeCrittah>

Anchor

...

ClosedReasons

...

ClosedReasons

...

Closed Reasons

Returns a list of all contact statuses closed reasons configured in Crittah.

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/statuses/contactclosedreasons
GETReturns data defining contact statustypes

Data fields

FieldValue typeMandatoryDescriptionExample
IDStatusIDTypestring 
Unique identifier of the typeclosed reason7090fad1-c4da-4488-9ceb-55ee9847edcc
StatusNameTypeNamestring 
Name of statusclosed reasonsActiveVIP
Descriptionstring 
description of statusAcitve

Get contact status

closed reasonVery important customer

Get closed reasons

Sample cURL call:

Code Block
curl -H "Content-Type: application/json"  \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://[CompanyID].crittah.com/ws/apiv2/json/closedreasons

JSON Rsponse:

Code Block
[
    {
        "IDType": "24501b6f-dbeb-4344-a565-419bd2df26fe",
        "TypeName": "No longer needed",
        "Description": "No longer needed"
    },
 {
        "IDType": "24501b6f-dbeb-4344-a565-419bd2df26fe",
        "TypeName": "customer cancelled",
        "Description": "customer cancelled"
    }
]

Anchor
ContactStatuses
ContactStatuses
Contact Status

Returns a list of all contact statuses configured in Crittah.

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/statuses/contact
GETReturns data defining contact status

Data fields

FieldValue typeMandatoryDescriptionExample
IDStatusstring
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
StatusNamestring
Name of statusActive
Descriptionstring
description of statusAcitve

Get contact status

Sample cURL call:

Code Block
curl -H "Content-Type: application/json"  \
-H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \
-H "Api-Username: jsmith" \
-H "API-Password: abc123" \
http://[CompanyID].crittah.com/ws/apiv2/json/statuses/contact

...

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/statuses/customer
GETReturns data defining customer status

Data fields

FieldValue typeMandatoryDescriptionExample
IDStatusstring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
StatusNamestring 
Name of statusActive
Descriptionstring 
description of statusAcitve

...

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/users
GETReturns data of all users

Data fields

 
FieldValue typeMandatoryDescriptionExample
IDUserstring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
Salutationstring 
Salutation of the userMr
FirstNamestring 
First name of the userJohn
LastNamestring
Last name of the userSmith

...

Data fields

FieldValue typeMandatoryDescriptionExample
IDJobTypestring 
Unique ID for the job type. This is required to return the statuses for s specifc job typ7090fad1-c4da-4488-9ceb-55ee9847edcc
IDStatusstring 
Unique identifier of the type7090fad1-c4da-4488-9ceb-55ee9847edcc
StatusNamestring 
Salutation of the userMr
Descriptionstring 
First name of the userJohn

...