All API endpoints require authentication using JWT tokens. Make sure you’ve
completed the authentication setup before making API calls.
Base URLs
Your API base URL depends on your tenant domain and environment:API Architecture
The FinCode API is organized into service-based endpoints following a RESTful architecture:Service Categories
Authentication
User authentication, token management, and session handling
Transactions
Remittance, and virtual wallet transaction processing
Compliance
KYC/AML verification, sanctions screening, and regulatory compliance
Reporting
Analytics, transaction reports, and business intelligence
Revenue Sharing
Commission management, partner payouts, and revenue distribution
User Management
Create and manage managers, agents, cashiers, and customers
Authentication
All API requests must include authentication headers otherwise stated:Required Headers
Example Authenticated Request
Request & Response Format
Standard Request Structure
All POST and PUT requests follow this structure:Standard Response Structure
Successful responses (HTTP 200-299):Error Codes
Common Error Codes
| Code | HTTP Status | Description |
|---|---|---|
AUTH_REQUIRED | 401 | Missing or invalid authentication token |
FORBIDDEN | 403 | Insufficient permissions for this operation |
NOT_FOUND | 404 | Resource not found |
VALIDATION_ERROR | 422 | Request validation failed |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
SERVER_ERROR | 500 | Internal server error |
SERVICE_UNAVAILABLE | 503 | Service temporarily unavailable |
Error Handling Example
Webhooks
FinCode can notify your application of events via webhooks. Configure webhook endpoints in your dashboard.Webhook Events
transaction.createdtransaction.completedtransaction.failedkyc.verification.completedloan.approvedloan.disbursedpayment.received
Webhook Payload Example
SDKs & Libraries
Official SDKs are currently in development. We’ll support
JavaScript/TypeScript, Python, PHP, and Ruby in the near future. For now, you
can use standard HTTP clients like
axios, fetch, or requests to
integrate with our API.Coming Soon
JavaScript/TypeScript
Node.js and browser support with full TypeScript definitions
Python
Pythonic API with async/await support
PHP
PSR-compliant library for PHP 7.4+
Ruby
Ruby gem with Rails integration
Testing & Sandbox
Use the sandbox environment for testing without affecting production data:- URL:
https://{domain}.fincode.software/api/v6/services/ - Data: All transactions are simulated
- Webhooks: Webhook events are generated but not processed
Test Data
Test Cards & Bank Accounts
Test Cards & Bank Accounts
Use these test credentials in sandbox:Test Bank AccountTest Card
