This API allows for companies, properties, contacts, and the opportunity info to automatically transfer into Centerpoint Connect.
Endpoint
POST https://app.centerpointconnect.com/a/leads
Authentication
Pass your jwt token into the Authorization header Autorization: Bearer {token}
Or pass the token as a request parameter https://.../leads?token={token}
Body Format
This endpoint roughly mimics the JSONAPI spec, albeit simplified, and will accept one Lead object. A Lead is an object with type: "leads" and contains a relationships object with at least a company object. It may also contain property, contact, and an opportunity objects.
Example:
{
"data": {
"type": "leads",
"company": {
"name": "Company Name",
"externalId": "C123",
...
},
"property": {
"name": "Property Name",
...
},
"contact": {
"name": "John Doe",
...
},
opportunity: {
"price": 2000,
...
}
}
}
Company
|
Field |
Type |
Required |
Default |
Description |
|
|
string |
Yes |
- |
Name of the Company - Will be used to check for duplicates. |
|
|
string |
- |
- |
External Company ID - Will be used to check for duplicates. |
|
|
boolean |
- |
|
If |
|
|
string |
- |
- |
Street Address |
|
|
string |
- |
- |
City |
|
|
string |
- |
- |
Two-letter state code, e.g. "IL" |
|
|
string |
- |
- |
Postal Code |
|
|
string |
- |
- |
County |
|
|
string |
- |
Account Timezone |
Timezone Identifier, e.g. "America/Chicago" |
|
|
string |
- |
- |
Name of an Employee in your Account |
|
|
string |
- |
- |
Full Billing Address (if different then above) - Separate lines by newline characters. e.g. "Mary Manager\n123 Main St.\nChicago, IL 60000" |
|
|
string |
- |
- |
Internal billing instructions |
|
|
object |
- |
- |
An object that contains custom field values. The keys should be the label of the Custom fields. e.g. { "Company Size": "1 Million" } |
Property
|
Field |
Type |
Required |
Default |
Description |
|
|
string |
Yes |
- |
Name of the Property |
|
|
string |
- |
- |
External Building ID |
|
|
string |
- |
- |
Street Address |
|
|
string |
- |
- |
City |
|
|
string |
- |
- |
Two-letter state code, e.g. "IL" |
|
|
string |
- |
- |
Postal Code |
|
|
string |
- |
- |
County |
|
|
string |
- |
Company Timezone |
Timezone Identifier, e.g. "America/Chicago" |
|
|
object |
- |
- |
An object that contains custom field values. The keys should be the label of the Custom fields. e.g. { "Building Height": "20ft" } |
Contact
|
Field |
Type |
Required |
Default |
Description |
|
|
string |
Yes |
- |
Name of the Contact, firstname and lastname e.g. "John Doe" |
|
|
string |
- |
- |
Position of Contact, e.g. "President" |
|
|
|
- |
- |
Email Address |
|
|
phone |
- |
- |
Mobile phone number, e.g. "(811) 123-1234" |
|
|
phone |
- |
- |
Office phone number with optional extension, e.g. "(811) 123-1234 x 123" |
|
|
object |
- |
- |
An object that contains custom field values. The keys should be the label of the Custom fields. e.g. { "Answers Phone?": "Yes" } |
Opportunity
|
Field |
Type |
Required |
Default |
Description |
|
|
string |
- |
- |
Name of Lead Type, must match a Lead Type in your Account |
|
|
string |
- |
- |
Name of an Employee in your Account. If a Manager is given, a Task will be created for them. |
|
|
string |
- |
- |
Name of a Product (aka Opportunity Type) in your Account |
|
|
number |
- |
0 |
Sales Price of the Opportunity |
|
|
boolean |
- |
|
Is this opportunity forecasted to close? |
|
|
string |
- |
- |
Additional notes for the Opportunity |
|
|
object |
- |
- |
An object that contains custom field values. The keys should be the label of the Custom fields. e.g. { "First Contact Date": "07/12/2023" } |
Comments
0 comments
Please sign in to leave a comment.