Accounts

Partner-side CRUD on the accounts the partner owns.

Partner-side CRUD on the accounts the partner owns. Accounts are top-level tenant resources — only partners create / edit / archive them.

Prerequisites

  • A bearer token in the Authorization header. Any endpoint that needs no token says so on its own page.
  • The id of each record the call targets. Every endpoint page lists the ids it needs.

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
403The token is valid but the record sits outside your account
422The request failed validation — the response names the fields
500Unexpected server error

Individual endpoints may return more; each page lists its own.

Endpoints

List accounts

GET — Get a paginated list of accounts (bundle_id=3) under the authenticated partner, with owner email, status, location/active-plan counts and current plan name.

Open →

Create account

POST — Create a new account (bundle_id=3) under the authenticated partner, together with its owner user/person. It 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.

Open →

Edit account

POST — Update an existing account company row plus its owner user/person and account company_options.

Open →

Get assigned plan for account

GET — Get the account company record plus the plan currently assigned to it (with the plan's features and review-site profile included), or plan: null when no plan is assigned.

Open →

Get account details

GET — Get a single account with everything the account-edit form needs: account row + company_options + city/state/country, the owner (name/email/phone), and the account's current plan_id.

Open →

List accounts with inactive plans

GET — Get a paginated list of accounts (bundle_id=3) under the authenticated partner that have NO active store-plan subscription, with owner email, cancelled-location count and last plan name.

Open →

Assign plan to an account

POST — Assign a plan to an account and propagate it to every store under that account: existing active/expired store_plans are closed and a fresh active store_plan (running to month-end) is created per store, and the account-level company_plans link is updated/created.

Open →

Delete a store (soft delete)

DELETE — Soft-delete a store and its paired location-account record, closes any active/expired store plans (sets status close, plan_end + cancel_subscription_at = now), and cascade-soft-deletes the store's reviews, response_reviews, review_flag, and store_review_sites.

Open →

Delete account (cascade + dormant if enabled)

DELETE — Soft-delete an account, cascading to everything beneath it — its location-account companies, their stores, and each store's reviews/responses/flags/review-site rows; open plans are closed.

Open →

Bulk import accounts + locations (CSV upload)

POST — Bulk-imports accounts from a single CSV — one account + one location (store) per row — designed for up to ~100K rows.

Open →

Bulk import status

GET — Get live progress and the final outcome of a bulk account+location import (Bulk import accounts + locations (CSV upload)).

Open →


Did this page help you?