Versions Compared

Key

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

Available from CRM.COM R5.0.0

Table of Contents
maxLevel2

...

Name

Type

Description

token

String

The token retrieved from the login method

lead_identifier

(mandatory)

Lead identifier  

The identifier of the lead that should be returned as a result. The allowed lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Name

Type

Description

token

String

The token retrieved from the login method

contact_information_identifier

(semi-optional)

Contact information identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts receivable identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(semi-optional)

Lead type identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(semi-optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(semi-optional)

String

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(semi-optional)

String

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Name

Type

Description

token

String

The token retrieved from the login method

contact_information_identifier

(optional)

Contact information identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts receivable identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)

Lead type identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead Importance

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

GET leads/get_close_to_estimated_completion_time

Tip

Available from CRM.COM R11.1.0

This method returns all leads that are close to estimated completion time. Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

NameTypeDescription
token

String

The token retrieved from the login method

period
(mandatory)

NumberThe length of time for which a lead is close to estimated completion

uot
(mandatory)

StringThe unit of time. The supported values are the following:

MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

contact_information_identifier

(optional)

Contact Information Identifier

The identifier of the contact information for which the Lead was created. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

 

accounts_receivable_identifier

(optional)

Accounts receivable identifier 

The identifier of the accounts receivable with which the lead is related to. The allowed accounts receivable identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)

Lead type identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead category identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead source identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead ImportanceThe importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead PriorityThe priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated

 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

Request:{{server}}/crmapi/rest/v2/leads/get_close_to_estimated_completion_time?token={{token}}&period=3&uot=DAYS

Response:

Code Block
 {
  "data": [
    {
      "target_amount": null,
      "contact_phone": "96541258",
      "log_information": {
        "created_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "updated_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "created_date": "2016-10-31T15:50:29",
        "updated_date": "2016-10-31T15:53:29",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "importance": "IMPORTANCE1",
      "lead_source": {
        "name": "crm.com",
        "type": "WEBSITE"
      },
      "services_set": [],
      "owned_by_group": {
        "alternative_code": "MG",
        "name": "Main Group",
        "description": "Main Group",
        "id": "1"
      },
      "description": null,
      "contact_information": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Kyriacou",
        "id": "32D6197F7E544AA6A35C1B18F7329B4F",
        "life_cycle_state": "MARKETING",
        "middle_name": null,
        "title": "Miss",
        "type": "PERSON",
        "first_name": "Sevia",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": null,
          "gender": null,
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      },
      "type": {
        "alternative_code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "696C0E5F273B4D548F875F63F9DE77C2"
      },
      "udf_date_2": null,
      "udf_date_1": null,
      "udf_date_4": null,
      "contact_email": "s_kyriacou@crm.com",
      "udf_date_3": null,
      "number": "37",
      "udf_float_3": null,
      "udf_float_4": null,
      "estimated_completion_time": {
        "time_period_uot": "DAYS",
        "time_period_value": 3
      },
      "probability_to_win": null,
      "id": "5A7CE5B8B21444FA9BE9AB1FB820F2A9",
      "udf_float_1": null,
      "udf_float_2": null,
      "start_date": "2016-10-31T15:50:29",
      "assigned_to": {
        "unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "udf_string_2": null,
      "udf_string_3": null,
      "udf_string_4": null,
      "actual_completion_date": null,
      "udf_string_5": null,
      "privacy_level": null,
      "users_set": [],
      "udf_string_1": null,
      "accounts_receivable": null,
      "life_cycle_state": "IN_PROGRESS",
      "priority": 1,
      "time_to_completion": {
        "time_period_uot": "DAYS",
        "time_period_value": 3
      },
      "lost_reason": null,
      "competitors_set": [],
      "physical_goods_set": [],
      "time_overdue": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "category": {
        "code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "35EB799C52F14A8984FE2F397A852A78"
      },
      "udf_string_6": null,
      "expected_completion_date": "2016-11-03T15:50:29",
      "udf_string_7": null,
      "udf_string_8": null,
      "status": {
        "alternative_code": "LRN",
        "name": "Learn",
        "description": null,
        "id": "3602BCD537E94C1C925090F97F3A57FD",
        "life_cycle_state": "IN_PROGRESS"
      }
    }
  ],
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

 

GET leads/get_pending

This method returns all leads which are in pending life cycle state. Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

contact_information_identifier

(optional)

Contact information identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts receivable identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)

Lead type identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead Importance

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

http://host_name/crmapi/rest/$version/leads/get_pending?token=A0D43A906975BF17402FDE34F29DE01C&contact_information_identifier=id_number=112233

 

Response:

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       [
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": 1000,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "36",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "giorgosS",
                       "username": "giorgosS",
                       "id": "7E5AF60A7934D36C9380CB2D93FB6BDB",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "D6A71BBE926C897E2C1779A2A265E4CA",
               "lead_source":
               {
                   "type": "RECOMMENDEDBYCONTACT",
                   "recommended_by_contact":
                   {
                       "last_name": "Browndasda",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "fsafa",
                       "company_profile": null,
                       "title": null,
                       "type": "PERSON",
                       "first_name": "Simon",
                       "name": "Simon Browndasda",
                       "id": "99A9AF3ACF4991ED5E1DB1DEFB72209A",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_issued_by_country": null,
                           "passport_number": null,
                           "social_security_number": "230664",
                           "country_of_residence":
                           {
                               "name": "UNITED KINGDOM",
                               "id": "126"
                           },
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 1,
                               "day": 1,
                               "year": 1947
                           },
                           "name_day":
                           {
                               "month": 1,
                               "day": 1
                           },
                           "id_number": "895623",
                           "id_issued_by_country":
                           {
                               "name": "UNITED KINGDOM",
                               "id": "126"
                           },
                           "industry": null
                       }
                   }
               },
               "probability_to_win": 50,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-16T12:14:52",
               "udf_date_4": null,
               "start_date": "2015-02-16T12:14:52",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "owned_by_group":
               {
                   "community_name": null,
                   "name": "Customer Service",
                   "id": "E7B002802139F17D24E0800EB8410E0F",
                   "description": "Group for Customer Service agents",
                   "alternative_code": "CS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-16T12:35:35",
                   "created_by_unit":
                   {
                       "group_name": null,
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-16T12:14:52",
                   "updated_by_unit":
                   {
                       "group_name": null,
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "MPAdministrator",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "MPAdministrator",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Reach",
                   "id": "5DA88E4C781244C2CDB0F4F57E2EE875",
                   "description": null,
                   "alternative_code": "R"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "PENDING",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "marialena@test.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           }
       ]
    }

 

GET leads/get_in_progress

This method returns all leads which are in life cycle state state "In Progress". Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

contact_information_identifier

(optional)

Contact information identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts receivable identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)

Lead type identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead Importance

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request: http://host_name/crmapi/rest/$version/leads/get_in_progress?token=A0D43A906975BF17402FDE34F29DE01C&token=50666D82A7DB2E6E42F7C0C60EAC4695&type_identifier=name=Software Purchase

