Skip to main content

Master Accounts

Master accounts are a super-admin layer that lets privileged users manage all accounts across the platform from a single place — useful for support, operations, and partner management.

What master accounts can do​

  • View and search all accounts across the entire platform
  • Create new accounts on behalf of partners or customers
  • Update account metadata — plan, status, description, partner codes
  • Activate, deactivate, renew, or close any account
  • View any account's details, users, and payment records
  • Reassign accounts to different pricing plans

API endpoints​

MethodEndpointDescription
GET/master/accountsList all accounts with filtering and pagination
GET/master/accounts/:idGet full details for a single account
GET/master/accounts/:id/usersList the users on a specific account
POST/master/accountsCreate a new account
PATCH/master/accountUpdate account metadata (body: { id, description, code, active })
PUT/master/accounts/:id/plansReassign an account to a different plan
POST/master/accounts/:id/deactivateDeactivate an account
POST/master/accounts/:id/activateReactivate an account
POST/master/accounts/:id/renewRenew an account offline (no gateway involved)
DELETE/master/accounts/:idClose an account
POST/admin/account/upgradeManual plan upgrade override (body: { accountId, planName })

Access control​

Master account endpoints require a user with the master role. Regular users and developers cannot access these routes regardless of their account plan.

Master plan management​

Pricing plans can also be managed at the master level:

Plans are addressed by name, not by numeric id:

MethodEndpointDescription
GET/master/plansList all pricing plans with account counts
POST/master/plansCreate a new plan
GET/master/plans/:nameGet a single plan (includes prices and gateway IDs)
GET/master/plans/:name/accountsList accounts on a plan
GET/master/plans/:name/historyView a plan's change history
PATCH/master/plans/:nameUpdate a plan's limits or metadata
DELETE/master/plans/:nameDelete a plan