FastPay API Reference
Welcome to the comprehensive API documentation for FastPay, your payment aggregator platform for mobile money transactions across Africa.
Base URL
For testing and development:
Authentication
All API requests require authentication using an API key in the X-API-Key header.
Authentication Header
Include your API key in every request:
Getting Your API Key
- Log in to your merchant dashboard
- Navigate to API Settings
- Generate a new API key
- Copy the key and store it securely (it will only be shown once)
Important: Keep your API key secure and never expose it in client-side code or public repositories.
API Endpoints Overview
Payments API
Accept and manage payment transactions through mobile money networks.
- Initialize Payment - Create a new payment transaction
- Initialize Direct Payment - Create a direct payment with mobile service
- Get Payments by Organization - Retrieve payments for an organization
- Get Payments by API Key - Retrieve payments for an API key
- Get Payment by Reference - Retrieve a specific payment by its unique reference
Transfers API
Send money to mobile wallets across supported networks.
- Initialize Transfer - Create a new transfer transaction
- Get All Transfers - Retrieve all transfers with pagination
Mobile Services API
Access information about available mobile payment services and their status.
- Get All Mobile Services - Retrieve all mobile services status
Request & Response Format
All API requests and responses use JSON format. Request bodies must include the Content-Type: application/json header.
Content-Type Header
Always include the following header in your requests:
Standard Response Structure
Error Response Structure
HTTP Status Codes
The API uses standard HTTP status codes:
| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request data or parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource not found |
422 | Unprocessable Entity - Validation error or business logic error |
500 | Internal Server Error - Server error occurred |
Rate Limiting
API requests are subject to rate limiting to ensure fair usage:
- Standard tier: 100 requests per minute per API key
- Rate limit headers: Each response includes
X-RateLimit-LimitandX-RateLimit-Remainingheaders
When the rate limit is exceeded, you will receive a 429 Too Many Requests response.
Webhooks
FastPay sends webhooks to notify your application of payment status changes. Configure webhook URLs in your merchant dashboard to receive real-time notifications.
Support
For support and questions:
- Documentation: Browse this documentation for detailed endpoint information
- Technical Support: Contact our developer support team at support@fastpay.tech
- Dashboard: Access your merchant dashboard at dashboard.fastpay.tech