| Name |
Type |
Description |
Notes |
| owner |
String |
The lead's owner. |
[optional] |
| lead_source |
String |
The lead's source. |
[optional] |
| title |
String |
The lead's title. |
[optional] |
| company |
String |
The lead's company. |
[optional] |
| first_name |
String |
The lead's first name. |
[optional] |
| last_name |
String |
The lead's last name. |
[optional] |
| addresses |
Array<Address> |
|
[optional][readonly] |
| email_addresses |
Array<EmailAddress> |
|
[optional][readonly] |
| phone_numbers |
Array<PhoneNumber> |
|
[optional][readonly] |
| remote_updated_at |
Time |
When the third party's lead was updated. |
[optional] |
| remote_created_at |
Time |
When the third party's lead was created. |
[optional] |
| converted_date |
Time |
When the lead was converted. |
[optional] |
| converted_contact |
String |
The contact of the converted lead. |
[optional] |
| converted_account |
String |
The account of the converted lead. |
[optional] |
| remote_was_deleted |
Boolean |
|
[optional][readonly] |
| id |
String |
|
[optional][readonly] |
| remote_id |
String |
The third-party API ID of the matching object. |
[optional] |
| modified_at |
Time |
This is the datetime that this object was last updated by Merge |
[optional][readonly] |
| field_mappings |
Hash<String, AnyType> |
|
[optional][readonly] |
| remote_data |
Array<RemoteData> |
|
[optional][readonly] |
| remote_fields |
Array<RemoteField> |
|
[optional][readonly] |
require 'merge_crm_client'
instance = MergeCRMClient::Lead.new(
owner: 0358cbc6-2040-430a-848e-aafacbadf3aa,
lead_source: API Blogger,
title: Co-Founder,
company: Merge API,
first_name: Gil,
last_name: Feig,
addresses: [{"street_1":"50 Bowling Green Dr","street_2":"Golden Gate Park","city":"San Francisco","state":"CA","postal_code":"94122","country":"US","address_type":"Shipping"}],
email_addresses: [{"email_address":"hello@merge.dev","email_address_type":"Work"}],
phone_numbers: [{"phone_number":"+16789932455","phone_number_type":"Mobile"}],
remote_updated_at: 2022-02-10T00:00Z,
remote_created_at: 2021-11-10T00:00Z,
converted_date: 2022-03-10T00:00Z,
converted_contact: null,
converted_account: 9c9de072-29cf-48e3-9578-1ca5b145b40e,
remote_was_deleted: null,
id: null,
remote_id: 19202938,
modified_at: 2021-10-16T00:00Z,
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
remote_data: [{"path":"/leads","data":["Varies by platform"]}],
remote_fields: null
)