Update saving
This endpoint allows users to update a saving for a household.
      
  
    
  
        Body
      
    Required
 
    
  
  - 
    
  
ClientGUID must be in the household.
 - 
    
  
The following characters are not permitted: \:*"<>|
Maximum length is
100. - 
    
  
Savings type cannot be changed if saving has a contribution or withdrawal or is the default account.
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/{HouseholdGUID}/savings/options
 - 
    
  
Value must not be less than 0 if SavingsType value is not 1.
 - 
    
  
Date must be before or equal to today.
Dates should be provided in the format "Y-m-d", where "Y" represents the year, "m" represents the month and "d" represents the day. For example, "2023-07-24" represents 24th July, 2023.
 - 
    
  
The following SavingsType can not have a joint owner: 3, 4, 6, 10, 14, 18, 19 and 21. JointOwnerClientGUID must be in the household.
 - 
    
  
Value must not be less than 0.
 - 
    
  
Must be a dependant of one of the clients within the household.
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/{HouseholdGUID}/savings/options
 - 
    
  
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/{HouseholdGUID}/savings/options
 - 
    
  
Dates should be provided in the format "Y-m-d", where "Y" represents the year, "m" represents the month and "d" represents the day. For example, "2023-07-24" represents 24th July, 2023.
 - 
    
  
Percentage of ownership attributed to client 1.
- For households with two clients, client 1 corresponds to the "ClientGUID" in the household record.
 - Leave the field unset or blank if Client 1 has no ownership.
 
Maximum value is
100. - 
    
  
Percentage of ownership attributed to client 2. This is only applicable for joint households.
- Client 2 corresponds to the “RelatedClientGUID” in the household record.
 - This is not a required field (and NULL is accepted) unless Client1PercentageOwned is greater than 0.
 - When set, the value must be greater than 0 and not exceed 100. Values can include 2 decimal places.
 - The total of Client2PercentageOwned + Client1PercentageOwned cannot exceed 100.
 - This field should not be set for single-client households.
 
Maximum value is
100. - 
    
  
Maximum length is
255. - 
    
  
An integer representing the status of the back office sync:
- 1: Yes
 - 2: No
 - 3: Only update from back office
 
 - 
    
  
Maximum length is
50. - 
    
  
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/{HouseholdGUID}/savings/options
 - 
    
  
Only relevant in the cashflow when the savings type is 3 or 6.
 - 
    
  
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/{HouseholdGUID}/pensions/options
 - 
    
  
This field is required if the value of SavingsType > 5 and FutureRiskLevelChange = 1.
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/{HouseholdGUID}/savings/options
 - 
    
  
This field is required if the value of SavingsType > 5 and FutureRiskLevelChange = 1.
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/{HouseholdGUID}/pensions/options
 - 
    
  
This field is required if the value of SavingsType > 5, FutureRiskLevelChange = 1 and FutureRiskDateOfChangeBasis = 4.
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/{HouseholdGUID}/pensions/options
 - 
    
  
This field is required if the value of SavingsType > 5, FutureRiskLevelChange = 1 and FutureRiskDateOfChangeBasis = 2 or 7. FutureRiskDateOfChangeAge must be in the future
Minimum value is
0, maximum value is130. - 
    
  
This field is required if the value of SavingsType > 5, FutureRiskLevelChange = 1 and FutureRiskDateOfChangeBasis = 3. FutureRiskDateOfChangeDate must be in the future
Dates should be provided in the format "Y-m-d", where "Y" represents the year, "m" represents the month and "d" represents the day. For example, "2023-07-24" represents 24th July, 2023.
 - 
    
  
If set to any value, formatted values will be excluded from the response.
 - 
    
  
NeverTouch cannot be changed if saving is the default account.
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/{HouseholdGUID}/savings/options
 
