List accounts with inactive plans

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.

Auth: Partner — authentication under partner/account; controller hard-requires the caller's company to be bundle_id == 1 (partner) else 403. Scope is the partner's own account tree, matched via partner.id = company.id OR partner.company_id = company.id. The result excludes any account id that currently has an active store_plan.

Rate limit: No rate limit.

Request

  • Query: limit (integer, optional) — page size, default 10.
  • Query: page (integer, optional) — page number.

Response{ data. } envelope = a paginator (current_page, per_page, total, links, data[], etc.). Each item:

  • id (integer) — account company id.
  • company_name (string) — account name.
  • email (string|null) — owner user email.
  • store_ids (string|null) — comma-separated cancelled store ids (GROUP_CONCAT).
  • total_cancelled_location (integer) — count of cancelled stores.
  • plan_name (string|null) — last account plan name.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
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