Response:

 

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       [
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "11",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Antonis",
                       "username": "Antonis",
                       "id": "40928D9B96FE6CB963D2DD8955814774",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner": null,
                   "life_cycle_state": "ACTIVE",
                   "number": "506",
                   "name": "t1",
                   "id": "452040A4F233459C6FDB249B198C4C48"
               },
               "id": "43EBC5DD14A59E3D8973534EF55E5A86",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-12T15:10:44",
               "udf_date_4": null,
               "start_date": "2015-02-12T15:10:44",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.819124423963134,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-12T15:11:30",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-12T15:10:44",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "11",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "12",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Antonis",
                       "username": "Antonis",
                       "id": "40928D9B96FE6CB963D2DD8955814774",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner": null,
                   "life_cycle_state": "ACTIVE",
                   "number": "507",
                   "name": "ac",
                   "id": "AEB2C1AA39202E85A7C6195B3794A06A"
               },
               "id": "3BDE92A368211F2BAC01E8A3263B9583",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-12T15:15:24",
               "udf_date_4": null,
               "start_date": "2015-02-12T15:15:24",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.819124423963134,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-12T15:16:39",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-12T15:15:24",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "43d@cd.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "13",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Antonis",
                       "username": "Antonis",
                       "id": "40928D9B96FE6CB963D2DD8955814774",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner": null,
                   "life_cycle_state": "ACTIVE",
                   "number": "508",
                   "name": "test33333",
                   "id": "E2E03F572B46A15FE8B0F8BB90088AA7"
               },
               "id": "03A24D3D2C371263B524F1371DC7B04A",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-12T15:16:48",
               "udf_date_4": null,
               "start_date": "2015-02-12T15:16:48",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.819124423963134,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-12T15:17:48",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-12T15:16:48",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "test@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
                   {
                       "id": "2C23866BA622ECEA63B23595693D9EFC",
                       "product":
                       {
                           "product_type": null,
                           "id": "2DAC89CF56BE7B661E1A1B0246E8BF08",
                           "description": "Kids TV",
                           "code": "Kids TV",
                           "alternative_code": null
                       }
                   },
                   {
                       "id": "CFBA6EE27C3FB776B961074F22A3746C",
                       "product":
                       {
                           "product_type": null,
                           "id": "7D4A6FE566968324344AF2BFE3AB643C",
                           "description": "Adult- Only for Additional ",
                           "code": "Adult- Only for Additional ",
                           "alternative_code": null
                       }
                   }
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "14",
               "udf_float_4": null,
               "competitors_set":
               [
                   {
                       "id": "DED53D29AEE8E1A4FE08576BC5CCD7C4",
                       "competitor":
                       {
                           "website": "www.competitor2.com",
                           "name": "Competitor 2",
                           "id": "F868B1EFFFB42A5232186348362A5C91",
                           "description": null
                       }
                   }
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Scheduler",
                       "username": "Scheduler",
                       "id": "3",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
                   {
                       "id": "80C7CDE3E56F558725399F78F50E4DEB",
                       "product":
                       {
                           "product_type": null,
                           "id": "F7CEEAAFCE2519EDBD207755588F34F9",
                           "description": "Card product 003",
                           "code": "Card Product 003",
                           "alternative_code": "CP003"
                       }
                   }
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner": null,
                   "life_cycle_state": "ACTIVE",
                   "number": "509",
                   "name": "l1l1",
                   "id": "61009F6CCC79188E6040D0FF308758DC"
               },
               "id": "AF71019727FA80E97E26147A849B65E4",
               "lead_source":
               {
                   "type": "ADVERTISEMENT",
                   "name": "test"
               },
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-12T15:18:15",
               "udf_date_4": null,
               "start_date": "2015-02-12T15:18:15",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.819124423963134,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-12T16:42:10",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-12T15:18:15",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "l1@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "19",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Smanager",
                       "username": "Smanager",
                       "id": "DCA93D75753E5CC5AD1E69556368E616",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner":
                   {
                       "last_name": "Lannister",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": null,
                       "company_profile": null,
                       "title": "Mr",
                       "type": "PERSON",
                       "first_name": "Marios",
                       "name": null,
                       "id": "F60EF6A65658F86B3DFADA3809BD85C4",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_issued_by_country": null,
                           "passport_number": null,
                           "social_security_number": null,
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 5,
                               "day": 1,
                               "year": 1963
                           },
                           "name_day":
                           {
                               "month": 5,
                               "day": 1
                           },
                           "id_number": "593664",
                           "industry": null
                       }
                   },
                   "life_cycle_state": "ACTIVE",
                   "number": "4",
                   "name": "mar",
                   "id": "5C7045E4DCE86FE0670CEE3A32437227"
               },
               "id": "7E4D45DD4000EB8B71CC5656A6C93C03",
               "lead_source":
               {
                   "recommended_by_employee":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": "mp@ministrator.com"
                   },
                   "type": "RECOMMENDEDBYEMPLOYEE"
               },
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T09:52:09",
               "udf_date_4": null,
               "start_date": "2015-02-13T09:52:09",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T11:32:02",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T09:52:09",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "photos.panayi@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "24",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "csmanager",
                       "username": "csmanager",
                       "id": "344BFEB717808669B0BF955212FEB28C",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable":
               {
                   "account_owner":
                   {
                       "last_name": "Browndasda",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "fsafa",
                       "company_profile": null,
                       "title": null,
                       "type": "PERSON",
                       "first_name": "Simon",
                       "name": null,
                       "id": "99A9AF3ACF4991ED5E1DB1DEFB72209A",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_issued_by_country": null,
                           "passport_number": null,
                           "social_security_number": "230664",
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 1,
                               "day": 1,
                               "year": 1947
                           },
                           "name_day":
                           {
                               "month": 1,
                               "day": 1
                           },
                           "id_number": "895623",
                           "industry": null
                       }
                   },
                   "life_cycle_state": "ACTIVE",
                   "number": "85",
                   "name": "SM1",
                   "id": "A032BB90C0F1A1E1F5DE97FFFCC7BBCD"
               },
               "id": "7086AF522C6724DB825A1CE400F3C296",
               "lead_source":
               {
                   "type": "RECOMMENDEDBYCONTACT",
                   "recommended_by_contact":
                   {
                       "last_name": "Christodoulou",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": null,
                       "company_profile": null,
                       "title": null,
                       "type": "PERSON",
                       "first_name": "Elisa",
                       "name": "Elisa Christodoulou",
                       "id": "290041FAAE222A7358DC79C0D1CFFAAF",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "FEMALE",
                           "passport_issued_by_country":
                           {
                               "name": "ALGERIA",
                               "id": "130"
                           },
                           "passport_number": "1234567",
                           "social_security_number": null,
                           "country_of_residence":
                           {
                               "name": "ALBANIA",
                               "id": "129"
                           },
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 3,
                               "day": 3,
                               "year": 1990
                           },
                           "name_day":
                           {
                               "month": 2,
                               "day": 6
                           },
                           "id_number": "123456",
                           "id_issued_by_country":
                           {
                               "name": "ALGERIA",
                               "id": "130"
                           },
                           "industry": null
                       }
                   }
               },
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T11:16:18",
               "udf_date_4": null,
               "start_date": "2015-02-13T11:16:18",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T11:48:04",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T11:16:18",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "test@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "27",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Smanager",
                       "username": "Smanager",
                       "id": "DCA93D75753E5CC5AD1E69556368E616",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "06FD72F213F03329C712DBF2871B56D6",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T14:19:23",
               "udf_date_4": null,
               "start_date": "2015-02-13T14:19:23",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T14:20:38",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T14:19:23",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "violeta@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "28",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "csmanager",
                       "username": "csmanager",
                       "id": "344BFEB717808669B0BF955212FEB28C",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "750EB457587ABA25AA3999E053B2D100",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T14:21:05",
               "udf_date_4": null,
               "start_date": "2015-02-13T14:21:05",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T14:21:29",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T14:21:05",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "violetta@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
                   {
                       "id": "355C61FD6D91054786A404D01FA31EF1",
                       "product":
                       {
                           "product_type": null,
                           "id": "E32627E0EBB8EC74E8C4FBA0865CDF50",
                           "description": "Entertainment",
                           "code": "Entertainment",
                           "alternative_code": null
                       }
                   }
               ],
               "target_amount": 15000,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "29",
               "udf_float_4": null,
               "competitors_set":
               [
                   {
                       "id": "348980387B0CE99D1E60E8F93D034990",
                       "competitor":
                       {
                           "website": "www.competitor1.com",
                           "name": "Competitor 1",
                           "id": "C671ED66046243565DE5B6B4A1AB5835",
                           "description": null
                       }
                   }
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "retailer",
                       "username": "retailer",
                       "id": "3B04FBB34998EE8973100C0069482539",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
                   {
                       "id": "E21F4F6801F998D97FCB05591DB0B435",
                       "product":
                       {
                           "product_type": null,
                           "id": "F7CEEAAFCE2519EDBD207755588F34F9",
                           "description": "Card product 003",
                           "code": "Card Product 003",
                           "alternative_code": "CP003"
                       }
                   },
                   {
                       "id": "97D164949B7EABBDB2D38594F08ED4A7",
                       "product":
                       {
                           "product_type": null,
                           "id": "7025D20E1AEE61C7ECB87021D32E9EF3",
                           "description": "Card product",
                           "code": "Card product 001",
                           "alternative_code": "CP001"
                       }
                   }
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "E6F8D5B159E32468CE72EE768070BC87",
               "lead_source":
               {
                   "type": "RECOMMENDEDBYCONTACT",
                   "recommended_by_contact":
                   {
                       "last_name": "Browndasda",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "fsafa",
                       "company_profile": null,
                       "title": null,
                       "type": "PERSON",
                       "first_name": "Simon",
                       "name": "Simon Browndasda",
                       "id": "99A9AF3ACF4991ED5E1DB1DEFB72209A",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_issued_by_country": null,
                           "passport_number": null,
                           "social_security_number": "230664",
                           "country_of_residence":
                           {
                               "name": "UNITED KINGDOM",
                               "id": "126"
                           },
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 1,
                               "day": 1,
                               "year": 1947
                           },
                           "name_day":
                           {
                               "month": 1,
                               "day": 1
                           },
                           "id_number": "895623",
                           "id_issued_by_country":
                           {
                               "name": "UNITED KINGDOM",
                               "id": "126"
                           },
                           "industry": null
                       }
                   }
               },
               "probability_to_win": 50,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T14:22:31",
               "udf_date_4": null,
               "start_date": "2015-02-13T14:22:31",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-16T13:09:42",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T14:22:31",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "pa1@co.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "30",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "1162F00D3D5E39F65A3967CB1FA9046F",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T14:28:48",
               "udf_date_4": null,
               "start_date": "2015-02-13T14:28:48",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T14:31:20",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T14:28:48",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "viol@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "31",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "Antonis",
                       "username": "Antonis",
                       "id": "40928D9B96FE6CB963D2DD8955814774",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "0C36718206ECC2CDCC29475234D04B57",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T14:32:00",
               "udf_date_4": null,
               "start_date": "2015-02-13T14:32:00",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,
                   "time_period_uot": "MONTHS"
               },
               "log_information":
               {
                   "updated_date": "2015-02-13T14:34:05",
                   "created_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-13T14:32:00",
                   "updated_by_unit":
                   {
                       "community_name": null,
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   },
                   "updated_by_user":
                   {
                       "person_name": "Marios Lannister",
                       "username": "MPAdministrator",
                       "id": "1",
                       "email": null
                   }
               },
               "status":
               {
                   "name": "Interest",
                   "id": "B738753EE56D01FC6CD964D14FBBCC7A",
                   "description": null,
                   "alternative_code": "I"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "IN_PROGRESS",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "test1@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": null
               }
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": null,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "32",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "PDAVIES",
                       "username": "PDAVIES",
                       "id": "A9D301443AEE98DC593406AF09C3710E",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "B078C3C203A10D31B2945D05F59E0F67",
               "probability_to_win": null,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-13T16:04:56",
               "udf_date_4": null,
               "start_date": "2015-02-13T16:04:56",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.851382488479263,

 

 

 

