POST
/
api
/
v1
/
investments
/
liquidate
Liquidate an investment.
curl --request POST \
  --url https://demoapi.saasphereltd.com/api/v1/investments/liquidate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "investment_id": 123
}
'
{
  "status": "00",
  "message": "Investment liquidated successfully",
  "data": []
}

Authorizations

Authorization
string
header
required

Paste only the token (no "Bearer " prefix).

Body

application/json
investment_id
integer
required

The investment ID to liquidate.

Example:

123

Response

200 - application/json

Investment liquidated successfully

status
string
Example:

"00"

message
string
Example:

"Investment liquidated successfully"

data
array
Example:
[]