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

GET leads/show

This method returns information related with a lead. A single lead is returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Lead identifier  

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

...

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

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Requesthttp://host_name/crmapi/rest/v2/leads/show?token=6B6300203CBC420900E2B585934F682A&lead_identifier=number=19

Response:

Code Block
languagejs
    {
       "actual_completion_date": null,
       "services_set":
       [
           {
               "product_type":
               {
                   "service_type": "TERMED",
                   "physical_good_type": null,
                   "used_for_provisioning": true,
                   "classification": "SERVICES",
                   "composition_method": "FLAT",
                   "id": "BC954969D3172372D498D3BB2BA590A0",
                   "name": "Subscription Packages",
                   "description": "Subscription main packages",
                   "alternative_code": "SP"
               },
               "id": "818ACD56DD994089AF923191485CBC63",
               "product": null
           },
           {
               "product_type": null,
               "id": "CDEA1D2998BD4998B36ACF034CCD9B94",
               "product":
               {
                   "product_type":
                   {
                       "service_type": "TERMED",
                       "physical_good_type": null,
                       "used_for_provisioning": true,
                       "classification": "SERVICES",
                       "composition_method": "FLAT",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "name": "Subscription Packages",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "3FACF409E7E091F96C52318BAD1AEF1C",
                   "description": "Local + Documentaries + Sport",
                   "code": "Local + Documentaries + Sport",
                   "alternative_code": "LDS"
               }
           },
           {
               "product_type": null,
               "id": "7ED5C781182C472989231A66620198D4",
               "product":
               {
                   "product_type":
                   {
                       "service_type": "TERMED",
                       "physical_good_type": null,
                       "used_for_provisioning": true,
                       "classification": "SERVICES",
                       "composition_method": "FLAT",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "name": "Subscription Packages",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "EFE959954792C2CA46A9147311DE6C94",
                   "description": "Local + Documentaries + Int.",
                   "code": "Local + Documentaries + Int.",
                   "alternative_code": "LDI"
               }
           },
           {
               "product_type": null,
               "id": "ED93E63B8B454F39B097ADA62E826E86",
               "product":
               {
                   "product_type":
                   {
                       "service_type": "TERMED",
                       "physical_good_type": null,
                       "used_for_provisioning": true,
                       "classification": "SERVICES",
                       "composition_method": "FLAT",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "name": "Subscription Packages",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "9A345FDBF378829368733CCB7472E301",
                   "description": "Combo - All available channels",
                   "code": "Combo - All available channels",
                   "alternative_code": "C-AAC"
               }
           }
       ],
       "udf_float_1": null,
       "udf_float_2": null,
       "udf_float_3": null,
       "udf_float_4": null,
       "udf_string_1": null,
       "assigned_to":
       {
           "unit": null,
           "user":
           {
               "person_name": "Smanager",
               "username": "Smanager",
               "id": "DCA93D75753E5CC5AD1E69556368E616",
               "email": null
           }
       },
       "udf_string_2": null,
       "privacy_level": null,
       "contact_information":
       {
           "last_name": "Lannister",
           "middle_name": null,
           "life_cycle_state": "FINANCIAL",
           "company_profile": null,
           "title": "Mr",
           "first_name": "Marios",
           "type": "PERSON",
           "id": "F60EF6A65658F86B3DFADA3809BD85C4",
           "name": null,
           "company_name": null,
           "demographics":
           {
               "gender": "MALE",
               "passport_issued_by_country": null,
               "social_security_number": null,
               "passport_number": null,
               "industry_sector": null,
               "name_day":
               {
                   "month": 5,
                   "day": 1
               },
               "date_of_birth":
               {
                   "month": 5,
                   "day": 1,
                   "year": 1963
               },
               "id_number": "593664",
               "industry": null
           }
       },
       "udf_string_3": null,
       "udf_string_4": null,
       "udf_string_5": null,
       "udf_string_6": null,
       "physical_goods_set":
       [
           {
               "product_type":
               {
                   "service_type": null,
                   "physical_good_type": "TRACEABLE",
                   "used_for_provisioning": false,
                   "classification": "PHYSICALGOODS",
                   "composition_method": "FLAT",
                   "id": "A1508BD642EC10858A54266C6945A8C2",
                   "name": "Monitors",
                   "description": "Monitors For Jobs",
                   "alternative_code": "MO"
               },
               "id": "2E4DC10D1608424896C72CE65E4368E5",
               "product": null
           },
           {
               "product_type":
               {
                   "service_type": null,
                   "physical_good_type": "TRACEABLE",
                   "used_for_provisioning": true,
                   "classification": "PHYSICALGOODS",
                   "composition_method": "FLAT",
                   "id": "249F5EA21B317E4B7BB6F696E7496F03",
                   "name": "Modem",
                   "description": "Modem",
                   "alternative_code": "MODEM"
               },
               "id": "FB717C0DE5A94BD692951CAC7AFC78FE",
               "product": null
           },
           {
               "product_type": null,
               "id": "6720CD24EE934498B99565065BE835DF",
               "product":
               {
                   "product_type":
                   {
                       "service_type": null,
                       "physical_good_type": "TRACEABLE",
                       "used_for_provisioning": true,
                       "classification": "PHYSICALGOODS",
                       "composition_method": "FLAT",
                       "id": "249F5EA21B317E4B7BB6F696E7496F03",
                       "name": "Modem",
                       "description": "Modem",
                       "alternative_code": "MODEM"
                   },
                   "id": "6F55D5C056F35939CC503AD7ACFB9CD5",
                   "description": "Modem A+ Class",
                   "code": "Modem A+",
                   "alternative_code": "MA"
               }
           }
       ],
       "udf_string_7": null,
       "udf_string_8": null,
       "accounts_receivable":
       {
           "account_owner":
           {
               "last_name": "Lannister",
               "middle_name": null,
               "life_cycle_state": "FINANCIAL",
               "company_profile": null,
               "title": "Mr",
               "first_name": "Marios",
               "type": "PERSON",
               "id": "F60EF6A65658F86B3DFADA3809BD85C4",
               "name": null,
               "company_name": null,
               "demographics":
               {
                   "gender": "MALE",
                   "passport_issued_by_country": null,
                   "social_security_number": null,
                   "passport_number": null,
                   "industry_sector": null,
                   "name_day":
                   {
                       "month": 5,
                       "day": 1
                   },
                   "date_of_birth":
                   {
                       "month": 5,
                       "day": 1,
                       "year": 1963
                   },
                   "id_number": "593664",
                   "industry": null
               }
           },
           "life_cycle_state": "ACTIVE",
           "number": "4",
           "id": "5C7045E4DCE86FE0670CEE3A32437227",
           "name": "mar"
       },
       "id": "7E4D45DD4000EB8B71CC5656A6C93C03",
       "priority": 2,
       "expected_completion_date": "2015-05-13T09:52:09",
       "users_set":
       [
           {
               "user":
               {
                   "person_name": "x_poulli",
                   "username": "x_poulli",
                   "id": "D0B5657F42ED3331694BAE21DF971807",
                   "email": "s@s.s2"
               },
               "id": "0D2ABD57DA7F9AFA9A293F8841DE4E25"
           }
       ],
       "time_overdue":
       {
           "time_period_value": null,
           "time_period_uot": null
       },
       "time_to_completion":
       {
           "time_period_value": 2,
           "time_period_uot": "MONTHS"
       },
       "log_information":
       {
           "updated_date": "2015-03-12T11:24:38",
           "created_date": "2015-02-13T09:52:09",
           "created_by_unit":
           {
               "id": "48305F8849E3C18B227C5BE3A27BA6DF",
               "name": "Admin Unit",
               "group_name": "Main Group",
               "description": "r1",
               "alternative_code": "MG"
           },
           "updated_by_unit":
           {
               "id": "48305F8849E3C18B227C5BE3A27BA6DF",
               "name": "Admin Unit",
               "group_name": "Main Group",
               "description": "r1",
               "alternative_code": "MG"
           },
           "created_by_user":
           {
               "person_name": "Marios Lannister",
               "username": "mpadministrator",
               "id": "1"
           },
           "updated_by_user":
           {
               "person_name": "Marios Lannister",
               "username": "mpadministrator",
               "id": "1"
           }
       },
       "life_cycle_state": "IN_PROGRESS",
       "type":
       {
           "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
           "name": "Software Purchase",
           "description": null,
           "alternative_code": "SP"
       },
       "contact_email": "photos.panayi@crm.com",
       "lost_reason": null,
       "target_amount": null,
       "number": "19",
       "competitors_set":
       [
       ],
       "estimated_completion_time":
       {
           "time_period_value": 3,
           "time_period_uot": "MONTHS"
       },
       "lead_source":
       {
           "recommended_by_employee":
           {
               "person_name": "Marios Lannister",
               "username": "mpadministrator",
               "id": "1",
               "email": "mp@ministrator.com"
           },
           "type": "RECOMMENDEDBYEMPLOYEE"
       },
       "probability_to_win": null,
       "udf_date_1": null,
       "udf_date_2": null,
       "udf_date_3": null,
       "start_date": "2015-02-13T09:52:09",
       "udf_date_4": null,
       "owned_by_group":
       {
           "id": "84F33366CB592BAAE7E2044D93611C6A",
           "name": "Main Group",
           "description": "Main Group",
           "alternative_code": "das"
       },
       "status":
       {
           "id": "B738753EE56D01FC6CD964D14FBBCC7A",
           "name": "Interest",
           "description": null,
           "alternative_code": "I"
       },
       "importance": "IMPORTANCE1",
       "description": null,
       "category":
       {
           "id": "C60F332D0B4CB8DD22A0159413951434",
           "name": "Software Purchase",
           "description": null,
           "code": "SP"
       }
    }

GET leads/list

This method returns information related with leads. Multiple leads are returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(semi-optional)

...

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:

...

(optional)

...

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

...

type_identifier
(semi-optional)

...

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:

...

category_identifier

(semi-optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(semi-optional)

...

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)

...

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

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

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

...

Examples

...

titleExample 1

HTTP Method: GET

 

Request: http://host_name/crmapi/rest/v2/leads/list?token=DFBD9A73479EF55ED6C367F79B35844C&source_identifier=type=NOTIFICATIONS

Response:

 

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       [
           {
               "actual_completion_date": "2015-02-17T12:26:35",
               "services_set":
               [
               ],
               "target_amount": 130000,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "45",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit": null,
                   "user":
                   {
                       "person_name": "security1",
                       "username": "security1",
                       "id": "C38C4EFC9DF12B6DDBF266E29FAEEFCE",
                       "email": null
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "contact_information":
               {
                   "last_name": "Papadopoulou",
                   "life_cycle_state": "FINANCIAL",
                   "middle_name": "A",
                   "company_profile": null,
                   "title": "Miss",
                   "type": "PERSON",
                   "first_name": "Fiona",
                   "name": null,
                   "id": "F9D79DAD41EB6DC2E7E184170F0AA4DC",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": null,
                       "passport_issued_by_country": null,
                       "passport_number": null,
                       "social_security_number": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": 2,
                           "day": 2,
                           "year": 1978
                       },
                       "name_day":
                       {
                           "month": 11,
                           "day": 3
                       },
                       "id_number": null,
                       "id_issued_by_country": null,
                       "industry": 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": "F2D480CF016DBCBAF2E1982B30EEF03E",
               "lead_source":
               {
                   "type": "NOTIFICATIONS",
                   "notification":
                   {
                       "accounts_receivable":
                       {
                           "account_owner":
                           {
                               "last_name": "Litt",
                               "life_cycle_state": "FINANCIAL",
                               "middle_name": null,
                               "company_profile": null,
                               "title": "Mr",
                               "type": "PERSON",
                               "first_name": "Mathew",
                               "name": null,
                               "id": "921C66776CBFEC5D839CA0DBFA1A1B76",
                               "company_name": null,
                               "demographics":
                               {
                                   "gender": "MALE",
                                   "passport_issued_by_country": null,
                                   "passport_number": "111",
                                   "social_security_number": "111",
                                   "industry_sector": null,
                                   "date_of_birth":
                                   {
                                       "month": null,
                                       "day": null,
                                       "year": null
                                   },
                                   "name_day":
                                   {
                                       "month": null,
                                       "day": null
                                   },
                                   "id_number": "111",
                                   "id_issued_by_country": null,
                                   "industry": null
                               }
                           },
                           "life_cycle_state": "ACTIVE",
                           "number": "165",
                           "name": "Mathew Litt",
                           "id": "63755A788E078C16D506AD5CD1AB3E03"
                       },
                       "life_cycle_state": null,
                       "number": "52",
                       "id": "1918416EB3B3E94B8B451E3A008103B7",
                       "contact_information":
                       {
                           "last_name": "Litt",
                           "life_cycle_state": "FINANCIAL",
                           "middle_name": null,
                           "company_profile": null,
                           "title": "Mr",
                           "type": "PERSON",
                           "first_name": "Mathew",
                           "name": null,
                           "id": "921C66776CBFEC5D839CA0DBFA1A1B76",
                           "company_name": null,
                           "demographics":
                           {
                               "gender": "MALE",
                               "passport_issued_by_country": null,
                               "passport_number": "111",
                               "social_security_number": "111",
                               "industry_sector": null,
                               "date_of_birth":
                               {
                                   "month": null,
                                   "day": null,
                                   "year": null
                               },
                               "name_day":
                               {
                                   "month": null,
                                   "day": null
                               },
                               "id_number": "111",
                               "id_issued_by_country": null,
                               "industry": null
                           }
                       }
                   }
               },
               "probability_to_win": 25,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-17T12:21:18",
               "udf_date_4": null,
               "start_date": "2015-02-17T12:21:18",
               "users_set":
               [
                   {
                       "id": "9B19252B3DE5BCE1BF5A9AC201780795",
                       "user":
                       {
                           "person_name": "v_kleanthous",
                           "username": "v_kleanthous",
                           "id": "FF7F0B0AED065136B0A7B0A883BF48E3",
                           "email": "v_kleanthous@crm.com"
                       }
                   },
                   {
                       "id": "716309D86FEC0F3CEED6692D496A0B39",
                       "user":
                       {
                           "person_name": "hannibal",
                           "username": "hannibal",
                           "id": "2C008EB82E0DBC7722E93F207E2091CE",
                           "email": "hannibal@crm.com"
                       }
                   }
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "owned_by_group":
               {
                   "name": "Installation Group",
                   "id": "E2B8F8760CEDED45A64EF3CFCA3D1447",
                   "description": null,
                   "alternative_code": "IG"
               },
               "log_information":
               {
                   "updated_date": "2015-02-17T12:26:38",
                   "created_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-17T12:21:18",
                   "updated_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   },
                   "updated_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   }
               },
               "status":
               {
                   "name": "Won",
                   "id": "CE3D8565F49E82F5B7F3BB62C43A1B06",
                   "description": null,
                   "alternative_code": "WON"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "WON",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "athina_mouxouri@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": "SP"
               },
               "lost_reason": null
           },
           {
               "actual_completion_date": "2015-02-17T16:53:07",
               "services_set":
               [
               ],
               "target_amount": 22,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "56",
               "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,
               "contact_information":
               {
                   "last_name": "Charls",
                   "life_cycle_state": "MARKETING",
                   "middle_name": null,
                   "company_profile": null,
                   "title": null,
                   "type": "PERSON",
                   "first_name": "Fiona",
                   "name": null,
                   "id": "17A4A95031577305E0C7961979AE4765",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": null,
                       "passport_issued_by_country": null,
                       "passport_number": null,
                       "social_security_number": null,
                       "country_of_residence": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": 0,
                           "day": 0,
                           "year": 0
                       },
                       "name_day":
                       {
                           "month": null,
                           "day": null
                       },
                       "id_number": null,
                       "id_issued_by_country": null,
                       "industry": 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": "D99D83524F9B1E3AA354E56511CB7654",
               "lead_source":
               {
                   "type": "NOTIFICATIONS",
                   "notification":
                   {
                       "accounts_receivable":
                       {
                           "account_owner":
                           {
                               "last_name": "Ioannou17",
                               "life_cycle_state": "FINANCIAL",
                               "middle_name": "P",
                               "company_profile": null,
                               "title": "Mr",
                               "type": "PERSON",
                               "first_name": "Marios",
                               "name": null,
                               "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                               "company_name": null,
                               "demographics":
                               {
                                   "gender": "MALE",
                                   "passport_issued_by_country": null,
                                   "passport_number": "8788989",
                                   "social_security_number": "8788980",
                                   "industry_sector": null,
                                   "date_of_birth":
                                   {
                                       "month": null,
                                       "day": null,
                                       "year": null
                                   },
                                   "name_day":
                                   {
                                       "month": null,
                                       "day": null
                                   },
                                   "id_number": "8788988",
                                   "id_issued_by_country": null,
                                   "industry": null
                               }
                           },
                           "life_cycle_state": "ACTIVE",
                           "number": "95",
                           "name": "mar17",
                           "id": "F5235112A7A9FFFBF8C9AE7DA20CD7C4"
                       },
                       "life_cycle_state": null,
                       "number": "49",
                       "id": "6D9A7F80464B91DD5837AD3CE095ACC3",
                       "contact_information":
                       {
                           "last_name": "Ioannou17",
                           "life_cycle_state": "FINANCIAL",
                           "middle_name": "P",
                           "company_profile": null,
                           "title": "Mr",
                           "type": "PERSON",
                           "first_name": "Marios",
                           "name": null,
                           "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                           "company_name": null,
                           "demographics":
                           {
                               "gender": "MALE",
                               "passport_issued_by_country": null,
                               "passport_number": "8788989",
                               "social_security_number": "8788980",
                               "industry_sector": null,
                               "date_of_birth":
                               {
                                   "month": null,
                                   "day": null,
                                   "year": null
                               },
                               "name_day":
                               {
                                   "month": null,
                                   "day": null
                               },
                               "id_number": "8788988",
                               "id_issued_by_country": null,
                               "industry": null
                           }
                       }
                   }
               },
               "probability_to_win": 12,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-17T16:52:50",
               "udf_date_4": null,
               "start_date": "2015-02-17T16:52:50",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "owned_by_group":
               {
                   "name": "GR0001",
                   "id": "492ACAF1A5B8F2F30AD80B517408720B",
                   "description": null,
                   "alternative_code": "GR0001"
               },
               "log_information":
               {
                   "updated_date": "2015-02-17T16:53:40",
                   "created_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-17T16:52:50",
                   "updated_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   },
                   "updated_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   }
               },
               "status":
               {
                   "name": "Won",
                   "id": "CE3D8565F49E82F5B7F3BB62C43A1B06",
                   "description": null,
                   "alternative_code": "WON"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "WON",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "fiona@test.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": "SP"
               },
               "lost_reason": null
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": 1000,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "58",
               "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,
               "contact_information":
               {
                   "last_name": "Stevens",
                   "life_cycle_state": "FINANCIAL",
                   "middle_name": null,
                   "company_profile": null,
                   "title": null,
                   "type": "PERSON",
                   "first_name": "Bebe",
                   "name": null,
                   "id": "813376B56DE985F0E53A3B73166B6E77",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": null,
                       "passport_issued_by_country": null,
                       "passport_number": "50",
                       "social_security_number": "67",
                       "country_of_residence": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": null,
                           "day": null,
                           "year": null
                       },
                       "name_day":
                       {
                           "month": null,
                           "day": null
                       },
                       "id_number": "454545",
                       "id_issued_by_country": null,
                       "industry": 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": "Stevens",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": null,
                       "company_profile": null,
                       "title": null,
                       "type": "PERSON",
                       "first_name": "Bebe",
                       "name": null,
                       "id": "813376B56DE985F0E53A3B73166B6E77",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": null,
                           "passport_issued_by_country": null,
                           "passport_number": "50",
                           "social_security_number": "67",
                           "country_of_residence": null,
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": null,
                               "day": null,
                               "year": null
                           },
                           "name_day":
                           {
                               "month": null,
                               "day": null
                           },
                           "id_number": "454545",
                           "id_issued_by_country": null,
                           "industry": null
                       }
                   },
                   "life_cycle_state": "ACTIVE",
                   "number": "536",
                   "name": "Bebe Stevens",
                   "id": "C1C8DE4718938D8495601D11E4412F73"
               },
               "id": "ED937A220239117FC4277B57B839530F",
               "lead_source":
               {
                   "type": "NOTIFICATIONS",
                   "notification":
                   {
                       "accounts_receivable":
                       {
                           "account_owner":
                           {
                               "last_name": "Ioannou17",
                               "life_cycle_state": "FINANCIAL",
                               "middle_name": "P",
                               "company_profile": null,
                               "title": "Mr",
                               "type": "PERSON",
                               "first_name": "Marios",
                               "name": null,
                               "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                               "company_name": null,
                               "demographics":
                               {
                                   "gender": "MALE",
                                   "passport_issued_by_country": null,
                                   "passport_number": "8788989",
                                   "social_security_number": "8788980",
                                   "industry_sector": null,
                                   "date_of_birth":
                                   {
                                       "month": null,
                                       "day": null,
                                       "year": null
                                   },
                                   "name_day":
                                   {
                                       "month": null,
                                       "day": null
                                   },
                                   "id_number": "8788988",
                                   "id_issued_by_country": null,
                                   "industry": null
                               }
                           },
                           "life_cycle_state": "ACTIVE",
                           "number": "95",
                           "name": "mar17",
                           "id": "F5235112A7A9FFFBF8C9AE7DA20CD7C4"
                       },
                       "life_cycle_state": null,
                       "number": "49",
                       "id": "6D9A7F80464B91DD5837AD3CE095ACC3",
                       "contact_information":
                       {
                           "last_name": "Ioannou17",
                           "life_cycle_state": "FINANCIAL",
                           "middle_name": "P",
                           "company_profile": null,
                           "title": "Mr",
                           "type": "PERSON",
                           "first_name": "Marios",
                           "name": null,
                           "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                           "company_name": null,
                           "demographics":
                           {
                               "gender": "MALE",
                               "passport_issued_by_country": null,
                               "passport_number": "8788989",
                               "social_security_number": "8788980",
                               "industry_sector": null,
                               "date_of_birth":
                               {
                                   "month": null,
                                   "day": null,
                                   "year": null
                               },
                               "name_day":
                               {
                                   "month": null,
                                   "day": null
                               },
                               "id_number": "8788988",
                               "id_issued_by_country": null,
                               "industry": null
                           }
                       }
                   }
               },
               "probability_to_win": 54,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-05-17T17:00:08",
               "udf_date_4": null,
               "start_date": "2015-02-17T17:00:08",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "owned_by_group":
               {
                   "name": "Main Group",
                   "id": "84F33366CB592BAAE7E2044D93611C6A",
                   "description": "Main Group",
                   "alternative_code": "das"
               },
               "log_information":
               {
                   "updated_date": "2015-02-18T14:18:18",
                   "created_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-02-17T17:00:08",
                   "updated_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   },
                   "updated_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   }
               },
               "status":
               {
                   "name": "Won",
                   "id": "CE3D8565F49E82F5B7F3BB62C43A1B06",
                   "description": null,
                   "alternative_code": "WON"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "WON",
               "type":
               {
                   "name": "Software Purchase",
                   "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
                   "description": null,
                   "alternative_code": "SP"
               },
               "description": null,
               "contact_email": "bbs@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": "SP"
               },
               "lost_reason": null
           },
           {
               "actual_completion_date": "2015-03-11T11:17:36",
               "services_set":
               [
               ],
               "target_amount": 1000,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "67",
               "udf_float_4": null,
               "competitors_set":
               [
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit":
                   {
                       "name": "Developers Unit",
                       "id": "C4370788B2630BC8A99E8C7397406C09",
                       "description": null,
                       "alternative_code": null
                   },
                   "user":
                   {
                       "person_name": "supervisor",
                       "username": "supervisor",
                       "id": "018CA08BC267612F6206D85011FFC5D1"
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 10,
                   "time_period_uot": "DAYS"
               },
               "udf_string_3": null,
               "contact_information":
               {
                   "last_name": "Xenon",
                   "life_cycle_state": "MARKETING",
                   "middle_name": "A.",
                   "company_profile": null,
                   "title": "Mr",
                   "type": "PERSON",
                   "first_name": "Costas",
                   "name": null,
                   "id": "1ADB6164F933E381CF65B7F6E7705B8B",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": null,
                       "passport_issued_by_country": null,
                       "passport_number": null,
                       "social_security_number": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": 9,
                           "day": 30,
                           "year": 1977
                       },
                       "name_day":
                       {
                           "month": 5,
                           "day": 1
                       },
                       "id_number": "999999",
                       "id_issued_by_country": null,
                       "industry": 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": "F75F88397C0849F5B53A010AD3091538",
               "lead_source":
               {
                   "type": "NOTIFICATIONS",
                   "notification":
                   {
                       "accounts_receivable":
                       {
                           "account_owner":
                           {
                               "last_name": "Litt",
                               "life_cycle_state": "FINANCIAL",
                               "middle_name": null,
                               "company_profile": null,
                               "title": "Mr",
                               "type": "PERSON",
                               "first_name": "Mathew",
                               "name": null,
                               "id": "921C66776CBFEC5D839CA0DBFA1A1B76",
                               "company_name": null,
                               "demographics":
                               {
                                   "gender": "MALE",
                                   "passport_issued_by_country": null,
                                   "passport_number": "111",
                                   "social_security_number": "111",
                                   "industry_sector": null,
                                   "date_of_birth":
                                   {
                                       "month": null,
                                       "day": null,
                                       "year": null
                                   },
                                   "name_day":
                                   {
                                       "month": null,
                                       "day": null
                                   },
                                   "id_number": "111",
                                   "id_issued_by_country": null,
                                   "industry": null
                               }
                           },
                           "life_cycle_state": "ACTIVE",
                           "number": "165",
                           "name": "Mathew Litt",
                           "id": "63755A788E078C16D506AD5CD1AB3E03"
                       },
                       "life_cycle_state": null,
                       "number": "51",
                       "id": "49B37FA3E001C43F28CFEAFEB3E451D5",
                       "contact_information":
                       {
                           "last_name": "Litt",
                           "life_cycle_state": "FINANCIAL",
                           "middle_name": null,
                           "company_profile": null,
                           "title": "Mr",
                           "type": "PERSON",
                           "first_name": "Mathew",
                           "name": null,
                           "id": "921C66776CBFEC5D839CA0DBFA1A1B76",
                           "company_name": null,
                           "demographics":
                           {
                               "gender": "MALE",
                               "passport_issued_by_country": null,
                               "passport_number": "111",
                               "social_security_number": "111",
                               "industry_sector": null,
                               "date_of_birth":
                               {
                                   "month": null,
                                   "day": null,
                                   "year": null
                               },
                               "name_day":
                               {
                                   "month": null,
                                   "day": null
                               },
                               "id_number": "111",
                               "id_issued_by_country": null,
                               "industry": null
                           }
                       }
                   }
               },
               "probability_to_win": 50,
               "priority": 1,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-03-21T11:16:28",
               "udf_date_4": null,
               "start_date": "2015-03-11T11:16:28",
               "users_set":
               [
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "owned_by_group":
               {
                   "name": "First Digital",
                   "id": "C99587F08621440FADB06E8FA5C0B23B",
                   "description": null,
                   "alternative_code": "FD"
               },
               "log_information":
               {
                   "updated_date": "2015-03-11T11:17:43",
                   "created_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-03-11T11:16:28",
                   "updated_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   },
                   "updated_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   }
               },
               "status":
               {
                   "name": "Lost",
                   "id": "157C9060CB0F75EC2DCA62D16B5897EE",
                   "description": null,
                   "alternative_code": "LOST"
               },
               "importance": "IMPORTANCE1",
               "life_cycle_state": "LOST",
               "type":
               {
                   "name": "New Type",
                   "id": "03C4E24BAAE74D0CA071560C7B663C7E",
                   "description": null,
                   "alternative_code": "NT"
               },
               "description": null,
               "contact_email": "cxenon@crm.com",
               "category":
               {
                   "name": "New Category",
                   "id": "0B0A6FF02D0D48188F266BB4035AC41C",
                   "description": null,
                   "code": "NC"
               },
               "lost_reason": null
           },
           {
               "actual_completion_date": null,
               "services_set":
               [
               ],
               "target_amount": 100,
               "udf_float_1": null,
               "udf_float_2": null,
               "udf_float_3": null,
               "number": "68",
               "udf_float_4": null,
               "competitors_set":
               [
                   {
                       "id": "E2394E02073847ED9633C88D90E94BDE",
                       "competitor":
                       {
                           "website": "www.competitor1.com",
                           "name": "Competitor 1",
                           "id": "C671ED66046243565DE5B6B4A1AB5835",
                           "description": null
                       }
                   }
               ],
               "udf_string_1": null,
               "udf_string_2": null,
               "assigned_to":
               {
                   "unit":
                   {
                       "name": "Developers Unit",
                       "id": "C4370788B2630BC8A99E8C7397406C09",
                       "description": null,
                       "alternative_code": null
                   },
                   "user":
                   {
                       "person_name": "supervisor",
                       "username": "supervisor",
                       "id": "018CA08BC267612F6206D85011FFC5D1"
                   }
               },
               "estimated_completion_time":
               {
                   "time_period_value": 3,
                   "time_period_uot": "MONTHS"
               },
               "udf_string_3": null,
               "contact_information":
               {
                   "last_name": null,
                   "life_cycle_state": "MARKETING",
                   "middle_name": null,
                   "company_profile":
                   {
                       "tax_reference_number": null,
                       "annual_turnover": null,
                       "number_of_employees": null,
                       "profile_year": null,
                       "established_date": null,
                       "industry_sector": null,
                       "registered_in_country": null,
                       "vat_registration_number": null,
                       "industry": null,
                       "vat_registration_date": null,
                       "vat_registered_by": null,
                       "registration_number": null
                   },
                   "title": null,
                   "type": "COMPANY",
                   "first_name": null,
                   "name": null,
                   "id": "D9C7C7587CEA4EA09198FA8FBB0313D5",
                   "company_name": "company lead",
                   "demographics": null
               },
               "privacy_level": null,
               "udf_string_4": null,
               "udf_string_5": null,
               "udf_string_6": null,
               "physical_goods_set":
               [
                   {
                       "product_type": null,
                       "id": "476D03E0AE56421A92A933312DA1E80D",
                       "product":
                       {
                           "product_type":
                           {
                               "physical_good_type": "TRACEABLE",
                               "service_type": null,
                               "used_for_provisioning": false,
                               "composition_method": "FLAT",
                               "classification": "PHYSICALGOODS",
                               "name": "Distribution Services",
                               "id": "65EB098619B362EBCF361755602832E1",
                               "description": "BAS, Sobetel, Service for Twin 1, Twin 2, Twin 3 PT1, PT2 PT3",
                               "alternative_code": "DSTR SRV"
                           },
                           "id": "7025D20E1AEE61C7ECB87021D32E9EF3",
                           "description": "Card product",
                           "code": "Card product 001",
                           "alternative_code": "CP001"
                       }
                   },
                   {
                       "product_type": null,
                       "id": "C47D92FA80C14975B4CD39D041A2656D",
                       "product":
                       {
                           "product_type":
                           {
                               "physical_good_type": "TRACEABLE",
                               "service_type": null,
                               "used_for_provisioning": false,
                               "composition_method": "FLAT",
                               "classification": "PHYSICALGOODS",
                               "name": "Distribution Services",
                               "id": "65EB098619B362EBCF361755602832E1",
                               "description": "BAS, Sobetel, Service for Twin 1, Twin 2, Twin 3 PT1, PT2 PT3",
                               "alternative_code": "DSTR SRV"
                           },
                           "id": "F7CEEAAFCE2519EDBD207755588F34F9",
                           "description": "Card product 003",
                           "code": "Card Product 003",
                           "alternative_code": "CP003"
                       }
                   }
               ],
               "udf_string_7": null,
               "udf_string_8": null,
               "accounts_receivable": null,
               "id": "13B20570DFD14C4492932143EC2FAEF6",
               "lead_source":
               {
                   "type": "NOTIFICATIONS",
                   "notification":
                   {
                       "accounts_receivable":
                       {
                           "account_owner":
                           {
                               "last_name": "Ioannou17",
                               "life_cycle_state": "FINANCIAL",
                               "middle_name": "P",
                               "company_profile": null,
                               "title": "Mr",
                               "type": "PERSON",
                               "first_name": "Marios",
                               "name": null,
                               "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                               "company_name": null,
                               "demographics":
                               {
                                   "gender": "MALE",
                                   "passport_issued_by_country": null,
                                   "passport_number": "8788989",
                                   "social_security_number": "8788980",
                                   "industry_sector": null,
                                   "date_of_birth":
                                   {
                                       "month": null,
                                       "day": null,
                                       "year": null
                                   },
                                   "name_day":
                                   {
                                       "month": null,
                                       "day": null
                                   },
                                   "id_number": "8788988",
                                   "id_issued_by_country": null,
                                   "industry": null
                               }
                           },
                           "life_cycle_state": "ACTIVE",
                           "number": "95",
                           "name": "mar17",
                           "id": "F5235112A7A9FFFBF8C9AE7DA20CD7C4"
                       },
                       "life_cycle_state": null,
                       "number": "49",
                       "id": "6D9A7F80464B91DD5837AD3CE095ACC3",
                       "contact_information":
                       {
                           "last_name": "Ioannou17",
                           "life_cycle_state": "FINANCIAL",
                           "middle_name": "P",
                           "company_profile": null,
                           "title": "Mr",
                           "type": "PERSON",
                           "first_name": "Marios",
                           "name": null,
                           "id": "D73AA349B9319CEF0C25351DF4C7DFF6",
                           "company_name": null,
                           "demographics":
                           {
                               "gender": "MALE",
                               "passport_issued_by_country": null,
                               "passport_number": "8788989",
                               "social_security_number": "8788980",
                               "industry_sector": null,
                               "date_of_birth":
                               {
                                   "month": null,
                                   "day": null,
                                   "year": null
                               },
                               "name_day":
                               {
                                   "month": null,
                                   "day": null
                               },
                               "id_number": "8788988",
                               "id_issued_by_country": null,
                               "industry": null
                           }
                       }
                   }
               },
               "probability_to_win": 90,
               "priority": 2,
               "udf_date_1": null,
               "udf_date_2": null,
               "udf_date_3": null,
               "expected_completion_date": "2015-06-11T13:06:10",
               "udf_date_4": null,
               "start_date": "2015-03-11T13:06:10",
               "users_set":
               [
                   {
                       "id": "59D971EF8CD2455B934382261AF9A50C",
                       "user":
                       {
                           "person_name": "mpadministrator",
                           "username": "mpadministrator",
                           "id": "1",
                           "email": "mp@ministrator.com"
                       }
                   }
               ],
               "time_overdue":
               {
                   "time_period_value": null,
                   "time_period_uot": null
               },
               "time_to_completion":
               {
                   "time_period_value": 2.946236559139785,
                   "time_period_uot": "MONTHS"
               },
               "owned_by_group":
               {
                   "name": "Main Group",
                   "id": "84F33366CB592BAAE7E2044D93611C6A",
                   "description": "Main Group",
                   "alternative_code": "das"
               },
               "log_information":
               {
                   "updated_date": "2015-03-11T14:07:46",
                   "created_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_date": "2015-03-11T13:06:10",
                   "updated_by_unit":
                   {
                       "group_name": "Main Group",
                       "name": "Admin Unit",
                       "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                       "description": "r1",
                       "alternative_code": "MG"
                   },
                   "created_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   },
                   "updated_by_user":
                   {
                       "person_name": "mpadministrator",
                       "username": "mpadministrator",
                       "id": "1"
                   }
               },
               "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": "cl@crm.com",
               "category":
               {
                   "name": "Software Purchase",
                   "id": "C60F332D0B4CB8DD22A0159413951434",
                   "description": null,
                   "code": "SP"
               },
               "lost_reason": null
           }
       ]
    }


  

 

 

GET leads/get_overdue

This method returns all leads which are not completed and are past their expected completion time. 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

...

(optional)

...

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:

...

(optional)

...

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

...

type_identifier
(optional)

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(optional)

...

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

...

importance

(optional)

...

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)

...

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

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

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

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request: http://host_name/crmapi/rest/v2/leads/get_overdue?token=8308DBB946F992DF90863872E1AD5391&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": 9.137931034482758,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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": 9.137931034482758,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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": 9.137931034482758,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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": "CFBA6EE27C3FB776B961074F22A3746C",
                   "product":
                   {
                       "product_type": null,
                       "id": "7D4A6FE566968324344AF2BFE3AB643C",
                       "description": "Adult- Only for Additional ",
                       "code": "Adult- Only for Additional ",
                       "alternative_code": null
                   }
               },
               {
                   "id": "2C23866BA622ECEA63B23595693D9EFC",
                   "product":
                   {
                       "product_type": null,
                       "id": "2DAC89CF56BE7B661E1A1B0246E8BF08",
                       "description": "Kids TV",
                       "code": "Kids TV",
                       "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": 9.137931034482758,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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": 9.10344827586207,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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": 9.10344827586207,
               "time_period_uot": "MONTHS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "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
           }
       }
}

 

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

