Gateway Overview
The OLIVE Gateway is a Go-based REST API that serves as the public entry point for all external integrations. It handles authentication, rate limiting, request routing, and proxies requests to the wallet-core service over gRPC.Purpose
API Surface
REST endpoints for payments, subscribers, cards, agents, compliance, and admin operations
Authentication
Multiple auth methods: API keys, JWT, HMAC, service auth
Security
Rate limiting, input validation, audit logging, and CORS protection
Observability
Structured logging, Prometheus metrics, and Swagger documentation
Who Uses It
| Client | Authentication | Use Case |
|---|---|---|
| External POS | HMAC per-merchant | Terminal payments |
| WhatsApp Agent | Service auth | User operations via chat |
| Admin Dashboard | JWT | User and transaction management |
| Third-party Integrations | API Keys | Partner integrations |
Endpoint Groups
Public Endpoints
| Endpoint | Description |
|---|---|
GET /health | Gateway and wallet-core health status |
GET /version | API version information |
POST /api/v1/public/subscribers | Public subscriber registration |
Protected Endpoints
| Group | Endpoints | Auth Required |
|---|---|---|
| Subscribers | Register, lookup, update, block | API Key / JWT |
| Cards | Link, block, unblock, upload CSV | API Key / JWT |
| Wallet | Balance, payments, transfers | API Key / JWT |
| Agents | Lookup, cashin, transfer | API Key / JWT |
| POS | Payment, verify-card | HMAC |
| Compliance | Check, alerts, rules | JWT (Admin) |
| Admin | Login, API keys, audit logs | JWT |
| Webhooks | VULT cashin | HMAC |
Quick Start
With Docker Compose
Build and Run Locally
Verify Health
API Documentation
Interactive Swagger documentation is available at:Architecture
Project Structure
Key Features
Idempotent Operations
All payment requests support idempotency viaX-Request-ID header:
Audit Logging
All operations are logged with:- Request/response details
- User and client identification
- Timestamps and duration
- Operation outcomes