Upcoming
curl --request GET \
--url https://api.sortx.co.uk/inspections/upcoming \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/inspections/upcoming', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/inspections/upcoming"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "<string>",
"to": "<string>",
"items": [
{
"id": "<string>",
"reference": "<string>",
"type": "routine",
"status": "due",
"propertyId": "<string>",
"propertyLabel": "<string>",
"blockId": "<string>",
"blockLabel": "<string>",
"tenancyId": "<string>",
"dueOn": "<string>",
"overdue": true,
"notes": "<string>",
"summary": "<string>",
"outcome": "satisfactory",
"booking": {
"appointmentId": "<string>",
"status": "held",
"startsAt": "<string>",
"endsAt": "<string>",
"staffId": "<string>",
"staffName": "<string>",
"revision": 123
},
"findingCount": 123,
"followUpCount": 123,
"draftSavedAt": "<string>",
"completedAt": "<string>",
"completedByUserId": "<string>",
"cancelledAt": "<string>",
"cancelReason": "<string>",
"accessNotice": {
"givenAt": "<string>",
"method": "in_person",
"notes": "<string>",
"short": true
},
"acknowledgement": {
"receivedOn": "<string>",
"signed": true,
"commented": true,
"comments": "<string>",
"documentId": "<string>",
"recordedAt": "<string>",
"recordedByUserId": "<string>"
},
"followsInspectionId": "<string>",
"accessNote": "<string>",
"reportSentAt": "<string>",
"reportSentToEmail": "<string>",
"revision": 123,
"createdByUserId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"day": "<string>",
"startMinute": 123,
"access": {
"note": "<string>",
"source": "booking"
}
}
],
"counts": {
"all": 123,
"routine": 123,
"void": 123,
"follow_up": 123
},
"routineDueUnbooked": 123
}{
"_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>"
}inspections
Upcoming
The week’s booked visits with how the inspector gets in, and how many routine visits are due and not booked
GET
/
inspections
/
upcoming
Upcoming
curl --request GET \
--url https://api.sortx.co.uk/inspections/upcoming \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/inspections/upcoming', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/inspections/upcoming"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"from": "<string>",
"to": "<string>",
"items": [
{
"id": "<string>",
"reference": "<string>",
"type": "routine",
"status": "due",
"propertyId": "<string>",
"propertyLabel": "<string>",
"blockId": "<string>",
"blockLabel": "<string>",
"tenancyId": "<string>",
"dueOn": "<string>",
"overdue": true,
"notes": "<string>",
"summary": "<string>",
"outcome": "satisfactory",
"booking": {
"appointmentId": "<string>",
"status": "held",
"startsAt": "<string>",
"endsAt": "<string>",
"staffId": "<string>",
"staffName": "<string>",
"revision": 123
},
"findingCount": 123,
"followUpCount": 123,
"draftSavedAt": "<string>",
"completedAt": "<string>",
"completedByUserId": "<string>",
"cancelledAt": "<string>",
"cancelReason": "<string>",
"accessNotice": {
"givenAt": "<string>",
"method": "in_person",
"notes": "<string>",
"short": true
},
"acknowledgement": {
"receivedOn": "<string>",
"signed": true,
"commented": true,
"comments": "<string>",
"documentId": "<string>",
"recordedAt": "<string>",
"recordedByUserId": "<string>"
},
"followsInspectionId": "<string>",
"accessNote": "<string>",
"reportSentAt": "<string>",
"reportSentToEmail": "<string>",
"revision": 123,
"createdByUserId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"day": "<string>",
"startMinute": 123,
"access": {
"note": "<string>",
"source": "booking"
}
}
],
"counts": {
"all": 123,
"routine": 123,
"void": 123,
"follow_up": 123
},
"routineDueUnbooked": 123
}{
"_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>"
}