Skip to main content
POST
Deposit Savings
Investment Creation: Creates a new investment by depositing funds into an agent’s savings account. The operation converts the agent ID to UUID format if provided in short format, validates the deposit amount, and creates a new investment record.

Request Headers

string
required
Your API key for authentication

Request Body

string
required
The short ID or UUID of the agent
number
required
Amount to deposit (must be positive)

Response

boolean
Whether the deposit was successful
string
Information about the deposit
string
The ID of the newly created investment
object

Status Codes

Agent ID Format: The API accepts both short ID format (agent_xxx) and UUID format for the agent ID parameter.
Amount Validation: The deposit amount must be a positive number. The system will validate this before processing the transaction.
Investment Record: A new investment record is created when the deposit is processed successfully. This can be used to track the investment’s growth over time.