#
Admin Panel
The Admin Panel provides administrative features for managing the HivePay platform.
Admin Access Required
The Admin Panel is only available to users with admin privileges. Contact the HivePay team if you need admin access for your deployment.
#
Accessing Admin Panel
- Log in with an admin API key
- Navigate to
/adminin the dashboard - Admin features appear in the sidebar
#
Merchant Management
#
List All Merchants
View all registered merchants:
#
Search Merchants
Use the search box to find merchants by:
- Merchant ID
- Business name
- Hive account
#
Filter by Status
- All - Show all merchants
- Active - Active merchants only
- Inactive - Deactivated merchants
#
Merchant Actions
#
View Merchant Details
Click on a merchant to see:
- Full merchant information
- Payment statistics
- Recent payments
- Webhook configuration
#
Activate/Deactivate Merchant
Toggle a merchant's active status:
- Find the merchant in the list
- Click the status toggle or action menu
- Confirm the action
// Activate a merchant
await hivepay.admin.setActive('merchant_id', true);
// Deactivate a merchant
await hivepay.admin.setActive('merchant_id', false);
Effect of Deactivation
Deactivating a merchant:
- Prevents new payment creation
- Does not affect pending payments
- Does not delete merchant data
#
Bulk Operations
#
Export Merchants
Export merchant list to CSV:
- Apply filters if needed
- Click Export
- Choose format (CSV or JSON)
- Download file
#
Pagination
Navigate large merchant lists:
- Items per page: 20, 50, 100
- Previous/Next navigation
- Jump to specific page
#
System Statistics
The admin dashboard shows platform-wide statistics:
#
API Access
Admin endpoints require an API key with admin privileges:
#
List Merchants
// Get paginated list
const result = await hivepay.admin.listMerchants({
page: 1,
limit: 50,
query: 'store' // Optional search
});
console.log(result.data); // Array of merchants
console.log(result.pagination.total); // Total count
#
Iterate All Merchants
// Async iteration
for await (const merchant of hivepay.admin.iterateMerchants()) {
console.log(merchant.id, merchant.name, merchant.isActive);
}
// With filters
for await (const merchant of hivepay.admin.iterateMerchants({
query: 'store',
pageSize: 50
})) {
// Process merchant
}
#
Audit Logging
Admin actions are logged for security:
- Merchant activation/deactivation
- Settings changes
- Access timestamps
Contact the HivePay team for audit log access.
#
Self-Hosted Deployments
If you're running your own HivePay instance:
- Admin privileges are configured during deployment
- See the deployment documentation for setup
- Admin users are defined in the database seed