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
POST and PUT requests send a JSON body directly. There is no envelope wrapper — pass the fields the endpoint expects at the top level.Standard Response Structure
All responses use a consistentResultWrapper envelope:
The
status field is always one of:
Failed responses follow the same envelope:
Error Handling
Most API endpoints return HTTP 200 regardless of outcome and communicate success or failure through thestatus field in the response body. However, some endpoints — and Spring Security — will return HTTP-level error codes in certain situations.
Always handle both layers — the HTTP status code and the
status field in the response body.
Error Handling Example
Webhooks
FinCode can notify your application of events via webhooks. Configure webhook endpoints in your dashboard.Webhook Events
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
Support & Resources
API Status
Real-time system status
Support
Technical support team
GitHub
Code examples & samples