...

String

...

The token retrieved from the login method

...

period
(mandatory)

...

uot
(mandatory)

...

MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

...

contact_information_identifier

(optional)

...

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

...

 

...

(optional)

...

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

...

type_identifier
(optional)

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

priority

(optional)

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

fields_set

(optional)

...

List of Strings, comma separated

 

...

Restrictions

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

Response Data

...

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

...

(optional)

...

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:

...

(optional)

...

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

...

type_identifier
(optional)

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

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)

...

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

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

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

...

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

...

(optional)

...

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:

...

(optional)

...

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

...

type_identifier
(optional)

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

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)

...

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

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

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

...

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

...

(optional)

...

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:

...

(optional)

...

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

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

priority

(optional)

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

fields_set

(optional)

...

List of Strings, comma separated

 

...

Restrictions

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

Response Data

...

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

...

(optional)

...

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:

...

(optional)

...

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

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

priority

(optional)

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

fields_set

(optional)

...

List of Strings, comma separated

 

...

Restrictions

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

Response Data

...

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

...

(optional)

...

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:

...

(optional)

...

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

...

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:

...

category_identifier

(optional)

...

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:

...

source_identifier

(semi-optional)

...

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

...

importance

(optional)

...

priority

(optional)

...

number_of_results

(optional)

