Create improvement
This endpoint allows users to create a new asset improvement.
Path parameters
- 
    
  
The HouseholdGUID of the client.
 - 
    
  
The AssetGUID you want to create an improvement for.
 
      
  
    
  
        Body
      
    Required
 
    
  
  - 
    
  
Value must be set to 10.
 - 
    
  
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}/assets/improvements/options
 - 
    
  
This field is required if the value of StartBasis = 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}/assets/improvements/options
 - 
    
  
This field is required if the value of StartBasis = 2 or 7. StartAge must be in the future.
Minimum value is
0, maximum value is130. - 
    
  
This field is required if the value of StartBasis = 3. StartDate should 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.
 
curl \
 --request POST 'https://api.fincalc.co.uk/api/v2/household/{HouseholdGUID}/assets/{AssetGUID}/improvements' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"TransactionType":10,"Description":"Our House","TransactionAmount":5000.1,"AssetIncrease":10000.1,"StartBasis":3,"StartEventGUID":"F3AAED8D-3A5F-44B5-BC6D-9E8C7646C9D7","StartAge":42,"StartDate":"2024-01-01","ExcludeFormattedValues":1}'
    {
  "TransactionType": 10,
  "Description": "Our House",
  "TransactionAmount": 5000.1,
  "AssetIncrease": 10000.1,
  "StartBasis": 3,
  "StartEventGUID": "F3AAED8D-3A5F-44B5-BC6D-9E8C7646C9D7",
  "StartAge": 42,
  "StartDate": "2024-01-01",
  "ExcludeFormattedValues": 1
}
{
  "success": true,
  "data": {
    "TransactionGUID": "E8F8B580-0D24-45B7-9DA1-8F11F64B6909",
    "TransactionType": 10,
    "AssetGUID": "4D09A1F6-035E-437F-9B45-842C789D9D9D",
    "Description": "Our House",
    "TransactionAmount": 5000.1,
    "AssetIncrease": 10000.1,
    "StartBasis": 3,
    "StartEventGUID": "F3AAED8D-3A5F-44B5-BC6D-9E8C7646C9D7",
    "StartAge": 42,
    "StartDate": "2024-01-01",
    "FormattedValues": {
      "AssetGUID": "Our House",
      "StartDate": "01/01/2024",
      "StartBasis": "Specific Date",
      "AssetIncrease": "£10,000",
      "TransactionType": "Asset Improvement",
      "TransactionAmount": "£5,000"
    }
  }
}
{
  "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 create asset improvement in household"
}