curl \
 --request PUT 'https://api.fincalc.co.uk/api/v2/household/{HouseholdGUID}/savings/{SavingsGUID}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"ClientGUID":"3F0B1C88-6D80-4C17-BB3E-1D68E6D26405","SavingsDescription":"API Test","SavingsType":22,"Value":150000.1,"ValueDate":"2023-04-20","JointOwnerClientGUID":"3F0B1C88-6D80-4C17-BB3E-1D68E6D26405","MinimumBalance":10000.1,"DependantGUID":"4FDA7A23-46AF-45B0-89DB-635544D65147","ATRGUID":"2C17A278-08E9-436D-B826-F6F6EF5730AB","OriginalInvestmentValue":1500,"OriginalInvestmentDate":"2023-04-20","OriginalInvestmentPercentageWithdrawn":15,"UseAnnualExemptAmount":1,"Client1PercentageOwned":50,"Client2PercentageOwned":50,"BackOfficeID":13573,"BackOfficeSync":1,"PolicyNumber":134300454,"ProviderCode":"8379dc94-3bcf-e011-87a9-b8ac6f1693a9","ISASpecialType":1,"FutureRiskLevelChange":1,"FutureRiskATRGUID":"57CC527B-9C77-48AB-9763-54462C5645BA","FutureRiskDateOfChangeBasis":3,"FutureRiskDateOfChangeEventGUID":"1A58F6C8-90BD-4D2D-9B22-3E1F9C8E15E7","FutureRiskDateOfChangeAge":65,"FutureRiskDateOfChangeDate":"2069-02-01","ExcludeFormattedValues":1,"NeverTouch":2}'
    {
  "ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
  "SavingsDescription": "API Test",
  "SavingsType": 22,
  "Value": 150000.1,
  "ValueDate": "2023-04-20",
  "JointOwnerClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
  "MinimumBalance": 10000.1,
  "DependantGUID": "4FDA7A23-46AF-45B0-89DB-635544D65147",
  "ATRGUID": "2C17A278-08E9-436D-B826-F6F6EF5730AB",
  "OriginalInvestmentValue": 1500,
  "OriginalInvestmentDate": "2023-04-20",
  "OriginalInvestmentPercentageWithdrawn": 15,
  "UseAnnualExemptAmount": 1,
  "Client1PercentageOwned": 50,
  "Client2PercentageOwned": 50,
  "BackOfficeID": 13573,
  "BackOfficeSync": 1,
  "PolicyNumber": 134300454,
  "ProviderCode": "8379dc94-3bcf-e011-87a9-b8ac6f1693a9",
  "ISASpecialType": 1,
  "FutureRiskLevelChange": 1,
  "FutureRiskATRGUID": "57CC527B-9C77-48AB-9763-54462C5645BA",
  "FutureRiskDateOfChangeBasis": 3,
  "FutureRiskDateOfChangeEventGUID": "1A58F6C8-90BD-4D2D-9B22-3E1F9C8E15E7",
  "FutureRiskDateOfChangeAge": 65,
  "FutureRiskDateOfChangeDate": "2069-02-01",
  "ExcludeFormattedValues": 1,
  "NeverTouch": 2
}
{
  "success": true,
  "data": {
    "SavingsGUID": "E4A4A332-C53C-4C33-8D5B-1B846C3D6D6D",
    "ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
    "SavingsDescription": "API Test",
    "SavingsType": 22,
    "Value": 150000.1,
    "ValueDate": "2023-04-20",
    "JointOwnerClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
    "MinimumBalance": 10000.1,
    "DependantGUID": "4FDA7A23-46AF-45B0-89DB-635544D65147",
    "ATRGUID": "578BA458-3E95-4B43-9236-D87343A1D2BD",
    "OriginalInvestmentValue": 1500,
    "OriginalInvestmentDate": "2023-04-20",
    "OriginalInvestmentPercentageWithdrawn": 15,
    "UseAnnualExemptAmount": 1,
    "Client1PercentageOwned": 50,
    "Client2PercentageOwned": 50,
    "BackOfficeID": "F7FBB6B1-2D90-485C-AE89-9F9FA0426F1E",
    "BackOfficeSync": 1,
    "PolicyNumber": 134300454,
    "ProviderCode": "8379dc94-3bcf-e011-87a9-b8ac6f1693a9",
    "DefaultAccount": 1,
    "ISASpecialType": 1,
    "FutureRiskLevelChange": 1,
    "FutureRiskATRGUID": "725DFBCE-A2EE-4766-AAF3-4BCB3879D1E9",
    "FutureRiskDateOfChangeBasis": 4,
    "FutureRiskDateOfChangeEventGUID": "F3AAED8D-3A5F-44B5-BC6D-9E8C7646C9D7",
    "FutureRiskDateOfChangeAge": 55,
    "FutureRiskDateOfChangeDate": "2069-05-04",
    "NeverTouch": 2,
    "FormattedValues": {
      "Value": "£150,000",
      "ATRGUID": "Medium",
      "ValueDate": "20/04/2023",
      "NeverTouch": "No",
      "SavingsType": "Structured Product",
      "ProviderCode": "1st Source Direct",
      "DependantGUID": "Diane Edwards",
      "DefaultAccount": "No",
      "ISASpecialType": "Junior ISA",
      "MinimumBalance": "£10,000",
      "FutureRiskATRGUID": "Lowest",
      "FutureRiskLevelChange": "Yes",
      "UseAnnualExemptAmount": "Yes",
      "Client1PercentageOwned": "50%",
      "Client2PercentageOwned": "50%",
      "OriginalInvestmentDate": "20/04/2023",
      "OriginalInvestmentValue": "£1,500",
      "FutureRiskDateOfChangeDate": "04/05/2069",
      "FutureRiskDateOfChangeBasis": "Event",
      "FutureRiskDateOfChangeEventGUID": "API's State Pension Age",
      "OriginalInvestmentPercentageWithdrawn": "15%"
    }
  }
}
{
  "success": false,
  "message": "You do not have permission to edit the household."
}
{
  "success": false,
  "message": "Household not found."
}
{
  "success": false,
  "message": "Validation Error.",
  "data": {
    "ClientGUID": [
      "The client guid field is required."
    ]
  }
}
{
  "success": false,
  "message": "Failed to update the savings."
}