...

The number of results that can be retrieved through each call

Tip

Available from CRM.COM R13.0.0

...

offset

(optional)

...

Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number

Tip

Available from CRM.COM R13.0.0

...

fields_set

(optional)

...

List of Strings, comma separated

 

...

Restrictions

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

Response Data

...

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

This method creates a lead.  Single lead can be created by each call.

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

contact_email

(mandatory on conditions)

...

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)

...

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)

...

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:

...

description

(optional)

...

probability_to_win

(optional)

...

importance

(mandatory)

...

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)

...

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)

...

type_identifier

(mandatory)

...

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

...

status_identifier

(optional)

...

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:

...

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)

...

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:

...

Tip

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

...

category_identifier

(optional)

...

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:

...

Tip

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

...

owned_by_group_identifier
(optional)

...

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

...

privacy_level_identifier
(optional)

...

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

...

udf_string_1 

(optional)

...

User Defined Field of type String

...

udf_string_2 

(optional)

...

User Defined Field of type String

...

udf_string_3 

(optional)

...

User Defined Field of type String

...

udf_string_4 

(optional)

...

User Defined Field of type String

...

udf_string_5

(optional)

...

User Defined Field of type String

...

udf_string_6 

(optional)

...

User Defined Field of type String

...

udf_string_7

(optional)

