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": "31b803a0-1674-4268-966a-b7f16a7d9ac2",
"created_at": "2025-05-14T18:27:14+01:00",
"statistics": {
"recent_growth": 100
},
"updated_at": "2025-05-14T18:27:14+01:00",
"policy_number": "AVI-4837",
"is_main_account": false,
"active_portfolio": {
"name": "Risky Portfolio",
"uuid": "11ecdeed-97d3-4afd-9450-fe7de15da5a2",
"created_at": "2025-05-14T18:27:14+01:00",
"updated_at": "2025-05-14T18:27:14+01:00",
"is_proposed": true,
"proposed_at": "2025-05-14T00:00:00+01:00"
},
"latest_valuation": {
"uuid": "b48de813-e40d-4d85-9546-3920fc5ad220",
"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-05-14T18:27:14+01:00",
"created_at": "2025-05-14T18:27:14+01:00",
"updated_at": "2025-05-14T18:27:14+01:00",
"sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
}
}