Compliance board gas
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/gas-safety \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/gas-safety', 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/gas-safety"
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
}
],
"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>",
"appliances": [
"<string>"
],
"engineer": "<string>",
"bookedOn": "<string>",
"lastCheckOn": "<string>",
"expiresOn": "<string>",
"daysLeft": 123,
"tenantCopy": {
"state": "sent",
"dueOn": "<string>",
"sentOn": "<string>",
"label": "<string>"
},
"facts": [
{
"label": "<string>",
"value": "<string>"
}
],
"history": [
{
"state": "done",
"title": "<string>",
"sub": "<string>",
"on": "<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 gas
Gas safety: every property with gas, its engineer, expiry, tenant copy and reminders
GET
/
compliance
/
boards
/
gas-safety
Compliance board gas
curl --request GET \
--url https://api.sortx.co.uk/compliance/boards/gas-safety \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/compliance/boards/gas-safety', 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/gas-safety"
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
}
],
"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>",
"appliances": [
"<string>"
],
"engineer": "<string>",
"bookedOn": "<string>",
"lastCheckOn": "<string>",
"expiresOn": "<string>",
"daysLeft": 123,
"tenantCopy": {
"state": "sent",
"dueOn": "<string>",
"sentOn": "<string>",
"label": "<string>"
},
"facts": [
{
"label": "<string>",
"value": "<string>"
}
],
"history": [
{
"state": "done",
"title": "<string>",
"sub": "<string>",
"on": "<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>"
}