a35ceeb59faf

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-08-1267112242.2 KB
Auth

Super-admin: look up merchants

Platform super-admin only. Find merchants by a single query matched (case-insensitive substring) against member email and merchant name, plus an exact merchant-id match. Capped at 25 results; a query shorter than 2 characters returns an empty list.

post/auth/super-admin/lookup

Request body

querystring required

Matched against member email and merchant name (substring, case-insensitive) or an exact merchant id. Minimum 2 characters.

Example request

{
  "query": "acme"
}

Response

Matching merchants with their members

merchant_idstring
merchant_namestring

Example response

[
  {
    "merchant_id": "merchant_demo",
    "merchant_name": "Acme Inc",
    "members": [
      {
        "email": "operator@example.com",
        "role": "admin"
      }
    ]
  }
]