Get a sub account
Headers
-
Content-Type string
-
Accept string
Path parameters
-
The ID of the sub account.
GET
/api/v1/plans/{plan_uuid}/sub-accounts/{id}
curl \
-X GET 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": "21fd9cbf-ba01-4dd9-8110-bfe011df759b",
"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": "9b1b6ea8-422c-4cb2-afe9-999c0dee05a7",
"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": "ebcae952-0bd6-46e5-bec0-cafe1abbb651",
"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"
}
}