Agents are field operators who provide cash-in/cash-out services to subscribers. OLIVE supports a hierarchical agent network with super-agents and sub-agents.
Agent Hierarchy
Super-Agent
Regional managers
- Register sub-agents
- Fund sub-agent float
- View network performance
- Higher commission tier
Sub-Agent
Field agents
- Process cash-in/cash-out
- Receive float from super-agent
- Earn per-transaction commission
- Mobile-based operations
Endpoints
Register Agent
POST /api/v1/agentsRegister new super/sub agentGet Agent
GET /api/v1/agents/{id}Get agent detailsList Agents
GET /api/v1/agentsList agents with filtersLookup Agent
GET /api/v1/agents/lookupFind agent by phone numberFund Agent
POST /api/v1/agents/{id}/fundAdd float to agent accountCash-In
POST /api/v1/agents/cashinCredit subscriber walletTransfer Float
POST /api/v1/agents/transferTransfer to sub-agentGet Balance
GET /api/v1/agents/{id}/balanceCheck agent float balanceAgent Object
Agent Status
Active
Can process transactions
Suspended
Temporarily disabled
Terminated
Permanently deactivated
Agent Lifecycle
Cash-In Flow
Commission Structure
| Agent Type | Cash-In | Cash-Out |
|---|---|---|
| Super-Agent | 0.3% | 0.5% |
| Sub-Agent | 0.2% | 0.3% |
Commission is earned from fees charged to subscribers and credited instantly to agent balance.
Common Workflows
Register New Sub-Agent
Register New Sub-Agent
- Super-agent logs into dashboard
- Navigate to Agent Management
- Call
POST /api/v1/agentswithagent_type: "sub_agent" - Include
parent_agent_idreferencing super-agent - New agent receives credentials via WhatsApp
Fund Sub-Agent Float
Fund Sub-Agent Float
- Super-agent checks own balance
- Call
POST /api/v1/agents/{sub_agent_id}/fund - Amount transferred from super to sub-agent
- Both balances updated atomically
Process Customer Cash-In
Process Customer Cash-In
- Agent looks up subscriber by phone
- Collects cash from customer
- Call
POST /api/v1/agents/cashin - Agent float decreases, subscriber wallet increases
- Commission credited to agent
Permissions
| Role | Can Register | Can Fund | Can View |
|---|---|---|---|
| System Admin | Super + Sub | Any agent | All |
| Super-Agent | Sub only | Own sub-agents | Own network |
| Sub-Agent | None | None | Own profile |