Compliance board epc
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/epc \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/epc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/compliance/boards/epc"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "<string>",
"dataAsOf": "<string>",
"kpis": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>",
"valueSuffix": "<string>",
"sub": "<string>",
"tone": "ok"
}
],
"tabs": [
{
"key": "<string>",
"label": "<string>",
"count": 123
}
],
"bands": [
{
"band": "A",
"count": 123
}
],
"properties": 123,
"planPropertyId": "<string>",
"rows": [
{
"propertyId": "<string>",
"property": {
"propertyId": "<string>",
"name": "<string>",
"line1": "<string>",
"postcode": "<string>",
"area": "<string>",
"town": "<string>",
"place": "<string>",
"type": "<string>",
"beds": 123,
"rooms": 123,
"hmo": true,
"blockId": "<string>",
"blockName": "<string>",
"landlordContactId": "<string>",
"landlord": "<string>",
"tenants": [
"<string>"
],
"occupants": 123,
"vacant": true,
"tenancyEndsOn": "<string>",
"nextTenancyStartsOn": "<string>"
},
"tabs": [
"<string>"
],
"status": {
"tone": "ok",
"label": "<string>"
},
"headline": {
"tone": "ok",
"label": "<string>"
},
"documentId": "<string>",
"work": {
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"kind": "<string>",
"state": "booked",
"contractorContactId": "<string>",
"contractorName": "<string>",
"visitOn": "<string>",
"note": "<string>",
"openedAt": "<string>",
"openedByUserId": "<string>",
"revision": 123,
"updatedAt": "<string>"
},
"note": "<string>",
"rating": "A",
"score": 123,
"potentialRating": "A",
"potentialScore": 123,
"assessedOn": "<string>",
"validUntil": "<string>",
"daysLeft": 123,
"measures": [
{
"order": 123,
"measure": "<string>",
"points": 123,
"costLowMinor": 123,
"costHighMinor": 123
}
],
"plan": {
"costMinor": 123,
"reachesRating": "A",
"reachesScore": 123
},
"summary": "<string>"
}
]
}{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}compliance
Compliance board epc
EPC: ratings by band, expiries and each property’s upgrade plan
GET
/
compliance
/
boards
/
epc
Compliance board epc
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/epc \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/epc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/compliance/boards/epc"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "<string>",
"dataAsOf": "<string>",
"kpis": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>",
"valueSuffix": "<string>",
"sub": "<string>",
"tone": "ok"
}
],
"tabs": [
{
"key": "<string>",
"label": "<string>",
"count": 123
}
],
"bands": [
{
"band": "A",
"count": 123
}
],
"properties": 123,
"planPropertyId": "<string>",
"rows": [
{
"propertyId": "<string>",
"property": {
"propertyId": "<string>",
"name": "<string>",
"line1": "<string>",
"postcode": "<string>",
"area": "<string>",
"town": "<string>",
"place": "<string>",
"type": "<string>",
"beds": 123,
"rooms": 123,
"hmo": true,
"blockId": "<string>",
"blockName": "<string>",
"landlordContactId": "<string>",
"landlord": "<string>",
"tenants": [
"<string>"
],
"occupants": 123,
"vacant": true,
"tenancyEndsOn": "<string>",
"nextTenancyStartsOn": "<string>"
},
"tabs": [
"<string>"
],
"status": {
"tone": "ok",
"label": "<string>"
},
"headline": {
"tone": "ok",
"label": "<string>"
},
"documentId": "<string>",
"work": {
"id": "<string>",
"subjectKind": "property",
"subjectId": "<string>",
"kind": "<string>",
"state": "booked",
"contractorContactId": "<string>",
"contractorName": "<string>",
"visitOn": "<string>",
"note": "<string>",
"openedAt": "<string>",
"openedByUserId": "<string>",
"revision": 123,
"updatedAt": "<string>"
},
"note": "<string>",
"rating": "A",
"score": 123,
"potentialRating": "A",
"potentialScore": 123,
"assessedOn": "<string>",
"validUntil": "<string>",
"daysLeft": 123,
"measures": [
{
"order": 123,
"measure": "<string>",
"points": 123,
"costLowMinor": 123,
"costHighMinor": 123
}
],
"plan": {
"costMinor": 123,
"reachesRating": "A",
"reachesScore": 123
},
"summary": "<string>"
}
]
}{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}