Add a location

Add a new location under an account. It's attached to the account's current plan automatically, and a connection slot is created for each review site on that plan. Returns the new location, including its id (data.data.id), which you need to connect its review sites. The account owner gets a location-added email. Duplicate locations (same name, address, postal code, and city) are rejected. Instead of city_id you can send the city, state and country names; the response's geo object returns the city that was used.

Prerequisites: the account's id (account_id) and a city_id (or the city, state and country names).

Authentication: Partner token. account_id must be an existing, not deleted account inside your own account tree; otherwise 422.

Rate limit: none.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
Defaults to Acme Plumbing - North

The location's name. Max 255 characters, no < or >.

string
Defaults to NORTH-01

A display label for the location. Max 100 characters, no < or >. Defaults to the city name.

string
Defaults to loc-001

Your own id for the location. Max 100 characters, no < or >. Defaults to "".

string
required
Defaults to 12 King Street

Street address. Max 255 characters, no < or >.

integer
Defaults to 3243

The city's id. Required unless you send city, state and country. Must be an existing city id. When you send both, city_id is used and the text is ignored.

string
length ≤ 100
Defaults to Austin

The city name. Required, with state and country, when you don't send city_id. No < or >. Matched within the state, ignoring case, accents and extra spaces. A city we don't have yet is added.

string
length ≤ 100
Defaults to TX

The state code or name, e.g. TX or Texas. Required when you don't send city_id. Must be a state we have for that country; otherwise 422.

string
length ≤ 100
Defaults to US

The two-letter ISO country code or the country name, e.g. US or United States. Required when you don't send city_id. Must be a country we have; otherwise 422.

string
required
Defaults to 2000

Postal code. 3 to 12 characters, no < or >.

string
Defaults to https://acmebrand.com

The location's website. Must be a valid URL.

string
Defaults to 0291234567

The primary business phone. 9 to 15 characters.

string

A secondary phone line. 9 to 15 characters.

integer
required
Defaults to 5994

The account to add the location to.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json