Body Required
-
HouseholdLabel string | null
Maximum length is
60
. -
To retrieve a comprehensive list of acceptable values and their corresponding formatted values, you may make a request to the designated endpoint: /api/v2/household/options
POST
/api/v2/household
curl \
-X POST https://api.fincalc.co.uk/api/v2/household \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ClientGUID":"3F0B1C88-6D80-4C17-BB3E-1D68E6D26405","RelatedClientGUID":"8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D","HouseholdLabel":"Mr and Mrs Jackson","BaselineAssumptionSetGUID":"EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90"}'
Request examples
{
"ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"RelatedClientGUID": "8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D",
"HouseholdLabel": "Mr and Mrs Jackson",
"BaselineAssumptionSetGUID": "EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90"
}
Response examples (200)
{
"success": true,
"data": {
"HouseholdGUID": "5EF25021-1B07-484E-A730-FBF0FD28BA86",
"ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"RelatedClientGUID": "8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D",
"HouseholdLabel": "Mr and Mrs Jackson",
"BaselineAssumptionSetGUID": "EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90",
"FormattedValues": {
"ClientGUID": "Terry Jackson",
"RelatedClientGUID": "June Jackson",
"BaselineAssumptionSetGUID": "FinCalc Default Fixed 0%"
}
},
"message": "Household created successfully."
}
Response examples (403)
{
"success": false,
"message": "You do not have permission to edit the client."
}
Response examples (404)
{
"success": false,
"message": "Client not found."
}
Response examples (409)
{
"success": false,
"message": "Clients are not in a relationship with each other."
}
Response examples (422)
{
"success": false,
"message": "Validation Error.",
"data": {
"ClientGUID": [
"The client guid field is required."
]
}
}