Retrieve all
GEThttps://api.envizage.me/scenarios/:scenarioId/persons/:personId/goals/buy-to-let
List all buy to let goals in a given household for the given person.
Request
Path Parameters
scenarioId stringrequired
The scenario's id
personId stringrequired
The person's id
Query Parameters
page integer
Zero-based page index (0..N)
size integer
Default value: 20
The size of the page to be returned
sort string[]
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
content object[]
empty boolean
first boolean
last boolean
number int32
numberOfElements int32
pageable object
size int32
sort object
totalElements int64
totalPages int32
{
"content": [
{
"annualNetRentalYieldPercentage": 0.025,
"currency": "GBP",
"description": "My resource's description",
"desiredAmount": 10000,
"enabled": true,
"endDate": "2026-01-01T00:00:00.000Z",
"endsOn": "USER_DEFINED",
"frequency": "ONE_OFF",
"fundingSources": [
{
"class": "LiquidAssetsFundingSource",
"description": "Liquid assets funding source",
"name": "Liquid assets",
"wrappers": [
"GENERAL_INVESTMENT_ACCOUNT",
"TAX_ADVANTAGED",
"PENSION"
]
}
],
"growthRate": "CALCULATED",
"id": "1",
"maximumAbsoluteSpreadAllowed": 0,
"minimumAmount": 10000,
"name": "My resource",
"priority": 1,
"properties": {
"property_1": "Value of property 1",
"property_2": "Value of property 2"
},
"spreadOverGrowthRate": 0,
"startDate": "2025-01-01T00:00:00.000Z",
"startsOn": "USER_DEFINED",
"toSurvivorPercentage": 0.8
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}
Not Found
Internal Server Error
Authorization: openIdConnect
name: authenticationtype: openIdConnectscopes: scenarios:full,scenarios:read
bearerFormat: JWTopenIdConnectUrl: https://id.production.envizage.me/realms/:realmId/protocol/openid-connectscheme: Bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://api.envizage.me/scenarios/:scenarioId/persons/:personId/goals/buy-to-let' \
-H 'Accept: application/json'
ResponseClear