Create a holding
Headers
-
Content-Type string
-
Accept string
Body Required
-
The name of the fund for the holding.
-
reference string
The reference of the holding/fund.
-
provider string
The provider of the holding/fund.
-
sector string
The sector of the holding/fund.
-
sedol string
The SEDOL of the holding/fund.
-
isin string
The ISIN of the holding/fund.
-
citi string
The CITI of the holding/fund.
-
The units of the holding
-
unit_price integer
The current price of the units in pennies.
-
unit_price_raw number
The current price of the units in it's raw format with decimals.
-
purchase_price integer
The original purchase price of the holding in pennies.
-
currency string
The currency of the holding.
-
is_active boolean
Denotes if the holding is active/inactive.
-
portfolio_uuid string
Optional UUID of a portfolio to add the holding to.
POST
/api/v1/plans/{plan_uuid}/sub-accounts/{subAccount_uuid}/holdings
curl \
-X POST https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/subAccount_uuid/holdings \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"fund_name":"My Fund","reference":"ABC12345","provider":"Financial Provider","sector":"Europe","sedol":"ABC12345","isin":"ABC12345","citi":"ABC12345","units":10.0,"unit_price":10000,"unit_price_raw":100.2334234,"purchase_price":5000,"currency":"GBP","is_active":true,"portfolio_uuid":"c3a66723-6f10-4bcb-92e8-b97f951b1b1f"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"fund_name": "My Fund",
"reference": "ABC12345",
"provider": "Financial Provider",
"sector": "Europe",
"sedol": "ABC12345",
"isin": "ABC12345",
"citi": "ABC12345",
"units": 10.0,
"unit_price": 10000,
"unit_price_raw": 100.2334234,
"purchase_price": 5000,
"currency": "GBP",
"is_active": true,
"portfolio_uuid": "c3a66723-6f10-4bcb-92e8-b97f951b1b1f"
}
Response examples (200)
{
"citi": "ACB123",
"isin": "ACB123",
"uuid": "409042d2-81bd-44a0-9e51-db3d4dd2539d",
"sedol": "ACB123",
"units": 5,
"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"
}
},
"sector": "Europe",
"fund_name": "Fund",
"is_active": true,
"reference": "REF123",
"created_at": "2025-01-17T11:18:31+00:00",
"unit_price": {
"amount": {
"example": "1000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
},
"formatted": {
"example": "£10.00",
"description": "Money amount formatted with currency"
}
},
"updated_at": "2025-01-17T11:18:31+00:00",
"sub_account": {
"name": "John's ISA",
"uuid": "74df1687-3682-4e34-97db-a024cda58bbb",
"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": "App\\Http\\Resources\\Plans\\PortfolioResource",
"latest_valuation": "App\\Http\\Resources\\Plans\\ValuationResource"
},
"purchase_price": {
"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"
}
},
"unit_price_raw": 10,
"external_references": {
"uuid": "21da1602-3632-4332-a046-9e0a6c781122",
"reference": "AB123456",
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"third_party": "nucleus"
}
}