Create account

Create a new account (bundle_id=3) account under the authenticated partner together with its owner user/person, links an account-level plan, sends the owner a set-password welcome email, and (when with_location=1) auto-creates one location-account + store on that plan.

Auth: Partner — authentication under partner/account. The new account's parent is parent_company_id when supplied, otherwise the caller's own partner company (company bundle_id = 1). parent_company_id and plan_id are both validated against the auth partner: parent_company_id must pass an ownership check, and plan_id must exist in company_plans for the resolved partner company.

Rate limit: No rate limit.

Request

  • Body (JSON):
FieldTypeRequiredNotes
namestring (max 100)yesNo angle brackets. Account/company name.
websitestring (url)no
billing_idstring (max 100)noNo angle brackets.
client_account_idstring (max 100)noPartner-supplied external id. No angle brackets.
phonestring (9–15)noBusiness phone.
addressstring (max 255)yesNo angle brackets.
city_idintegeryesMust be an existing city.
companyindustry_idintegernoMust be an existing industry (active industries only). Optional industry tag; if the owning partner has an industry set it cascades and overrides this on save.
postal_codestring (3–12)yesNo angle brackets.
first_namestring (max 100)yesOwner first name.
last_namestring (max 100)noOwner last name.
owner_emailemail (rfc,dns)yesUnique across users.
owner_phonestring (9–15)no
passwordstringyesMin 8, max 100, mixed case + letters + numbers + symbol; no quotes/backslash/whitespace.
plan_idintegeryesMust exist in plans AND be assigned to the resolving partner via company_plans.
parent_company_idintegernoMust be a bundle_id 1/2/3 company belonging to the auth partner tree; defaults to the caller's partner company.
with_locationin:0,1noWhen 1, auto-creates a default location + store on the chosen plan.

Response{ data. } envelope.

  • status (string) — success.
  • message (string) — Account has been created successfully!.
  • accountId.label (string) — created account name.
  • accountId.value (integer) — created account company id.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
string
integer
integer
string
string
string
string
string
string
integer
integer
Response

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