Account-user location list (POST)

Returns a paginated list of stores accessible to the authenticated user, each row joined out to full location, account, and geographic detail (city, then state, then country) plus the active store_plan with its plan features, and a generated connect_page_url. Backs getUserStoreWithLocation.

Auth: Both (Partner or Account user) — authentication, role-agnostic store/ group. Default scope is (the caller's own accessible stores). When you supply company_id it scopes for that company, and when you supply store_id it narrows to that one store. Both company_id and store_id must sit inside your own account tree, so a partner can reach any store under its tree while an account user is confined to its own account's stores.

Rate limit: No rate limit.

Request

  • Query: page (integer, optional) — pagination page.
  • Body:
FieldTypeRequiredNotes
sort_fieldstringoptionalone of store_name, address, zip, city_name, state_code, company_phone, country_name, state_name, storeid, account_name (default store_name)
sort_bystringoptionalasc / ASC / desc / DESC (default ASC)
search_fieldstringoptionalsame column set as sort_field
search_valuestringoptionalterm; validated by NameNoAngleBrackets
active_planint (0|1)optional1 = only stores with an active plan
company_idintoptionalmust exist (bundle_id 1/2/3, not deleted) + an ownership check
store_idintoptionalmust exist:store + an ownership check
limitintoptionalpage size (default 10)

Response{ data. } envelope; data is the raw paginator (current_page, data[], per_page, total, page urls, links).

  • data.data[].id (integer) — store id.
  • data.data[].account_name (string) — parent account name.
  • data.data[].store_name, store_full_name, storeid, client_location_id (string) — store identity.
  • data.data[].address, address1, address2, zip (string|null) — location address.
  • data.data[].country_id/_name/_code, state_id/_name/_code, city_id/_name — geo joins.
  • data.data[].company_phone (string|null).
  • data.data[].brand_company_id (integer) — parent account company id.
  • data.data[].connect_page_url (string) — generated connect-review-sites URL.
  • data.data[].active_store_plan (object|null) — { id, store_id, plan_id, status, plan_start, plan_end, cancel_subscription_at, plan: { id, plan_name, features: [{ id, plan_id, feature_name, options }] } }.

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
integer
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