Create Sub-Account (Formerly Location)
POST/locations/
Create a new Sub-Account (Formerly Location) based on the data provided
This feature is only available on Agency Pro ($497) plan.
Request
API Version
2021-07-28- application/json
- Body
- Example (auto)
Bodyrequired
The name for the sub-account/location
The phone number of the business for which sub-account is created with the appropriate country-code
Company/Agency Id
The address of the business for which sub-account is created
The city where the business is located for which sub-account is created
The state in which the business operates for which sub-account is created
The 2 letter country-code in which the business is present for which sub-account is created
AFAXALDZASADAOAIAQAGARAMThe postal code of the business for which sub-account is created
The website of the business for which sub-account is created
The timezone of the business for which sub-account is created
The default settings for location
The social media links for location
(DEPRECATED) The twilio credentials for location
The mailgun credentials for location
The snapshot ID to be loaded into the location.
{
"name": "Mark Shoes",
"phone": "+1410039940",
"companyId": "UAXssdawIWAWD",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"prospectInfo": {
"firstName": "John",
"lastName": "Doe",
},
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
},
"mailgun": {
"apiKey": "key-XXXXXXXXXXX",
"domain": "replies.yourdomain.com"
},
"snapshotId": "XXXXXXXXXXX"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
Location Id
Company/Agency Id
The name for the sub-account/location
The phone number of the business for which sub-account is created
The email for the sub-account/location
The address of the business for which sub-account is created
The city where the business is located for which sub-account is created
The state in which the business operates for which sub-account is created
The country in which the business is present for which sub-account is created
AFAXALDZASADAOAIAQAGARAMThe postal code of the business for which sub-account is created
The website of the business for which sub-account is created
The timezone of the business for which sub-account is created
The default settings for location
The social media links for location
{
"id": "ve9EPM428h8vShlRW1KT",
"companyId": "UAXssdawIWAWD",
"name": "Mark Shoes",
"phone": "+1410039940",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"domain": "test.msgsndr.com",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
}
}