...

User Defined Field of type String

...

udf_string_8

(optional)

...

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)

...

expected_completion_date
(semi-optional)

...

contact_information

(mandatory)

...

source

(mandatory)

...

competitors_set

(optional)

...

users_set

(optional)

...

services_set

(optional)

...

A list of services for which the lead was taken for

...

physical_goods_set

(optional)

...

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

...

fields_set

(optional)

...

Restrictions

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

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: POST

 

Request:   http://host_name/crmapi/rest/v2/leads/create

Body:

Code Block
languagejs
{
	"token" : "6DACB1A17F5B87C53729C52EB3C365F3",
	"contact_email" : "webapi2@test.com",
	"contact_information" : 
		{ 
			"action" : "new",
			"type" : "PERSON",
			"first_name" : "Filippos",
			"last_name" : "Constantinou",
			"demographics" : {
				"gender" : "FEMALE",
				"id_number" : "121212"
			}
		},
	"probability_to_win" : 58,
	"importance" : "IMPORTANCE2",
	"priority" : 3,
	"type_identifier" : { "name" : "Software Purchase"},
	"target_amount" : 58,
	"status_identifier" : { "name" : "Reach"},
	"category_identifier" : { "name" : "Software Purchase"},
	"owned_by_group_identifier" : { "name" : "CSR Group"},
	"udf_string_5" : "udf_string_5",
	"start_date" : "2015-02-20T17:28:30",
    	"estimated_completion_time" :
        {
            "time_period_value"   : 3,
            "time_period_uot" : "WEEKS"
        },
   	 "assigned_to" :
        {
            "user_identifier" : { "username" : "mpadministrator"}
        },	
	"source" : {
		"type" : "COMMUNICATIONS",
		"source_communications_identifier" : { "number" : "204"}
		},
	"users_set": [
		{
			"user_identifier" : { "username" : "mariosmtest"}
		},
		{
			"user_identifier" : { "id" : "018CA08BC267612F6206D85011FFC5D1"}
		}
	],
	"services_set": [
		{
			"product_identifier" : { "alternative_code" : "SOFA"}
		},
		{
			"product_identifier" : { "code" : "Adult- Only for Additional"}
		}
	],
	"competitors_set" : [
		{
			"competitor_identifier" : { "name" : "Competitor 4"}
		},
		{
			"competitor_identifier" : { "id" : "C671ED66046243565DE5B6B4A1AB5835"}
		}
	],
}

 

