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
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
token | String | The token retrieved from the login method | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
period | Number | The length of time for which a lead is close to estimated completion | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uot | String | The unit of time. The supported values are the following: MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contact_information_identifier (optional) | Contact Information Identifier | The identifier of the contact information for which the Lead was created. The allowed contact information identifier fields are the following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accounts_receivable_identifier (optional) | Accounts receivable identifier | The identifier of the accounts receivable with which the lead is related to. The allowed accounts receivable identifier fields are the following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type_identifier | Lead type identifier | The identifier of the lead type related with the leads that should be returned as a result. The allowed lead type identifier fields are the following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
category_identifier (optional) | Lead category identifier | The identifier of the category related with the leads that should be returned as a result. The allowed lead category identifier fields are the following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
source_identifier (semi-optional) | Lead source identifier | The identifier of the source lead. The allowed lead source identifier fields are the following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
importance (optional) | Lead Importance | The importance related with the leads that should be returned as a result. The allowed lead importance fields are the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2, CUSTOM3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
priority (optional) | Lead Priority | The priority related with the leads that should be returned as a result. The allowed lead priority fields are the following: 1, 2, 3, 4, 5, 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
number_of_results (optional) | Number | The number of results that can be retrieved through each call Available from CRM.COM R13.0.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
offset (optional) | Number | 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 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
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved lead |
number | String | The number of the retrieved lead |
contact_email | String | The email address of the contact as specified on the retrieved lead |
contact_phone | String | The phone of the contact as specified on the retrieved lead Available from CRM.COM R11.1.0 |
description | String | The description of the retrieved lead |
life_cycle_state | String | The life cycle state of the retrieved lead which can be PENDING, IN_PROGRESS, LOST, WON, CANCELLED CANCELLED life cycle state available from CRM.COM R11.1.0 |
probability_to_win | Number | The probability to win the retrieved lead which can vary from 0 to 100 |
importance | String | The importance of the retrieved lead, which can be one of the following: IMPORTANCE1, IMPORTANCE2, IMPORTANCE3, IMPORTANCE4, IMPORTANCE5, CUSTOM1, CUSTOM2 , CUSTOM3 |
priority | String | The priority level of the retrieved lead, which can be one of the following: 1, 2, 3, 4, 5, 6 |
target_amount | Number | The amount that is predicted to be gained when winning the retrieved lead |
start_date | Date | The date that the lead is created |
expected_completion_date | Date | The date that the lead is expected to be completed |
actual_completion_date | Date | The date that the lead is actually completed |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
lead_source | Lead Source Object | The source related with the specified lead and lead source type |
Accounts Receivable object | The accounts receivable related with the specified lead | |
contact_information | Contact Information object | The contact information related with the specified lead |
lead_owner | User object | The user who owns the specified lead Available from CRM.COM R15.0.0 |
assigned_to | Assign Object | The assignment information of the retrieved lead |
type | Lead type object | The type information of the retrieved lead |
status | Lead Status object | The status information of the retrieved lead |
lost_reason | Lead Lost Reason Object | The reason that the Lead was lost. |
category | Lead Category object | The category of the retrieved lead |
estimated_completion_time | Time Period Object | The time that is estimated to complete the lead, measured in minutes, hours, days, weeks, years |
time_to_completion | Time Period Object | The time that is left up to the expected completion date |
time_overdue | Time Period Object | The time past the expected completion date |
owned_by_group | Group object | The group that is owning the lead Deprecated from CRM.COM R18.0.0 (replaced with owned_by_business_unit) |
owned_by_business_unit | Business Unit Object | The business unit that is owning the lead Available from CRM.COM R18.0.0 |
privacy_level | Privacy level object | The privacy level of the lead Deprecated from CRM.COM R18.0.0 |
Log Information Object | The log information related with the retrieved lead | |
competitors_set | Set of Lead Competitor Objects | A lists of all possible competitors that can reach the same Lead for the same product/goal. From CRM.COM R18.0.0, competitors are referring to company contact information |
users_set | Set of Lead Users | A list of Users that are set as the team involved with the lead |
products_set | Set of Lead Products Objects | A list of products for which the lead was taken for Available from CRM.COM R14 Up to CRM.COM R17.0.0, products refer only to physical goods and services |
Subscription Package Object | The subscription packages for which the retrieved lead was taken for Available from CRM.COM R14 Deprecated from CRM.COM R18.0.0 |
Referred Objects Response Data