Delete a sub account
Headers
-
Content-Type string
-
Accept string
Path parameters
-
The ID of the sub account.
DELETE
/api/v1/plans/{plan_uuid}/sub-accounts/{id}
curl \
-X DELETE https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/id \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response examples (200)
{
"name": "John's ISA",
"uuid": "56a49e84-45b1-4cf8-96b9-5e35a5038882",
"created_at": "2025-01-17T11:18:31+00:00",
"statistics": {
"recent_growth": 100
},
"updated_at": "2025-01-17T11:18:31+00:00",
"policy_number": "AVI-4837",
"is_main_account": false,
"active_portfolio": {
"name": "Risky Portfolio",
"uuid": "d690f57e-578d-4bf4-af6e-2e4ca69a67ab",
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"is_proposed": true,
"proposed_at": "2025-01-17T00:00:00+00:00"
},
"latest_valuation": {
"uuid": "167b6659-e80d-45f5-801a-03e0f1d2d8f9",
"value": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
}
},
"valued_at": "2025-01-17T11:18:31+00:00",
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
}
}