Documentation Index
Fetch the complete documentation index at: https://docs-openpay.nipuntheekshana.com/llms.txt
Use this file to discover all available pages before exploring further.
Admin Authentication
The Admin API uses a separate JWT from the merchant API. Obtain an admin token by calling the admin login endpoint:Admin tokens are distinct from merchant tokens. A merchant Bearer token will not grant access to admin routes.
Role-Based Access Control (RBAC)
Admin users are assigned roles, and each role contains a set of permissions. The platform enforces RBAC on every admin endpoint — if the authenticated user’s role does not include the required permission, the API returns403 FORBIDDEN.
| Concept | Description |
|---|---|
| Role | A named group of permissions (e.g., super_admin, support_agent) |
| Permission | A granular access right (e.g., merchants.approve, withdrawals.manage) |
Available Endpoint Groups
| Group | Description | Reference |
|---|---|---|
| Merchant Management | List, approve, reject, freeze, and terminate merchants | Merchant Management |
| Withdrawal Management | Review, approve, reject, and complete withdrawals | Withdrawal Management |
| Audit Logs | Query platform-wide and merchant-scoped audit trails | Audit Logs |
| Platform Settings | Configure payments, security, notifications, and more | Settings |
| User Management | Manage admin users and RBAC roles | User Management |