Once an investment has been created, it can be funded through deposits from the user’s wallet. When doing this, you need to specify the amount and the investment product code.
Funding an investment for a user is as easy as issuing a POST request to the /wallets/:id/transfers endpoint. If the request is successful, you should have a response object containing the transaction details similar to the sample below.
Create and Fund Investments Simultaneously
Currently, we have separate endpoints for creating and funding investments for users. Although these endpoints are separate, the actions they enable can be initiated simultaneously.
It is possible to chain the network calls from the backend so that creating and funding investments on the client-side do not look like two different activities.
Create Investment /investments ---->
Fund Investment /wallets/:id/transfers
Please refer to the API Reference for a complete guide on creating and managing user investments. We have also included an investment model page that explains the fields on the sample response