Response:

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       {
           "actual_completion_date": null,
           "services_set":
           [
               {
                   "product_type": null,
                   "id": "4F8DD6FB68E24919A5F8815E7AFD7C33",
                   "product":
                   {
                       "product_type":
                       {
                           "physical_good_type": null,
                           "service_type": "TERMED",
                           "used_for_provisioning": true,
                           "composition_method": "FLAT",
                           "classification": "SERVICES",
                           "name": "Subscription Packages",
                           "id": "BC954969D3172372D498D3BB2BA590A0",
                           "description": "Subscription main packages",
                           "alternative_code": "SP"
                       },
                       "id": "3FACF409E7E091F96C52318BAD1AEF1C",
                       "description": "Local + Documentaries + Sport",
                       "code": "Local + Documentaries + Sport",
                       "alternative_code": "LDS"
                   }
               },
               {
                   "product_type":
                   {
                       "physical_good_type": null,
                       "service_type": "TERMED",
                       "used_for_provisioning": true,
                       "composition_method": "FLAT",
                       "classification": "SERVICES",
                       "name": "Subscription Packages",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "C51688C39E7846319B668558F9726FDB",
                   "product": null
               }
           ],
           "target_amount": null,
           "udf_float_1": null,
           "udf_float_2": null,
           "udf_float_3": null,
           "number": "69",
           "udf_float_4": null,
           "competitors_set":
           [
               {
                   "id": "C6B7D2D0F81545D6B886B19D67B0C6EE",
                   "competitor":
                   {
                       "website": "www.competitor1.com",
                       "name": "Competitor 1",
                       "id": "C671ED66046243565DE5B6B4A1AB5835",
                       "description": null
                   }
               },
               {
                   "id": "73F11E40288445F7AB347E11A66ED97D",
                   "competitor":
                   {
                       "website": "www.competitor4.com",
                       "name": "Competitor 4",
                       "id": "4DC59EB406F3C3DFDFAD46AF213BFC97",
                       "description": null
                   }
               }
           ],
           "udf_string_1": null,
           "udf_string_2": null,
           "assigned_to":
           {
               "unit":
               {
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "user":
               {
                   "person_name": "Marios Lannister",
                   "username": "mpadministrator",
                   "id": "1",
                   "email": "mp@ministrator.com"
               }
           },
           "estimated_completion_time":
           {
               "time_period_value": 3,
               "time_period_uot": "WEEKS"
           },
           "udf_string_3": null,
           "contact_information":
           {
               "last_name": "Constantinou",
               "life_cycle_state": "MARKETING",
               "middle_name": null,
               "company_profile": null,
               "title": null,
               "type": "PERSON",
               "first_name": "Filippos",
               "name": "Filippos Constantinou",
               "id": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
               "company_name": null,
               "demographics":
               {
                   "gender": "FEMALE",
                   "passport_issued_by_country": null,
                   "passport_number": null,
                   "social_security_number": null,
                   "country_of_residence":
                   {
                       "name": "UNITED KINGDOM",
                       "id": "126"
                   },
                   "industry_sector": null,
                   "date_of_birth":
                   {
                       "month": null,
                       "day": null,
                       "year": null
                   },
                   "name_day":
                   {
                       "month": null,
                       "day": null
                   },
                   "id_number": "121212",
                   "id_issued_by_country": null,
                   "industry": null
               }
           },
           "privacy_level": null,
           "udf_string_4": null,
           "udf_string_5": "udf_string_5",
           "udf_string_6": null,
           "physical_goods_set":
           [
           ],
           "udf_string_7": null,
           "udf_string_8": null,
           "accounts_receivable": null,
           "id": "DCD9A08C2A4C421EA00FCF84D0974CCA",
           "lead_source":
           {
               "communication":
               {
                   "life_cycle_state": "DRAFT",
                   "number": "204",
                   "id": "0316F16B0700688BCF97CCC9661F4141",
                   "contact_information":
                   {
                       "last_name": "Messi",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "Andres",
                       "company_profile": null,
                       "title": "Mr",
                       "type": "PERSON",
                       "first_name": "Lionel",
                       "name": null,
                       "id": "0A910B939D30FFC942ECCE4082AF42F8",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_number": "4321",
                           "social_security_number": "12345",
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 6,
                               "day": 24,
                               "year": 1987
                           },
                           "name_day":
                           {
                               "month": 4,
                               "day": 2
                           },
                           "id_number": "1234",
                           "industry": null
                       }
                   }
               },
               "type": "COMMUNICATIONS"
           },
           "probability_to_win": null,
           "priority": 3,
           "udf_date_1": null,
           "udf_date_2": null,
           "udf_date_3": null,
           "expected_completion_date": "2015-03-13T17:28:30",
           "udf_date_4": null,
           "start_date": "2015-02-20T17:28:30",
           "users_set":
           [
               {
                   "id": "61CC6B0B140149A1A4AD7C57BC2A8FEE",
                   "user":
                   {
                       "person_name": "mm mm",
                       "username": "mariosmtest",
                       "id": "C2730E7C873AB4F5425218BA01378251",
                       "email": null
                   }
               },
               {
                   "id": "97A4844D6A374542AA4BAB46AF599D10",
                   "user":
                   {
                       "person_name": "Super Visor",
                       "username": "supervisor",
                       "id": "018CA08BC267612F6206D85011FFC5D1",
                       "email": "super@visor.com"
                   }
               }
           ],
           "time_overdue":
           {
               "time_period_value": 3,
               "time_period_uot": "DAYS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "owned_by_group":
           {
               "community_name": "CSR Community",
               "name": "CSR Group",
               "id": "9F53AE96144CB2F358C38BADE9E2F470",
               "description": null,
               "alternative_code": "CSR"
           },
           "log_information":
           {
               "updated_date": "2015-03-16T14:32:25",
               "created_by_unit":
               {
                   "community_name": "Main Community",
                   "group_name": "Main Group",
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "created_date": "2015-03-16T14:32:14",
               "updated_by_unit":
               {
                   "community_name": "Main Community",
                   "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"
               },
               "updated_by_user":
               {
                   "person_name": "Marios Lannister",
                   "username": "mpadministrator",
                   "id": "1"
               }
           },
           "status":
           {
               "name": "Reach",
               "id": "5DA88E4C781244C2CDB0F4F57E2EE875",
               "description": null,
               "alternative_code": "R"
           },
           "importance": "IMPORTANCE2",
           "life_cycle_state": "PENDING",
           "type":
           {
               "name": "Software Purchase",
               "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
               "description": null,
               "alternative_code": "SP"
           },
           "description": null,
           "contact_email": "webapi2@test.com",
           "category":
           {
               "name": "Software Purchase",
               "id": "C60F332D0B4CB8DD22A0159413951434",
               "description": null,
               "code": "SP"
           },
           "lost_reason": null
       }
}
          

POST leads/update

This method updates leads. A single lead can be updated by each call and only if it is not with status Won or Lost. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

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

...

contact_email

(optional)

...

contact_phone

(optional)

...

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

Tip

Available from CRM.COM R11.1.0

...

description

(optional)

...

probability_to_win

(optional)

...

importance

(optional)

...

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)

