Create an account
Overview
Create a new account under your partner, with its owner. The owner gets a set-password welcome email automatically.
Use this when you onboard a new business. Add with_location=1 to also create its first location in the same call; for a single-location business that's the whole setup. To place the account under one of your sub-partners instead of directly under you, pass parent_company_id.
You'll need the business name and address (city_id or the city, state and country names, postal_code, industry), the owner's first name and email, a starting password for the owner, and the plan_id to assign. Optional: your own client_account_id, a billing reference, website, phones.
Returns the new account's id (accountId.value). The plan is linked, the owner is invited, and if with_location=1, the first location exists and is ready for review site connections.
Prerequisites
- A Partner token. See Authentication.
- A
plan_idthat is set up for your partner. See List your plans. - An industry id (
companyindustry_id) from List industries. - A
city_idfrom List countries → List states → List cities, or the city, state and country names instead.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
POST /api/v1/partner/account/create
Authentication
Partner token
- The new account is created directly under your partner, or under
parent_company_idwhen you send it. parent_company_idmust be inside your own account tree; otherwise422.plan_idmust be one of the plans set up for your partner (or for the partner thatparent_company_idbelongs to); otherwise422.
Rate limit
This endpoint has no rate limit.
Request parameters
None.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The account (business) name. Max 100 characters, no < or >. |
website | string | No | The business website. Must be a valid URL. |
billing_id | string | No | Your billing reference for the account. Max 100 characters, no < or >. |
client_account_id | string | No | Your own id for the account. Max 100 characters, no < or >. |
phone | string | No | The business phone. 9 to 15 characters. |
address | string | Yes | Street address. Max 255 characters, no < or >. |
city_id | integer | Conditional | 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. |
city | string | Conditional | The city name, e.g. Austin. Required, with state and country, when you don't send city_id. Max 100 characters, no < or >. Matched within the state, ignoring case, accents and extra spaces. A city we don't have yet is added. |
state | string | Conditional | 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. |
country | string | Conditional | 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. |
companyindustry_id | integer | Yes | The industry. Must be an existing, active industry id. |
postal_code | string | Yes | Postal code. 3 to 12 characters, no < or >. |
first_name | string | Yes | The owner's first name. Max 100 characters. |
last_name | string | No | The owner's last name. Max 100 characters. |
owner_email | string | Yes | The owner's email address. Must not already belong to a user. The domain must accept mail (it's checked with a DNS lookup), so test domains like example.com are rejected with 422. |
owner_phone | string | No | The owner's phone. 9 to 15 characters. |
password | string | Yes | The owner's starting password. 8 to 100 characters, with upper- and lowercase letters, a number and a symbol; no quotes, backslashes or spaces. |
plan_id | integer | Yes | The plan to assign. Must be one of the plans set up for your partner. |
parent_company_id | integer | No | Where to place the account: one of your sub-partners or another company in your account tree. Leave it out to create the account directly under your partner. |
with_location | integer | No | 1 to also create the account's first location, on the same plan, from the account's name, address, phone and website. 0 or left out: no location. |
Don't have a
city_id? Send the city, state and country names instead ofcity_id, for example"city": "Austin", "state": "TX", "country": "US". The response'sgeoobject returns thecity_idthat was used, so you can store it for next time.
Request payload
{
"name": "Acme Brand",
"website": "https://acmebrand.com",
"billing_id": "BILL-001",
"client_account_id": "ACC-001",
"phone": "1234567890",
"address": "1 George St",
"city_id": 3243,
"companyindustry_id": 37,
"postal_code": "2000",
"first_name": "Jane",
"last_name": "Smith",
"owner_email": "<owner-email>",
"owner_phone": "9876543210",
"password": "<your-password>",
"plan_id": 36,
"with_location": 0
}Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
status | string | success. |
message | string | Account has been created successfully! |
accountId | object | The new account. |
accountId.label | string | The account's name. When you sent a client_account_id, it's added after a dash, e.g. Acme Brand - ACC-001. |
accountId.value | integer | The new account's id. Use it as the account id in other calls. |
geo | object | The city saved on the record. |
geo.city_id | integer | The city's id. When you sent city text, this is the city it matched or added. |
geo.state_id | integer | The city's state id. |
geo.country_id | integer | The city's country id. |
geo.city_created | boolean | true when the city was added from your city / state / country text; otherwise false. |
Response payload
{
"data": {
"status": "success",
"message": "Account has been created successfully!",
"accountId": {
"label": "Acme Brand - ACC-001",
"value": 6021
},
"geo": {
"city_id": 3243,
"state_id": 3909,
"country_id": 14,
"city_created": false
}
}
}Examples
Success payload
See Response payload. When you send city, state and country instead of city_id, the shape is the same; geo holds the city that was matched, and geo.city_created is true if it was added.
Error payload
422 Required fields missing
{
"message": "The name field is required. (and 11 more errors)",
"errors": {
"name": ["The name field is required."],
"address": ["The address field is required."],
"city_id": ["Provide city_id, or city, state and country."],
"city": ["The city field is required when city id is not present."],
"state": ["The state field is required when city id is not present."],
"country": ["The country field is required when city id is not present."],
"companyindustry_id": ["Please select an industry for the account."],
"postal_code": ["The postal code field is required."],
"first_name": ["The first name field is required."],
"owner_email": ["The owner email field is required."],
"password": ["The password field is required."],
"plan_id": ["The plan id field is required."]
}
}422 Unknown state or country
Sent when you use city text and the state or country doesn't match one we have. Nothing is created.
{
"message": "Unknown state 'TXX' for United States. Use the state code (e.g. OH) or its full name.",
"errors": {
"state": ["Unknown state 'TXX' for United States. Use the state code (e.g. OH) or its full name."]
}
}422 Plan not available
{
"message": "The selected plan is not available for your account.",
"errors": {
"plan_id": ["The selected plan is not available for your account."]
}
}422 Parent outside your tree
{
"message": "The selected parent company id does not belong to your company hierarchy.",
"errors": {
"parent_company_id": ["The selected parent company id does not belong to your company hierarchy."]
}
}422 Email rejected
The address is malformed, or its domain doesn't accept mail.
{
"message": "The owner email field must be a valid email address.",
"errors": {
"owner_email": ["The owner email field must be a valid email address."]
}
}| Status | Meaning |
|---|---|
200 | The account is created. |
401 | The token is missing, expired or invalid. |
422 | The request failed validation. The response names the fields. |
500 | Unexpected server error. |
Example request
curl --request POST \
--url "https://production-api.shoutaboutus.com/api/v1/partner/account/create" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"name": "Acme Brand", "website": "https://acmebrand.com", "billing_id": "BILL-001", "client_account_id": "ACC-001", "phone": "1234567890", "address": "1 George St", "city_id": 3243, "companyindustry_id": 37, "postal_code": "2000", "first_name": "Jane", "last_name": "Smith", "owner_email": "<owner-email>", "owner_phone": "9876543210", "password": "<your-password>", "plan_id": 36, "with_location": 0}'Updated about 10 hours ago
