Skip to main content
Version: 2021-04-15

Create Sub-Account (Formerly Location)

POST 

/locations/

Create a new Sub-Account (Formerly Location) based on the data provided

info

This feature is only available on Agency Pro ($497) plan.

Request

Version stringrequired

API Version

Available options2021-04-15
application/json

Bodyrequired

    namestringrequired

    The name for the sub-account/location

    phonestring

    The phone number of the business for which sub-account is created with the appropriate country-code

    companyIdstringrequired

    Company/Agency Id

    addressstring

    The address of the business for which sub-account is created

    citystring

    The city where the business is located for which sub-account is created

    statestring

    The state in which the business operates for which sub-account is created

    countrystring

    The 2 letter country-code in which the business is present for which sub-account is created

    Available optionsAFAXALDZASADAOAIAQAGARAM
    postalCodestring

    The postal code of the business for which sub-account is created

    websitestring

    The website of the business for which sub-account is created

    timezonestring

    The timezone of the business for which sub-account is created

    prospectInfoobject
    settingsobject

    The default settings for location

    socialobject

    The social media links for location

    twilioobjectdeprecated

    (DEPRECATED) The twilio credentials for location

    mailgunobject

    The mailgun credentials for location

    snapshotIdstring

    The snapshot ID to be loaded into the location.

application/json

Successful response

Schema
    idstring

    Location Id

    companyIdstring

    Company/Agency Id

    namestring

    The name for the sub-account/location

    phonestring

    The phone number of the business for which sub-account is created

    emailstring

    The email for the sub-account/location

    addressstring

    The address of the business for which sub-account is created

    citystring

    The city where the business is located for which sub-account is created

    statestring

    The state in which the business operates for which sub-account is created

    domainstring
    countrystring

    The country in which the business is present for which sub-account is created

    Available optionsAFAXALDZASADAOAIAQAGARAM
    postalCodestring

    The postal code of the business for which sub-account is created

    websitestring

    The website of the business for which sub-account is created

    timezonestring

    The timezone of the business for which sub-account is created

    settingsobject

    The default settings for location

    socialobject

    The social media links for location