Delete a sub account
Headers
-
Content-Type
string -
Accept
string
DELETE
/api/v1/plans/{plan_uuid}/sub-accounts/{id}
curl \
--request DELETE 'https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/id' \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
Response examples (200)
{
"name": "John's ISA",
"uuid": "8a5747b9-d260-4614-9a5b-88fe0078a218",
"created_at": "2025-04-22T13:44:19+01:00",
"statistics": {
"recent_growth": 100
},
"updated_at": "2025-04-22T13:44:19+01:00",
"policy_number": "AVI-4837",
"is_main_account": false,
"active_portfolio": {
"name": "Risky Portfolio",
"uuid": "3eba9840-3f1e-4f12-935e-a725ea39d724",
"created_at": "2025-04-22T13:44:19+01:00",
"updated_at": "2025-04-22T13:44:19+01:00",
"is_proposed": true,
"proposed_at": "2025-04-22T00:00:00+01:00"
},
"latest_valuation": {
"uuid": "7af6c6c8-1a25-4141-ab30-2538fe4537c9",
"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-04-22T13:44:19+01:00",
"created_at": "2025-04-22T13:44:19+01:00",
"updated_at": "2025-04-22T13:44:19+01:00",
"sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
}
}