GET leads/get_won_leads

Tip

Available from CRM.COM R11.1.0

This method returns all leads which are in life cycle state state "Won". Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

NameTypeDescription
tokenStringThe token retrieved from the login method
contact_information_identifier

(optional)

Contact Information Identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts Receivable Identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)
Lead Type Identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead ImportanceThe importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead PriorityThe priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated

 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

Request:  {{server}}/crmapi/rest/v2/leads/get_won_leads?token={{token}}&accounts_receivable_identifier=number=ACR0000000201&type_identifier=name=New Customer

Response:

 

Code Block
 {
  "data": [
    {
      "target_amount": null,
      "contact_phone": null,
      "log_information": {
        "created_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "updated_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "created_date": "2016-11-01T13:14:39",
        "updated_date": "2016-11-01T13:17:00",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "importance": "IMPORTANCE1",
      "lead_source": {
        "name": "www.crm.com",
        "type": "WEBSITE"
      },
      "services_set": [],
      "owned_by_group": {
        "alternative_code": "MG",
        "name": "Main Group",
        "description": "Main Group",
        "id": "1"
      },
      "description": null,
      "contact_information": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Panagi",
        "id": "A8238D650E324E9189146DDDC8AE0372",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Kokos",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": "21312312",
          "gender": null,
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      },
      "type": {
        "alternative_code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "696C0E5F273B4D548F875F63F9DE77C2"
      },
      "udf_date_2": null,
      "udf_date_1": null,
      "udf_date_4": null,
      "contact_email": "koko@crm.com",
      "udf_date_3": null,
      "number": "40",
      "udf_float_3": null,
      "udf_float_4": null,
      "estimated_completion_time": {
        "time_period_uot": "MONTHS",
        "time_period_value": 1
      },
      "probability_to_win": null,
      "id": "8849ED46699D49D9AEA1BABF770B58A2",
      "udf_float_1": null,
      "udf_float_2": null,
      "start_date": "2016-11-01T13:14:39",
      "assigned_to": {
        "unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "udf_string_2": null,
      "udf_string_3": null,
      "udf_string_4": null,
      "actual_completion_date": null,
      "udf_string_5": null,
      "privacy_level": null,
      "users_set": [],
      "udf_string_1": null,
      "accounts_receivable": {
        "number": "ACR0000000201",
        "name": "ACR0000000201 Kokos Panagi",
        "id": "4F122DD060A843A68C0BDA3950B79612",
        "life_cycle_state": "ACTIVE",
        "account_owner": {
          "company_profile": null,
          "company_name": null,
          "name": null,
          "last_name": "Panagi",
          "id": "A8238D650E324E9189146DDDC8AE0372",
          "life_cycle_state": "FINANCIAL",
          "middle_name": null,
          "title": null,
          "type": "PERSON",
          "first_name": "Kokos",
          "demographics": {
            "name_day": {
              "month": null,
              "day": null
            },
            "id_number": "21312312",
            "gender": null,
            "date_of_birth": {
              "month": null,
              "year": null,
              "day": null
            },
            "industry_sector": null,
            "passport_number": null,
            "industry": null,
            "social_security_number": null,
            "id_issued_by_country": null,
            "passport_issued_by_country": null
          }
        }
      },
      "life_cycle_state": "WON",
      "priority": 1,
      "time_to_completion": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "lost_reason": null,
      "competitors_set": [],
      "physical_goods_set": [],
      "time_overdue": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "category": {
        "code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "35EB799C52F14A8984FE2F397A852A78"
      },
      "udf_string_6": null,
      "expected_completion_date": "2016-12-01T13:14:39",
      "udf_string_7": null,
      "udf_string_8": null,
      "status": {
        "alternative_code": "LRN",
        "name": "Learn",
        "description": null,
        "id": "3602BCD537E94C1C925090F97F3A57FD",
        "life_cycle_state": "IN_PROGRESS"
      }
    }
  ],
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

GET leads/get_lost_leads

Tip

Available from CRM.COM R11.1.0

This method returns all leads which are in life cycle state state "Lost". Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

NameTypeDescription
tokenStringThe token retrieved from the login method
contact_information_identifier

(optional)

Contact Information Identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts Receivable Identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)
Lead Type Identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead ImportanceThe importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead PriorityThe priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated

 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

Request:  {{server}}/crmapi/rest/v2/leads/get_lost_leads?token={{token}}&accounts_receivable_identifier=number=ACR0000000026&type_identifier=name=New Customer

Response:

 

Code Block
 {
  "data": [
    {
      "target_amount": null,
      "contact_phone": null,
      "log_information": {
        "created_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "updated_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "created_date": "2016-08-04T12:51:48",
        "updated_date": "2016-08-04T13:06:30",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "importance": "IMPORTANCE1",
      "lead_source": {
        "name": "er",
        "type": "ADVERTISEMENT"
      },
      "services_set": [],
      "owned_by_group": {
        "alternative_code": "MG",
        "name": "Main Group",
        "description": "Main Group",
        "id": "1"
      },
      "description": null,
      "contact_information": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Papapavlou",
        "id": "E12B1552198540D7BDBBE5CCF23D0EE5",
        "life_cycle_state": "FINANCIAL",
        "middle_name": "Loukia",
        "title": "Miss",
        "type": "PERSON",
        "first_name": "Loukia",
        "demographics": {
          "name_day": {
            "month": 12,
            "day": 13
          },
          "id_number": "11225588",
          "gender": "FEMALE",
          "date_of_birth": {
            "month": 1,
            "year": 1991,
            "day": 28
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": "99999999",
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      },
      "type": {
        "alternative_code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "696C0E5F273B4D548F875F63F9DE77C2"
      },
      "udf_date_2": null,
      "udf_date_1": null,
      "udf_date_4": null,
      "contact_email": "l_papapavlou@crm.com",
      "udf_date_3": null,
      "number": "33",
      "udf_float_3": null,
      "udf_float_4": null,
      "estimated_completion_time": {
        "time_period_uot": "MONTHS",
        "time_period_value": 1
      },
      "probability_to_win": null,
      "id": "CC9CBD762F274F7BACF25D718026D36D",
      "udf_float_1": null,
      "udf_float_2": null,
      "start_date": "2016-08-04T12:51:48",
      "assigned_to": {
        "unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "udf_string_2": null,
      "udf_string_3": null,
      "udf_string_4": null,
      "actual_completion_date": "2016-08-04T13:06:27",
      "udf_string_5": null,
      "privacy_level": null,
      "users_set": [],
      "udf_string_1": null,
      "accounts_receivable": {
        "number": "ACR0000000026",
        "name": "ACR0000000026 Loukia Papapavlou",
        "id": "ED512ED25BFF413280FA1BEB85DA9B1F",
        "life_cycle_state": "ACTIVE",
        "account_owner": {
          "company_profile": null,
          "company_name": null,
          "name": null,
          "last_name": "Papapavlou",
          "id": "E12B1552198540D7BDBBE5CCF23D0EE5",
          "life_cycle_state": "FINANCIAL",
          "middle_name": "Loukia",
          "title": "Miss",
          "type": "PERSON",
          "first_name": "Loukia",
          "demographics": {
            "name_day": {
              "month": 12,
              "day": 13
            },
            "id_number": "11225588",
            "gender": "FEMALE",
            "date_of_birth": {
              "month": 1,
              "year": 1991,
              "day": 28
            },
            "industry_sector": null,
            "passport_number": null,
            "industry": null,
            "social_security_number": "99999999",
            "id_issued_by_country": null,
            "passport_issued_by_country": null
          }
        }
      },
      "life_cycle_state": "LOST",
      "priority": 1,
      "time_to_completion": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "lost_reason": {
        "alternative_code": "C",
        "name": "Competitors",
        "description": null,
        "id": "D4CB03A3D05A457AAC0854FFFAB0D20E"
      },
      "competitors_set": [],
      "physical_goods_set": [],
      "time_overdue": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "category": {
        "code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "35EB799C52F14A8984FE2F397A852A78"
      },
      "udf_string_6": null,
      "expected_completion_date": "2016-09-04T12:51:48",
      "udf_string_7": null,
      "udf_string_8": null,
      "status": {
        "alternative_code": "LT",
        "name": "Lost",
        "description": null,
        "id": "0409F011C88E479EBA7DDA61FB6BB89E",
        "life_cycle_state": "LOST"
      }
    }
  ],
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

GET leads/get_cancelled

Tip

Available from CRM.COM R11.1.0

This method returns all leads which are in life cycle state state "Cancelled". Multiple leads are returned by each call. Note that identifiers are optional for this method.

Resource URL

Parameters

NameTypeDescription
tokenStringThe token retrieved from the login method
contact_information_identifier

(optional)

Contact Information Identifier

The identifier of the contact information related with the lead that will be returned as results. The allowed contact information identifier fields are the following:

Include Page
V4:contact_information_identifier
V4:contact_information_identifier

accounts_receivable_identifier

(optional)

Accounts Receivable Identifier

The identifier of the account related with the lead that should be returned as a result. The allowed account identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier
(optional)
Lead Type Identifier

The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

category_identifier

(optional)

Lead Category Identifier

The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

source_identifier

(semi-optional)

Lead Source Identifier

The identifier of the source lead. The allowed lead source identifier fields are the following:

Include Page
V4:lead_source_identifier
V4:lead_source_identifier

importance

(optional)

Lead ImportanceThe importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead PriorityThe priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

fields_set

(optional)

List of Strings, comma separated

 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:lead_complete
V4:lead_complete

Examples

Expand
titleExample 1

HTTP Method: GET

Request:  {{server}}/crmapi/rest/v2/leads/get_cancelled?token={{token}}&accounts_receivable_identifier=number=ACR0000000014&type_identifier=name=New Customer

Response:

 

Code Block
 {
  "data": [
    {
      "target_amount": null,
      "contact_phone": null,
      "log_information": {
        "created_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "updated_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "created_date": "2016-02-24T17:19:11",
        "updated_date": "2016-02-24T17:29:21",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "importance": "IMPORTANCE1",
      "lead_source": {
        "name": "50",
        "type": "ADVERTISEMENT"
      },
      "services_set": [],
      "owned_by_group": {
        "alternative_code": "MG",
        "name": "Main Group",
        "description": "Main Group",
        "id": "1"
      },
      "description": null,
      "contact_information": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Doe",
        "id": "17EE685B9AFB44CD88E599C277305227",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Joe",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": "121212",
          "gender": "FEMALE",
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      },
      "type": {
        "alternative_code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "696C0E5F273B4D548F875F63F9DE77C2"
      },
      "udf_date_2": null,
      "udf_date_1": null,
      "udf_date_4": null,
      "contact_email": "p_kestora@crm.com",
      "udf_date_3": null,
      "number": "4",
      "udf_float_3": null,
      "udf_float_4": null,
      "estimated_completion_time": {
        "time_period_uot": "MONTHS",
        "time_period_value": 1
      },
      "probability_to_win": null,
      "id": "1AAA740CEC4648DBBD434F4401891844",
      "udf_float_1": null,
      "udf_float_2": null,
      "start_date": "2016-02-24T17:19:11",
      "assigned_to": {
        "unit": {
          "alternative_code": "U",
          "group_name": "Main Group",
          "name": "Main Unit",
          "description": null,
          "id": "224705C73FFF4A6296F06ED15FD20609"
        },
        "user": null
      },
      "udf_string_2": null,
      "udf_string_3": null,
      "udf_string_4": null,
      "actual_completion_date": null,
      "udf_string_5": null,
      "privacy_level": null,
      "users_set": [],
      "udf_string_1": null,
      "accounts_receivable": {
        "number": "ACR0000000014",
        "name": "ACR0000000014 Joe Doe",
        "id": "40B6F85577C647389582ECDE8DEC01CD",
        "life_cycle_state": "ACTIVE",
        "account_owner": {
          "company_profile": null,
          "company_name": null,
          "name": null,
          "last_name": "Doe",
          "id": "17EE685B9AFB44CD88E599C277305227",
          "life_cycle_state": "FINANCIAL",
          "middle_name": null,
          "title": null,
          "type": "PERSON",
          "first_name": "Joe",
          "demographics": {
            "name_day": {
              "month": null,
              "day": null
            },
            "id_number": "121212",
            "gender": "FEMALE",
            "date_of_birth": {
              "month": null,
              "year": null,
              "day": null
            },
            "industry_sector": null,
            "passport_number": null,
            "industry": null,
            "social_security_number": null,
            "id_issued_by_country": null,
            "passport_issued_by_country": null
          }
        }
      },
      "life_cycle_state": "CANCELLED",
      "priority": 1,
      "time_to_completion": {
        "time_period_uot": null,
        "time_period_value": null
      },
      "lost_reason": null,
      "competitors_set": [],
      "physical_goods_set": [],
      "time_overdue": {
        "time_period_uot": "MONTHS",
        "time_period_value": 7.258064516129032
      },
      "category": {
        "code": "NC",
        "name": "New Customer",
        "description": null,
        "id": "35EB799C52F14A8984FE2F397A852A78"
      },
      "udf_string_6": null,
      "expected_completion_date": "2016-03-24T17:19:11",
      "udf_string_7": null,
      "udf_string_8": null,
      "status": {
        "alternative_code": "LRN",
        "name": "Learn",
        "description": null,
        "id": "3602BCD537E94C1C925090F97F3A57FD",
        "life_cycle_state": "IN_PROGRESS"
      }
    }
  ],
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST leads/create

...

Name

Type

Description

token

String

The token retrieved from the login method

contact_email

(mandatory on conditions)

String

The email address of the contact that will be specified on the new lead.

The contact email is mandatory if the Lead Type's Communication settings define that an email commuication will be sent on the new lead's creation.

Tip

Paramerer is mandatory up until CRM.COM R11.0.0. From CRM.COM R11.1.0 this parameter is mandatory on conditions.

contact_phone

(mandatory on conditions)

String

The phone of the contact that will be specified on the new lead. The contact phone is mandatory if the Lead Type's Communication settings define that a phone commuication will be sent on the new lead's creation.

Tip

Available from CRM.COM R11.1.0

accounts_receivable_identifier

(mandatory on conditions)

Accounts Receivable Identifier

The accounts receivable that will be related with the lead. This information is mandatory if the specified contact information is already a customer (has an accounts receivable). The specified accounts receivable should be owned by the specified contact information.The allowed accounts receivable identifier fields are the following:

Include Page
v4:accounts_receivable_identifier
v4:accounts_receivable_identifier

description

(optional)

StringA description of the lead

probability_to_win

(optional)

NumberThe probability to win the retrieved lead which can vary from 0 to 100

importance

(mandatory)

Lead Importance

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(mandatory)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

target_amount

(optional)

NumberThe amount that is predicted to be gained when winning the retrieved lead

type_identifier

(mandatory)

Lead Type Identifier

The type of the lead. The allowed lead type identifier fields are the following:

Include Page
V4:lead_type_identifier
V4:lead_type_identifier

status_identifier

(optional)

Lead Status Identifier

The status of the lead. If not specified, then the Lead Type's default status on create will be used. The allowed lead status identifier fields are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

Tip

The status_identifier input parameter is mandatory up until CRM.COM R11.1.0. From CRM.COM R11.1.0 it becomes optional.

lost_reason_identifier

(mandatory on conditions)

Lead Lost Reason Identifier

The reason that the lead was lost. This information is mandatory and applicable only if the lead is created in a status classified as lost. The allowed lead lost reason identifier fields are the following:

Include Page
V4:lead_lost_reason_identifier
V4:lead_lost_reason_identifier

Tip

The lost_reason_identifier input parameter becomes deprecated from CRM.COM R11.1.0

category_identifier

(optional)

Lead Category Identifier

The category of the lead. If not specified, then the Lead Type's default Category will be used for the new Lead. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

Tip

The category_identifier input parameter is mandatory up until CRM.COM R11.1.0

owned_by_group_identifier
(optional)

The identifier of the owned by group information

The owned by group information of the lead. The allowed group identifier fields are the following:

Include Page
V4:group_identifier
V4:group_identifier

privacy_level_identifier
(optional)

The identifier of the privacy level

The privacy level of the lead. The allowed privacy level identifier fields are the following:

Include Page
V4:privacy_level_identifier
V4:privacy_level_identifier

udf_string_1 

(optional)

String

User Defined Field of type String

udf_string_2 

(optional)

String

User Defined Field of type String

udf_string_3 

(optional)

String

User Defined Field of type String

udf_string_4 

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6 

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1 

(optional)

Date

User Defined Field of type Date

udf_date_2 

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

start_date
(optional)

DateThe date that the lead is created

expected_completion_date
(semi-optional)

DateThe date that the lead is expected to be completed. It is automatically calculated if estimate completion time is specified.
estimated_completion_time
(semi-optional)
Time Period ObjectThe time that is estimated to complete the lead , measured in minutes, hours, days, weeks, years. It is automatically calculated if expected completion date is specified.

contact_information

(mandatory)

Contact information objectThe contact information that will be related with the lead

source

(mandatory)

Lead SourceInformation related with the source of the lead
assigned_to
(optional)
Assigned to objectThe assignment information for the lead. Assign to information is mandatory to be specified, unless if it is set automatically through ACR rules.

competitors_set

(optional)

Set of Lead CompetitorsA lists of all possible competitors that can reach the same Lead for the same product/goal.

users_set

(optional)

Set of Lead UsersA list of users that are set as the team involved with the lead

services_set

(optional)

Set of lead Services Objects

A list of services for which the lead was taken for

physical_goods_set

(optional)

Set of lead Physical Goods Objects

A list of the physical goods for which the lead was taken for

fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

Anchor
lead_create referred objects parameters
lead_create referred objects parameters
Referred Parameter Objects Data

...

Name

Type

Description

token

String

The token retrieved from the login method

lead_identifier
(mandatory)
Lead Identifier

The identifier of the Lead to be updated. The allowed lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

contact_email

(optional)

StringThe email address of the contact that will be specified on the updated lead

contact_phone

(optional)

String

The phone of the contact that will be specified on the updated lead

Tip

Available from CRM.COM R11.1.0

description

(optional)

StringA description of the lead

probability_to_win

(optional)

NumberThe probability to win the retrieved lead which can vary from 0 to 100

importance

(optional)

Lead Importance

The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3

priority

(optional)

Lead Priority

The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6

target_amount

(optional)

NumberThe amount that is predicted to be gained when winning the retrieved lead

status_identifier

(optional)

Lead Status Identifier

The status of the lead. The allowed lead status identifier fields are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

lost_reason_identifier

(mandatory on conditions)

Lead Lost Reason Identifier

The reason that the lead was lost. This information is mandatory and applicable only if the lead is updated in a status classified as lost. The allowed lead lost reason identifier fields are the following:

Include Page
V4:lead_lost_reason_identifier
V4:lead_lost_reason_identifier

Tip

Deprecated from CRM.COM R11.1.0

billing_address_identifier

(mandatory on conditions)

Address identifier

The address that will be used as the accounts receivable billing address in case that the lead is updated to a status classified as won. This information is mandatory and applicable only if the lead is updated in a status classified as won. The allowed address identifier fields are the following:

Include Page
V4:address_identifier
V4:address_identifier

Tip

Deprecated from CRM.COM R11.1.0.

category_identifier

(optional)

Lead Category Identifier

The category of the lead. The allowed lead category identifier fields are the following:

Include Page
V4:lead_category_identifier
V4:lead_category_identifier

owned_by_group_identifier
(optional)

The identifier of the owned by group information

The owned by group information of the lead. The allowed group identifier fields are the following:

Include Page
V4:group_identifier
V4:group_identifier

privacy_level_identifier
(optional)

The identifier of the privacy level

The privacy level of the lead. The allowed privacy level identifier fields are the following:

Include Page
V4:privacy_level_identifier
V4:privacy_level_identifier

udf_string_1 

(optional)

String

User Defined Field of type String

udf_string_2 

(optional)

String

User Defined Field of type String

udf_string_3 

(optional)

String

User Defined Field of type String

udf_string_4 

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6 

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1 

(optional)

Date

User Defined Field of type Date

udf_date_2 

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

start_date
(optional)

DateThe date that the lead started

expected_completion_date
(optional)

DateThe date that the lead is expected to be completed. It is automatically calculated if estimate completion time is specified.
estimated_completion_time
(optional)
Time Period ObjectThe time that is estimated to complete the lead , measured in minutes, hours, days, weeks, years. It is automatically calculated if expected completion date is specified.

source

(optional)

Lead SourceInformation related with the source of the lead
assigned_to
(optional)
Assigned to objectThe assignment information for the lead

competitors_set

(optional)

Set of Lead Competitors

A lists of all possible competitors that can reach the same Lead for the same product/goal.

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

users_set

(optional)

Set of Lead Users

A list of users that are set as the team involved with the lead

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

services_set

(optional)

Set of lead Services Objects

A list of services for which the lead was taken for

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

physical_goods_set

(optional)

Set of lead Physical Goods Objects

A list of the physical goods for which the lead was taken for

Include Page
V4:Web API - Updating Sets
V4:Web API - Updating Sets

fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

Anchor
lead_updated referred objects parameters
lead_updated referred objects parameters
Referred Parameter Objects Data

...

POST leads/start_progress

Tip

Available from CRM.COM R11.1.0

This method starts the progress of a lead in Pending state. A single lead's progress can be started  by each call

...

 Name

Type

Description

token

String

The token retrieved from the login method

lead_identifier

(mandatory)

Lead Identifier

The identifier of the lead that will be started. The allowed lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

status_identifier

(optional)

Lead Status Identifier

The status that will be set on the lead, after starting the progress. If not specified the the default status for starting leads of that type will be used. The allowed lead status identifiers are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Expand
titleExample 1

HTTP Method: POST

 

Request: {{server}}/crmapi/rest/v2/leads/start_progress

Body:

Code Block
{
 "token":"{{token}}",
"lead_identifier":{"number":"40"}
}

 

Response:

Code Block
 {
  "data": {
    "target_amount": null,
    "contact_phone": null,
    "log_information": {
      "created_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "updated_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "created_date": "2016-11-01T13:14:39",
      "updated_date": "2016-11-01T13:17:00",
      "updated_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "importance": "IMPORTANCE1",
    "lead_source": {
      "name": "www.crm.com",
      "type": "WEBSITE"
    },
    "services_set": [],
    "owned_by_group": {
      "alternative_code": "MG",
      "name": "Main Group",
      "description": "Main Group",
      "id": "1"
    },
    "description": null,
    "contact_information": {
      "company_profile": null,
      "company_name": null,
      "name": null,
      "last_name": "Panagi",
      "id": "A8238D650E324E9189146DDDC8AE0372",
      "life_cycle_state": "FINANCIAL",
      "middle_name": null,
      "title": null,
      "type": "PERSON",
      "first_name": "Kokos",
      "demographics": {
        "name_day": {
          "month": null,
          "day": null
        },
        "id_number": "21312312",
        "gender": null,
        "date_of_birth": {
          "month": null,
          "year": null,
          "day": null
        },
        "industry_sector": null,
        "passport_number": null,
        "industry": null,
        "social_security_number": null,
        "id_issued_by_country": null,
        "passport_issued_by_country": null
      }
    },
    "type": {
      "alternative_code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "696C0E5F273B4D548F875F63F9DE77C2"
    },
    "udf_date_2": null,
    "udf_date_1": null,
    "udf_date_4": null,
    "contact_email": "koko@crm.com",
    "udf_date_3": null,
    "number": "40",
    "udf_float_3": null,
    "udf_float_4": null,
    "estimated_completion_time": {
      "time_period_uot": "MONTHS",
      "time_period_value": 1
    },
    "probability_to_win": null,
    "id": "8849ED46699D49D9AEA1BABF770B58A2",
    "udf_float_1": null,
    "udf_float_2": null,
    "start_date": "2016-11-01T13:14:39",
    "assigned_to": {
      "unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "udf_string_2": null,
    "udf_string_3": null,
    "udf_string_4": null,
    "actual_completion_date": null,
    "udf_string_5": null,
    "privacy_level": null,
    "users_set": [],
    "udf_string_1": null,
    "accounts_receivable": {
      "number": "ACR0000000201",
      "name": "ACR0000000201 Kokos Panagi",
      "id": "4F122DD060A843A68C0BDA3950B79612",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Panagi",
        "id": "A8238D650E324E9189146DDDC8AE0372",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Kokos",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": "21312312",
          "gender": null,
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      }
    },
    "life_cycle_state": "IN_PROGRESS",
    "priority": 1,
    "time_to_completion": {
      "time_period_uot": "MONTHS",
      "time_period_value": 1
    },
    "lost_reason": null,
    "competitors_set": [],
    "physical_goods_set": [],
    "time_overdue": {
      "time_period_uot": null,
      "time_period_value": null
    },
    "category": {
      "code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "35EB799C52F14A8984FE2F397A852A78"
    },
    "udf_string_6": null,
    "expected_completion_date": "2016-12-01T13:14:39",
    "udf_string_7": null,
    "udf_string_8": null,
    "status": {
      "alternative_code": "LRN",
      "name": "Learn",
      "description": null,
      "id": "3602BCD537E94C1C925090F97F3A57FD",
      "life_cycle_state": "IN_PROGRESS"
    }
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST leads/cancel

Tip

Available from CRM.COM R11.1.0

This method cancels a Lead but only as long as the Lead in not in life cycle state Won or Lost. A single lead can be cancelled by each call

...

NameTypeDescription
token

String

The token retrieved from the login method

lead_identifier

(mandatory)

Lead Identifier

The identifier of the Lead to be cancelled. The allowed Lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

status_identifier

(optional)

Lead Status Identifier

The status that will be set on the Lead , after the cancellation. If not specified the the default status for cancelling Lead of that type will be used. The allowed Lead status identifiers are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Expand
titleExample 1

HTTP Method: POST

 

Request: {{server}}/crmapi/rest/v2/leads/cancel

Body:

Code Block
{
 "token":"{{token}}",
"lead_identifier":{"number":"5"}
}

 

Response:

Code Block
 {
  "data": {
    "target_amount": null,
    "contact_phone": null,
    "log_information": {
      "created_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "updated_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "created_date": "2016-02-24T17:30:12",
      "updated_date": "2016-11-01T12:43:13",
      "updated_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "importance": "IMPORTANCE1",
    "lead_source": {
      "name": "5",
      "type": "ADVERTISEMENT"
    },
    "services_set": [],
    "owned_by_group": {
      "alternative_code": "MG",
      "name": "Main Group",
      "description": "Main Group",
      "id": "1"
    },
    "description": null,
    "contact_information": {
      "company_profile": null,
      "company_name": null,
      "name": null,
      "last_name": "Ioannou",
      "id": "7D12A2BD867A40C0BFAFEC3E092F9613",
      "life_cycle_state": "FINANCIAL",
      "middle_name": "A.",
      "title": "Mr",
      "type": "PERSON",
      "first_name": "John",
      "demographics": {
        "name_day": {
          "month": null,
          "day": null
        },
        "id_number": null,
        "gender": "MALE",
        "date_of_birth": {
          "month": null,
          "year": null,
          "day": null
        },
        "industry_sector": null,
        "passport_number": "123321",
        "industry": null,
        "social_security_number": null,
        "id_issued_by_country": null,
        "passport_issued_by_country": null
      }
    },
    "type": {
      "alternative_code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "696C0E5F273B4D548F875F63F9DE77C2"
    },
    "udf_date_2": null,
    "udf_date_1": null,
    "udf_date_4": null,
    "contact_email": "p_kestora@crm.com",
    "udf_date_3": null,
    "number": "5",
    "udf_float_3": null,
    "udf_float_4": null,
    "estimated_completion_time": {
      "time_period_uot": "MONTHS",
      "time_period_value": 1
    },
    "probability_to_win": null,
    "id": "F39074EC81A346FB8DCC677057889B4F",
    "udf_float_1": null,
    "udf_float_2": null,
    "start_date": "2016-02-24T17:30:12",
    "assigned_to": {
      "unit": {
        "alternative_code": "U",
        "group_name": "Main Group",
        "name": "Main Unit",
        "description": null,
        "id": "224705C73FFF4A6296F06ED15FD20609"
      },
      "user": null
    },
    "udf_string_2": null,
    "udf_string_3": null,
    "udf_string_4": null,
    "actual_completion_date": null,
    "udf_string_5": null,
    "privacy_level": null,
    "users_set": [],
    "udf_string_1": null,
    "accounts_receivable": {
      "number": "ACR0000000011",
      "name": "ACR0000000011 John Ioannou",
      "id": "9D6862E7FB134305AF702FD4030FB7AB",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Ioannou",
        "id": "7D12A2BD867A40C0BFAFEC3E092F9613",
        "life_cycle_state": "FINANCIAL",
        "middle_name": "A.",
        "title": "Mr",
        "type": "PERSON",
        "first_name": "John",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": null,
          "gender": "MALE",
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": "123321",
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      }
    },
    "life_cycle_state": "CANCELLED",
    "priority": 1,
    "time_to_completion": {
      "time_period_uot": null,
      "time_period_value": null
    },
    "lost_reason": null,
    "competitors_set": [],
    "physical_goods_set": [],
    "time_overdue": {
      "time_period_uot": "MONTHS",
      "time_period_value": 7.258064516129032
    },
    "category": {
      "code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "35EB799C52F14A8984FE2F397A852A78"
    },
    "udf_string_6": null,
    "expected_completion_date": "2016-03-24T17:30:12",
    "udf_string_7": null,
    "udf_string_8": null,
    "status": {
      "alternative_code": "C",
      "name": "Cancelled",
      "description": null,
      "id": "DD0AABD42577422AB8434E603DBC5059",
      "life_cycle_state": "CANCELLED"
    }
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST leads/win

Tip

Available from CRM.COM R11.1.0

This method marks a Lead as Won but only as long as the Lead is In Progress life cycle states. A single lead can be won by each call

...

 Name

Type

Description

token

String

The token retrieved from the login method

lead_identifier

(mandatory)

Lead Identifier

The identifier of the won Lead. The allowed lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

status_identifier

(optional)

Lead Status Identifier

The status that will be set on the Lead , after it is marked as Won. If not specified the the default status for winning a Lead of that type will be used. The allowed Lead status identifiers are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

accounts_receivable

(mandatory on conditions)

Accounts Receivable ObjectThe accounts receivable owned by the contact that identifies the CRM.COM customer, and handles all financial transactions that might be posted against it. This is required when the lead is won but only as long as the lead is not already related to an accounts receivable

fields_set

(optional)

List of Strings, comma separated

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Expand
titleExample 1

HTTP Method: POST

 

Request: {{server}}/crmapi/rest/v2/leads/win

Body:

Code Block
 {
"token":"{{token}}",
"lead_identifier":{"number":"41"},
"accounts_receivable":
   {
        "action":"EXISTING",
        "accounts_receivable_identifier":{"number":"ACR0000000201"}
    }
}

 

Response:

Code Block
 {
  "data": {
    "target_amount": null,
    "contact_phone": null,
    "log_information": {
      "created_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "updated_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "created_date": "2016-11-01T14:57:21",
      "updated_date": "2016-11-02T09:53:43",
      "updated_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "importance": "IMPORTANCE1",
    "lead_source": {
      "name": "www.crm.com",
      "type": "WEBSITE"
    },
    "services_set": [],
    "owned_by_group": {
      "alternative_code": "MG",
      "name": "Main Group",
      "description": "Main Group",
      "id": "1"
    },
    "description": null,
    "contact_information": {
      "company_profile": null,
      "company_name": null,
      "name": null,
      "last_name": "Panagi",
      "id": "A8238D650E324E9189146DDDC8AE0372",
      "life_cycle_state": "FINANCIAL",
      "middle_name": null,
      "title": null,
      "type": "PERSON",
      "first_name": "Kokos",
      "demographics": {
        "name_day": {
          "month": null,
          "day": null
        },
        "id_number": "21312312",
        "gender": null,
        "date_of_birth": {
          "month": null,
          "year": null,
          "day": null
        },
        "industry_sector": null,
        "passport_number": null,
        "industry": null,
        "social_security_number": null,
        "id_issued_by_country": null,
        "passport_issued_by_country": null
      }
    },
    "type": {
      "alternative_code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "696C0E5F273B4D548F875F63F9DE77C2"
    },
    "udf_date_2": null,
    "udf_date_1": null,
    "udf_date_4": null,
    "contact_email": "kokos@crm.com",
    "udf_date_3": null,
    "number": "41",
    "udf_float_3": null,
    "udf_float_4": null,
    "estimated_completion_time": {
      "time_period_uot": "MONTHS",
      "time_period_value": 1
    },
    "probability_to_win": null,
    "id": "7145B8AB0F464F92A0B7A5C5B18F0E34",
    "udf_float_1": null,
    "udf_float_2": null,
    "start_date": "2016-11-01T14:57:21",
    "assigned_to": {
      "unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "udf_string_2": null,
    "udf_string_3": null,
    "udf_string_4": null,
    "actual_completion_date": null,
    "udf_string_5": null,
    "privacy_level": null,
    "users_set": [],
    "udf_string_1": null,
    "accounts_receivable": {
      "number": "ACR0000000201",
      "name": "ACR0000000201 Kokos Panagi",
      "id": "4F122DD060A843A68C0BDA3950B79612",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": null,
        "last_name": "Panagi",
        "id": "A8238D650E324E9189146DDDC8AE0372",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Kokos",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": "21312312",
          "gender": null,
          "country_of_residence": {
            "alternative_code": "CYP",
            "three_character_code": "CYP",
            "name": "CYPRUS",
            "id": "181",
            "two_character_code": "CY"
          },
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      }
    },
    "life_cycle_state": "WON",
    "priority": 1,
    "time_to_completion": {
      "time_period_uot": "WEEKS",
      "time_period_value": 4.142857142857143
    },
    "lost_reason": null,
    "competitors_set": [],
    "physical_goods_set": [],
    "time_overdue": {
      "time_period_uot": null,
      "time_period_value": null
    },
    "category": {
      "code": "NC",
      "name": "New Customer",
      "description": null,
      "id": "35EB799C52F14A8984FE2F397A852A78"
    },
    "udf_string_6": null,
    "expected_completion_date": "2016-12-01T14:57:21",
    "udf_string_7": null,
    "udf_string_8": null,
    "status": {
      "alternative_code": "WN",
      "name": "Won",
      "description": null,
      "id": "2945A700AE544B808F0A537A2A9F5E18",
      "life_cycle_state": "WON"
    }
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST leads/lost

Tip

Available from CRM.COM R11.1.0

This method marks a Lead as Lost but only as long as the Lead is in Pending or In Progress life cycle states. A single lead can be marked as lost by each call

...

NameTypeDescription
tokenStringThe token retrieved from the login method

lead_identifier

(mandatory)

Lead Identifier

The identifier of the won Lead. The allowed lead identifier fields are the following:

Include Page
V4:lead_identifier
V4:lead_identifier

status_identifier

(optional)

Lead Status Identifier

The status that will be set on the Lead , after it is marked as Lost. If not specified the the default status for loosing a Lead of that type will be used. The allowed Lead status identifiers are the following:

Include Page
V4:lead_status_identifier
V4:lead_status_identifier

lost_reason_identifier

(mandatory)

Lead Lost Reason Identifier

 

The reason that the lead was lost. This information is mandatory and applicable only if the lead is updated in a status classified as lost. The allowed lead lost reason identifier fields are the following:

Include Page
V4:lead_lost_reason_identifier
V4:lead_lost_reason_identifier

fields_set

(optional)

List of Strings, comma separated

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...