Mtariri
HomeNeed Help?
HomeNeed Help?
  1. Home
  • Introduction
  • Get authenticated user wallet
    GET
  • Deposit funds
    POST
  • Withdraw funds
    POST
  • Transfer funds to another user
    POST
  • List wallet transactions
    GET
  • Get authenticated user profile
    GET
  • Update authenticated user profile
    PUT
  • Get authenticated user preferences
    GET
  • Update authenticated user preferences
    PUT
  • List notifications
    GET
  • Create notification
    POST
  • Mark notification as read
    PUT
  • Find investment opportunities for authenticated lender
    GET
  • Get map markers for user profiles
    GET
  • Get map markers for loan requests
    GET
  • List loan requests
    GET
  • Create loan request (draft)
    POST
  • Get loan details
    GET
  • Update loan (borrower only)
    PUT
  • Invest in a loan
    POST
  1. Home

Invest in a loan

POST
/loans/{id}/invest
Maintainer:Not configured
x-stoplight:{"id":"vzpgzc1oxt87o"}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.mtariri.xyz/api//loans//invest' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 0.01
}'
Response Response Example
201 - Example 1
{
    "investment": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",
        "investor_id": "b95fa805-790b-4157-a28b-e61e3566e324",
        "amount_invested": 0,
        "expected_return": 0,
        "investment_date": "2019-08-24T14:15:22Z",
        "status": "string"
    }
}

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Investment created
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2025-08-17 22:22:15
Previous
Update loan (borrower only)
Built with