joxefhurs / member_reports_docs

0 stars 0 forks source link

ForesightFin Member Reports API Documentation

Welcome to the ForesightFin Member Reports API documentation. This API provides endpoints for retrieving member-related financial data, including active loans, investments, loan repayment summaries, member profiles, and overall account summaries. Below you will find comprehensive information to help you integrate and utilize these endpoints effectively.

Table of Contents

  1. Base URL
  2. Authentication
  3. Endpoints
  4. Error Handling
  5. Testing
  6. Contact & Support

Base URL

All API endpoints are accessible under the following base URL:

https://api.foresightfin.app/


Authentication

Note: The provided code snippets do not include authentication mechanisms. It is recommended to implement secure authentication (e.g., OAuth 2.0, API keys) to protect your endpoints.


Endpoints

1. Get Active Loans

Retrieve a list of active loan IDs for a specific member and station.


2. Get Investments

Retrieve a list of investments for a specific member, station, and investment code.


3. Get Loan Repayment Summary

Retrieve detailed information about a specific loan repayment summary for a member at a station.


4. Get Member Profile

Retrieve the profile information of a member based on their phone number.


5. Get Account Summary

Retrieve an account summary for a member that includes balances for savings, shares, deposits, and outstanding loans.


Error Handling

The API uses standard HTTP status codes to indicate the success or failure of an API request:

Note: The API currently does not provide detailed error messages in the response body. It is recommended to enhance error responses with meaningful messages for better debugging and user experience.


Testing

For testing purposes, you can use the following phone numbers to retrieve member profiles:

Ensure that these phone numbers exist in the database to receive successful responses.


Contact & Support

For any questions or support related to the ForesightFin Member Reports API, please contact the developer.

Thank you for using the ForesightFin Member Reports API!