object
(JsonLead)
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
version | string |
Required | cannot be null | JsonLead |
client | object |
Required | cannot be null | JsonLead |
sales_lead | object |
Optional | cannot be null | JsonLead |
appraisal_lead | object |
Optional | cannot be null | JsonLead |
Version of the JSONLead schema
version
string
string
constant: the value of this property must be equal to:
"1.0.0"
The client object
client
object
(Client)
The sales lead.
sales_lead
object
(Sales lead)object
(Sales lead)
The appraisallead
appraisal_lead
object
(Appraisal lead)object
(Appraisal lead)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/client"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
foreign_id | string |
Optional | cannot be null | JsonLead |
first_name | string |
Optional | cannot be null | JsonLead |
last_name | string |
Optional | cannot be null | JsonLead |
gdpr_consents | object |
Optional | cannot be null | JsonLead |
province | string |
Optional | cannot be null | JsonLead |
postal_code | string |
Optional | cannot be null | JsonLead |
phone | Merged | Optional | cannot be null | JsonLead |
Merged | Optional | cannot be null | JsonLead | |
custom | object |
Optional | cannot be null | JsonLead |
A unique identifier that originates from an external database or system. It is meant to cross-reference the client on the destination database with the external system.
foreign_id
string
string
The first name of the client
first_name
string
string
The last name of the client
last_name
string
string
gdpr_consents
object
(GDPR Consents)object
(GDPR Consents)
The province of the client
province
string
string
The postal code of the client
postal_code
string
string
phone
merged type (Details)
one (and only one) of
email
merged type (Details)
one (and only one) of
Custom fields for the client
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/sales_lead"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
foreign_id | string |
Optional | cannot be null | JsonLead |
assigned_to | string |
Optional | cannot be null | JsonLead |
status | string |
Optional | cannot be null | JsonLead |
car | object |
Optional | cannot be null | JsonLead |
origin | object |
Optional | cannot be null | JsonLead |
type | string |
Optional | cannot be null | JsonLead |
dealer_location | string |
Optional | cannot be null | JsonLead |
inquiry | string |
Optional | cannot be null | JsonLead |
task | object |
Optional | cannot be null | JsonLead |
offer | object |
Optional | cannot be null | JsonLead |
appointment | object |
Optional | cannot be null | JsonLead |
comment | string |
Optional | cannot be null | JsonLead |
related_urls | array |
Optional | cannot be null | JsonLead |
custom | object |
Optional | cannot be null | JsonLead |
A unique identifier that originates from an external database or system. It is meant to cross-reference the sales lead on the destination database with the external system.
foreign_id
string
string
The user assigned to the sale
assigned_to
string
string
The sales lead status
status
string
string
The car associated with this sale
car
object
(Car)
The car associated with this sale
origin
object
(Origin)
The type of the lead
type
string
string
The location of the sale
dealer_location
string
string
The sale inquiry
inquiry
string
string
A task object to associate with the sale
task
object
(Task)
An offer object to associate with the sale
offer
object
(Offer)
An appointment object to associate with the sale
appointment
object
(Appointment)object
(Appointment)
The comment contents
comment
string
string
An array of URLs with information related to the sale
related_urls
string[]
string[]
Custom fields for the sale
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/appraisal_lead"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
foreign_id | string |
Optional | cannot be null | JsonLead |
assigned_to | string |
Optional | cannot be null | JsonLead |
status | string |
Optional | cannot be null | JsonLead |
car | object |
Optional | cannot be null | JsonLead |
origin | object |
Optional | cannot be null | JsonLead |
type | string |
Optional | cannot be null | JsonLead |
dealer_location | string |
Optional | cannot be null | JsonLead |
appraisal_value | number |
Optional | cannot be null | JsonLead |
task | object |
Optional | cannot be null | JsonLead |
offer | object |
Optional | cannot be null | JsonLead |
appointment | object |
Optional | cannot be null | JsonLead |
comment | string |
Optional | cannot be null | JsonLead |
related_urls | array |
Optional | cannot be null | JsonLead |
custom | object |
Optional | cannot be null | JsonLead |
A unique identifier that originates from an external database or system. It is meant to cross-reference the appraisal lead on the destination database with the external system.
foreign_id
string
string
The username assigned to the appraisal
assigned_to
string
string
The appraisal state
status
string
string
The car associated with this appraisal
car
object
(Car)
The car associated with this appraisal
origin
object
(Origin)
The type of the lead
type
string
string
The location of the appraisal
dealer_location
string
string
The appraised value for the car
appraisal_value
number
number
A task object to associate with the appraisal
task
object
(Task)
An offer object to associate with the sale
offer
object
(Offer)
An appointment object to associate with the appraisal
appointment
object
(Appointment)object
(Appointment)
The comment contents
comment
string
string
An array of URLs with information related to the appraisal
related_urls
string[]
string[]
Custom fields for the appraisal
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/car"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Optional | cannot be null | JsonLead |
category | string |
Optional | cannot be null | JsonLead |
stock_id | string |
Optional | cannot be null | JsonLead |
body_style | string |
Optional | cannot be null | JsonLead |
make | string |
Optional | cannot be null | JsonLead |
model | string |
Optional | cannot be null | JsonLead |
version | string |
Optional | cannot be null | JsonLead |
year | number |
Optional | cannot be null | JsonLead |
month | number |
Optional | cannot be null | JsonLead |
price | number |
Optional | cannot be null | JsonLead |
license_plate | string |
Optional | cannot be null | JsonLead |
mileage | number |
Optional | cannot be null | JsonLead |
doors | number |
Optional | cannot be null | JsonLead |
warraty_months | number |
Optional | cannot be null | JsonLead |
vin | string |
Optional | cannot be null | JsonLead |
fuel | string |
Optional | cannot be null | JsonLead |
transmission | string |
Optional | cannot be null | JsonLead |
horsepower | number |
Optional | cannot be null | JsonLead |
color | string |
Optional | cannot be null | JsonLead |
url | string |
Optional | cannot be null | JsonLead |
image_urls | array |
Optional | cannot be null | JsonLead |
engine_size | number |
Optional | cannot be null | JsonLead |
equipment | string |
Optional | cannot be null | JsonLead |
Type
type
string
string
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"new" |
|
"used" |
The vehicle category
category
string
string
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"car" |
|
"motorcycle" |
|
"industrial" |
An unique identifier for the car
stock_id
string
string
Body type
body_style
string
string
Make
make
string
string
Model
model
string
string
version
string
string
Fabrication year
year
number
number
minimum: the value of this number must greater than or equal to: 0
Fabrication month
month
number
number
minimum: the value of this number must greater than or equal to: 0
Price
price
number
number
License place
license_plate
string
string
Mileage
mileage
number
number
minimum: the value of this number must greater than or equal to: 0
Number of doors
doors
number
number
minimum: the value of this number must greater than or equal to: 0
Duration of the warranty in months
warraty_months
number
number
minimum: the value of this number must greater than or equal to: 0
Vehicle Identification Number
vin
string
string
Fuel Type
fuel
string
string
Transmission Type
transmission
string
string
Horsepower
horsepower
number
number
minimum: the value of this number must greater than or equal to: 0
Color
color
string
string
Car publication URL
url
string
string
URI: the string must be a URI, according to RFC 3986
Car's images' URLs
image_urls
string[]
string[]
Engine volume (cc3)
engine_size
number
number
Extras
equipment
string
string
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/origin"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
source | string |
Optional | cannot be null | JsonLead |
medium | string |
Optional | cannot be null | JsonLead |
campaign | string |
Optional | cannot be null | JsonLead |
The source of the lead
source
string
string
The medium of the lead
medium
string
string
The campaign of the lead
campaign
string
string
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/task"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
due_date | string |
Optional | cannot be null | JsonLead |
assigned_to | string |
Optional | cannot be null | JsonLead |
description | string |
Optional | cannot be null | JsonLead |
custom | object |
Optional | cannot be null | JsonLead |
The due date of the task
due_date
string
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The user assigned to this task
assigned_to
string
string
The task description
description
string
string
Custom fields for the task
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/offer"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
amount | number |
Optional | cannot be null | JsonLead |
description | string |
Optional | cannot be null | JsonLead |
date | string |
Optional | cannot be null | JsonLead |
type | string |
Optional | cannot be null | JsonLead |
custom | object |
Optional | cannot be null | JsonLead |
The offered amount, in the local currency
amount
number
number
The description of the offer
description
string
string
The creation date of the offer
date
string
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The type of the offer
type
string
string
Custom fields for the appointment
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/appointment"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
foreign_id | string |
Optional | cannot be null | JsonLead |
due_date | string |
Optional | cannot be null | JsonLead |
assigned_to | string |
Optional | cannot be null | JsonLead |
custom | object |
Optional | cannot be null | JsonLead |
A unique identifier that originates from an external database or system. It is meant to cross-reference the appointment on the destination database with the external system.
foreign_id
string
string
The date of the appointment
due_date
string
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The user assigned to the appointment
assigned_to
string
string
Custom fields for the appointment
custom
object
(Details)
Reference this group by using
{"$ref":"https://raw.githubusercontent.com/JSONLead/jsonlead/master/schemas/jsonlead_v2.schema.json#/definitions/comment"}
Property | Type | Required | Nullable | Defined by |
---|