Localised Land Transaction Tax Calculator?
Calculate the localised land transaction tax for a property in Wales.
Endpoints
https://land-property-platform.herokuapp.com/LLTT_calculator
Parameters
address: (string) The address of the property
value: (integer) The sale value of the property in GBP
attributes: (json) Key : Value attributes of the property. Options:
__second_home__: (true | false)
__buy_to_let__: (true | false)
__attribute_a:__ (1 | 2)
__attribute_b:__ (1 | 2 | 3)
use_polygon: (boolean) If true the plygon land extent asociated with the property will be used to determine the tax zone. Extents crossing zone boarders will be apportioned appropriately.
Examples
Requests
Simple request body:
{
"address": "199, Mountain Road, Upper Leadworth",
"value": 200000
}
Or curl request:
curl -X 'POST' \
'https://land-property-platform.herokuapp.com/LLTT_calculator' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"address": "199, Mountain Road, Upper Leadworth",
"value": 200000
}'
Or using python:
import requests
import json
address = "199, Mountain Road, Upper Leadworth"
value = 200000
json_data = json.dumps({"address": address, "value": value})
response = requests.post(
"https://land-property-platform.herokuapp.com/LLTT_calculator",
data=json_data,
)
Request body containing attributes:
{
"address": "199, Mountain Road, Upper Leadworth",
"value": 200000,
"attributes": {
"second_home": true
}
}
Request body containing attributes and use_polygon:
{
"address": "1, Pontypandy",
"value": 150000,
"attributes": {
"buy_to_let": true,
"attribute_a": 2
},
"use_polygon": true
}
Multiple jsons can be sent in a json array and will recieve a list of results in the response
Response
Response body example:
[
8650
]
Or for json array requests:
[
8650,
9650.5
]
Response body schema:
[
integer | float
]