API Reference
Overview
Detailed documentation for all API endpoints, organized by functionality.
Core APIs
Auth API
Endpoint: POST /v1/auth
Description: Authenticate a user’s bank account.
Parameters:
Name | Type | Description |
---|---|---|
bank_id | String | The ID of the bank |
username | String | User’s account username |
password | String | User’s account password |
Example Response:
Error Codes:
401 Unauthorized
400 Bad Request
Transactions API
Endpoint: GET /v1/transactions
Description: Retrieve transaction history for an account.
Parameters:
Name | Type | Description |
---|---|---|
account_id | String | The account ID |
start_date | String | Start date (YYYY-MM-DD) |
end_date | String | End date (YYYY-MM-DD) |
limit | Number | Maximum number of transactions |
Example Request:
Example Response:
Balance API
Endpoint: GET /v1/balance
Description: Check the current balance of an account.
Parameters:
Name | Type | Description |
---|---|---|
account_id | String | The account ID |
Example Response:
Payments API
Endpoint: POST /v1/payments
Description: Initiate a payment or transfer.
Parameters:
Name | Type | Description |
---|---|---|
account_id | String | The sender’s account ID |
amount | Number | Payment amount |
recipient_account | String | The recipient’s account ID |
reference | String | Payment reference (e.g., Invoice) |
Example Request:
Identity API
Endpoint: GET /v1/identity
Description: Verify user identity for KYC compliance.
Parameters:
Name | Type | Description |
---|---|---|
account_id | String | The account ID |
Example Response:
Error Handling
Common Error Codes:
429 Rate Limit Exceeded
500 Internal Server Error
Recommendations:
- Implement retries with exponential backoff for transient errors.
- Monitor error responses to handle rate limits gracefully.
Rate Limits
Default Limits:
- Sandbox: 1000 requests/hour
- Production: 5000 requests/hour
Enterprise Clients:
- Contact support to request higher limits for enterprise use cases.