Delete a sub account

DELETE /api/v1/plans/{plan_uuid}/sub-accounts/{id}

Path parameters

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      UUID of the sub account

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was created.

    • name string

      Descriptive name of the sub account

    • Provider reference of the sub account

    • The latest valuation of the sub account

    • Denotes if the sub account a main account of the plan

    • The active portfolio of the sub account

    • The statistics on a sub account. Only displayed when you retrieve an individual 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": "920ef488-d724-43fe-83de-68327c21a2af",
  "created_at": "2024-10-16T11:10:15+01:00",
  "statistics": {
    "recent_growth": 100
  },
  "updated_at": "2024-10-16T11:10:15+01:00",
  "policy_number": "AVI-4837",
  "is_main_account": false,
  "active_portfolio": {
    "name": "Risky Portfolio",
    "uuid": "5605cec7-feeb-4b38-b9ce-09c77ca71311",
    "created_at": "2024-10-16T11:10:15+01:00",
    "updated_at": "2024-10-16T11:10:15+01:00",
    "is_proposed": true,
    "proposed_at": "2024-10-16T00:00:00+01:00"
  },
  "latest_valuation": {
    "uuid": "b64fda2c-91cd-4155-afc3-ba45d1ad9046",
    "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": "2024-10-16T11:10:15+01:00",
    "created_at": "2024-10-16T11:10:15+01:00",
    "updated_at": "2024-10-16T11:10:15+01:00",
    "sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
  }
}