...

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)

...

status_identifier

(optional)

...

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

...

lost_reason_identifier

(mandatory on conditions)

...

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:

...

Tip

Deprecated from CRM.COM R11.1.0

...

billing_address_identifier

(mandatory on conditions)

...

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:

...

Tip

Deprecated from CRM.COM R11.1.0.

...

category_identifier

(optional)

...

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

...

owned_by_group_identifier
(optional)

...

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

...

privacy_level_identifier
(optional)

...

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

...

udf_string_1 

(optional)

...

User Defined Field of type String

...

udf_string_2 

(optional)

...

User Defined Field of type String

...

udf_string_3 

(optional)

...

User Defined Field of type String

...

udf_string_4 

(optional)

...

User Defined Field of type String

...

udf_string_5

(optional)

...

User Defined Field of type String

...

udf_string_6 

(optional)

...

User Defined Field of type String

...

udf_string_7

(optional)

...

User Defined Field of type String

...

udf_string_8

(optional)

...

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)

...

expected_completion_date
(optional)

...

source

(optional)

...

competitors_set

(optional)

...

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

...

users_set

(optional)

...

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

...

services_set

(optional)

...

A list of services for which the lead was taken for

...

physical_goods_set

(optional)

...

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

...

fields_set

(optional)

...

Restrictions

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

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: POST

 

