Withdraw Savings
Withdraw funds from a savings investment
Complete Withdrawal: Closes an active investment and returns the principal plus earned interest to the agent’s wallet.
Request Headers
Your API key for authentication
Must be set to application/json
Request Body
The short ID or UUID of the investment
Response
Whether the withdrawal was successful
Information about the withdrawal
The ID of the agent that owned the investment
New balance of the agent after the withdrawal
Status Codes
Status Code | Description |
---|---|
200 | Withdrawal completed successfully |
400 | Bad Request - Invalid or missing parameters |
401 | Unauthorized - Invalid or missing API key |
404 | Not Found - Investment not found |
500 | Internal Server Error |
Active Investments Only: Only investments with an “active” status can be withdrawn. Attempting to withdraw completed or cancelled investments will result in an error.
Interest Calculation: Interest is calculated up to the exact moment of withdrawal, including partial days.
Blockchain Confirmation: The transaction may take a few moments to be confirmed on the blockchain before the funds appear in the agent’s wallet.