Request: http://host_name/crmapi/rest/v2/leads/update

Body:

Code Block
languagejs
{
    "token" : "21770F5513004B85AD43AE54A02024B4",
    "lead_identifier" : {"number" : "69"},
    "status_identifier" : { "name" : "Won"},
    "billing_address_identifier" : { "TYPE" : "HOME"},
    "competitors_set" :
    [
        {
            "action" : "add",
            "competitor_identifier" : { "name" : "Competitor 2"}
        },
        {
            "action" : "remove",
            "lead_competitor_identifier" : { "competitor_identifier" : { "name" : "Competitor 1"} }
        }
    ]
}

 

Response:

Code Block
languagejs
    {
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       {
           "actual_completion_date": null,
           "services_set":
           [
               {
                   "product_type": null,
                   "id": "4F8DD6FB68E24919A5F8815E7AFD7C33",
                   "product":
                   {
                       "product_type":
                       {
                           "physical_good_type": null,
                           "service_type": "TERMED",
                           "used_for_provisioning": true,
                           "composition_method": "FLAT",
                           "classification": "SERVICES",
                           "name": "Subscription Packages",
                           "id": "BC954969D3172372D498D3BB2BA590A0",
                           "description": "Subscription main packages",
                           "alternative_code": "SP"
                       },
                       "id": "3FACF409E7E091F96C52318BAD1AEF1C",
                       "description": "Local + Documentaries + Sport",
                       "code": "Local + Documentaries + Sport",
                       "alternative_code": "LDS"
                   }
               },
               {
                   "product_type":
                   {
                       "physical_good_type": null,
                       "service_type": "TERMED",
                       "used_for_provisioning": true,
                       "composition_method": "FLAT",
                       "classification": "SERVICES",
                       "name": "Subscription Packages",
                       "id": "BC954969D3172372D498D3BB2BA590A0",
                       "description": "Subscription main packages",
                       "alternative_code": "SP"
                   },
                   "id": "C51688C39E7846319B668558F9726FDB",
                   "product": null
               }
           ],
           "target_amount": null,
           "udf_float_1": null,
           "udf_float_2": null,
           "udf_float_3": null,
           "number": "69",
           "udf_float_4": null,
           "competitors_set":
           [
               {
                   "id": "53D75E068A874C1E88FCDDDE6339377C",
                   "competitor":
                   {
                       "website": "www.competitor2.com",
                       "name": "Competitor 2",
                       "id": "F868B1EFFFB42A5232186348362A5C91",
                       "description": null
                   }
               },
               {
                   "id": "C6B7D2D0F81545D6B886B19D67B0C6EE",
                   "competitor":
                   {
                       "website": "www.competitor1.com",
                       "name": "Competitor 1",
                       "id": "C671ED66046243565DE5B6B4A1AB5835",
                       "description": null
                   }
               },
               {
                   "id": "73F11E40288445F7AB347E11A66ED97D",
                   "competitor":
                   {
                       "website": "www.competitor4.com",
                       "name": "Competitor 4",
                       "id": "4DC59EB406F3C3DFDFAD46AF213BFC97",
                       "description": null
                   }
               }
           ],
           "udf_string_1": null,
           "udf_string_2": null,
           "assigned_to":
           {
               "unit":
               {
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "user":
               {
                   "person_name": "mpadministrator",
                   "username": "mpadministrator",
                   "id": "1"
               }
           },
           "estimated_completion_time":
           {
               "time_period_value": 3,
               "time_period_uot": "WEEKS"
           },
           "udf_string_3": null,
           "contact_information":
           {
               "last_name": "Constantinou",
               "life_cycle_state": "FINANCIAL",
               "middle_name": null,
               "company_profile": null,
               "title": null,
               "type": "PERSON",
               "first_name": "Filippos",
               "name": "Filippos Constantinou",
               "id": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
               "company_name": null,
               "demographics":
               {
                   "gender": "FEMALE",
                   "passport_issued_by_country": null,
                   "passport_number": null,
                   "social_security_number": null,
                   "industry_sector": null,
                   "date_of_birth":
                   {
                       "month": null,
                       "day": null,
                       "year": null
                   },
                   "name_day":
                   {
                       "month": null,
                       "day": null
                   },
                   "id_number": "121212",
                   "id_issued_by_country": null,
                   "industry": null
               }
           },
           "privacy_level": null,
           "udf_string_4": null,
           "udf_string_5": "udf_string_5",
           "udf_string_6": null,
           "physical_goods_set":
           [
           ],
           "udf_string_7": null,
           "udf_string_8": null,
           "accounts_receivable":
           {
               "account_owner":
               {
                   "last_name": "Constantinou",
                   "life_cycle_state": "FINANCIAL",
                   "middle_name": null,
                   "company_profile": null,
                   "title": null,
                   "type": "PERSON",
                   "first_name": "Filippos",
                   "name": "Filippos Constantinou",
                   "id": "829CA6CAFFAB434C9E1B3FB72BE3DAB1",
                   "company_name": null,
                   "demographics":
                   {
                       "gender": "FEMALE",
                       "passport_issued_by_country": null,
                       "passport_number": null,
                       "social_security_number": null,
                       "industry_sector": null,
                       "date_of_birth":
                       {
                           "month": null,
                           "day": null,
                           "year": null
                       },
                       "name_day":
                       {
                           "month": null,
                           "day": null
                       },
                       "id_number": "121212",
                       "id_issued_by_country": null,
                       "industry": null
                   }
               },
               "life_cycle_state": "ACTIVE",
               "number": "567",
               "name": "Filippos Constantinou",
               "id": "02BE7465096C47F6B237E2D27F84C06B"
           },
           "id": "DCD9A08C2A4C421EA00FCF84D0974CCA",
           "lead_source":
           {
               "communication":
               {
                   "life_cycle_state": "DRAFT",
                   "number": "204",
                   "id": "0316F16B0700688BCF97CCC9661F4141",
                   "contact_information":
                   {
                       "last_name": "Messi",
                       "life_cycle_state": "FINANCIAL",
                       "middle_name": "Andres",
                       "company_profile": null,
                       "title": "Mr",
                       "type": "PERSON",
                       "first_name": "Lionel",
                       "name": null,
                       "id": "0A910B939D30FFC942ECCE4082AF42F8",
                       "company_name": null,
                       "demographics":
                       {
                           "gender": "MALE",
                           "passport_number": "4321",
                           "social_security_number": "12345",
                           "industry_sector": null,
                           "date_of_birth":
                           {
                               "month": 6,
                               "day": 24,
                               "year": 1987
                           },
                           "name_day":
                           {
                               "month": 4,
                               "day": 2
                           },
                           "id_number": "1234",
                           "industry": null
                       }
                   }
               },
               "type": "COMMUNICATIONS"
           },
           "probability_to_win": null,
           "priority": 3,
           "udf_date_1": null,
           "udf_date_2": null,
           "udf_date_3": null,
           "expected_completion_date": "2015-03-13T17:28:30",
           "udf_date_4": null,
           "start_date": "2015-02-20T17:28:30",
           "users_set":
           [
               {
                   "id": "61CC6B0B140149A1A4AD7C57BC2A8FEE",
                   "user":
                   {
                       "person_name": "mariosmtest",
                       "username": "mariosmtest",
                       "id": "C2730E7C873AB4F5425218BA01378251",
                       "email": null
                   }
               },
               {
                   "id": "97A4844D6A374542AA4BAB46AF599D10",
                   "user":
                   {
                       "person_name": "supervisor",
                       "username": "supervisor",
                       "id": "018CA08BC267612F6206D85011FFC5D1",
                       "email": "super@visor.com"
                   }
               }
           ],
           "time_overdue":
           {
               "time_period_value": 3,
               "time_period_uot": "DAYS"
           },
           "time_to_completion":
           {
               "time_period_value": null,
               "time_period_uot": null
           },
           "owned_by_group":
           {
               "name": "CSR Group",
               "id": "9F53AE96144CB2F358C38BADE9E2F470",
               "description": null,
               "alternative_code": "CSR"
           },
           "log_information":
           {
               "updated_date": "2015-03-16T14:40:54",
               "created_by_unit":
               {
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "created_date": "2015-03-16T14:32:14",
               "updated_by_unit":
               {
                   "community_name": "Main Community",
                   "group_name": "Main Group",
                   "name": "Admin Unit",
                   "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                   "description": "r1",
                   "alternative_code": "MG"
               },
               "created_by_user":
               {
                   "person_name": "mpadministrator",
                   "username": "mpadministrator",
                   "id": "1"
               },
               "updated_by_user":
               {
                   "person_name": "Marios Lannister",
                   "username": "mpadministrator",
                   "id": "1"
               }
           },
           "status":
           {
               "name": "Won",
               "id": "CE3D8565F49E82F5B7F3BB62C43A1B06",
               "description": null,
               "alternative_code": "WON"
           },
           "importance": "IMPORTANCE2",
           "life_cycle_state": "WON",
           "type":
           {
               "name": "Software Purchase",
               "id": "F60FFE7AAD3F5B9B6E66A42266FA37C4",
               "description": null,
               "alternative_code": "SP"
           },
           "description": null,
           "contact_email": "webapi2@test.com",
           "category":
           {
               "name": "Software Purchase",
               "id": "C60F332D0B4CB8DD22A0159413951434",
               "description": null,
               "code": "SP"
           },
           "lost_reason": null
       }
    }

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

Resource URL

Parameters

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

lead_identifier

(mandatory)

...

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

...

status_identifier

(optional)

...

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:

...

fields_set

(optional)

...

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

...

Examples

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

Resource

Parameters

...

String

...

The token retrieved from the login method

...

lead_identifier

(mandatory)

...

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

...

status_identifier

(optional)

...

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:

...

fields_set

(optional)

...

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

...

Examples

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

Resource

Parameters

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

lead_identifier

(mandatory)

...

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

...

status_identifier

(optional)

...

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:

...

accounts_receivable

(mandatory on conditions)

...

fields_set

(optional)

...

List of Strings, comma separated

...

Restrictions

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

Response Data

...

Examples

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

Resource

Parameters

...

lead_identifier

(mandatory)

...

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

...

status_identifier

(optional)

...

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:

...

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:

...

fields_set

(optional)

...

List of Strings, comma separated

...

Restrictions

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

Response Data

...

Examples

HTTP Method: POST

 

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

Body:

Expand
titleExample 1
Code Block
 {
 "token":"{{token}}",
"lead_identifier":{"number":"44"},
"lost_reason_identifier":{"name":"Competitors"}
}

 

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-02T09:55:51", "updated_date": "2016-11-02T10:19:23", "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": "44", "udf_float_3": null, "udf_float_4": null, "estimated_completion_time": { "time_period_uot": "MONTHS", "time_period_value": 1 }, "probability_to_win": null, "id": "F6D8886624974A0BBA71679B1F3BC251", "udf_float_1": null, "udf_float_2": null, "start_date": "2016-11-02T09:55:51", "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": "LOST", "priority": 1, "time_to_completion": { "time_period_uot": "MONTHS", "time_period_value": 1 }, "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-12-02T09:55:51", "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": "" } } Panel
nameblue

Child pages (Children Display)
excerpttrue