Track repairs
curl --request GET \
--url https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}const options = {method: 'GET'};
fetch('https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}"
response = requests.get(url)
print(response.text){
"agency": {
"name": "<string>",
"phone": "<string>"
},
"timeZone": "<string>",
"firstName": "<string>",
"repairs": [
{
"reference": "<string>",
"category": "<string>",
"urgency": "routine",
"status": "<string>",
"open": true,
"reportedAt": "<string>",
"targetBy": "<string>",
"targetLabel": "<string>",
"overdue": true,
"steps": [
{
"kind": "reported",
"at": "<string>"
}
],
"visit": {
"startsAt": "<string>",
"endsAt": "<string>"
},
"contractor": {
"name": "<string>",
"trade": "<string>"
},
"keysArranged": true,
"waiting": {
"reason": "awaiting-review",
"text": "<string>"
},
"hazard": {
"level": "emergency",
"inspectBy": "<string>",
"inspectedAt": "<string>",
"noHazardFound": true,
"findingsBy": "<string>",
"findingsSentAt": "<string>",
"safeBy": "<string>",
"madeSafeAt": "<string>"
},
"photos": [
{
"id": "<string>",
"name": "<string>",
"addedAt": "<string>"
}
],
"closedNote": "<string>",
"partsExpectedOn": "<string>",
"actions": {
"canAddNote": true,
"notesLeft": 123,
"canAnswerVisit": true,
"visitConfirmed": true,
"visitChangeAsked": true,
"canReportNoShow": true,
"noShowReported": true,
"canReportEmergency": true,
"canGiveFeedback": true,
"feedbackOutcome": "reopen",
"feedback": {
"fixed": true,
"rating": 123,
"at": "<string>"
},
"notes": [
{
"body": "<string>",
"at": "<string>"
}
],
"couldNotGetIn": {
"visitStartsAt": "<string>",
"canAsk": true,
"asked": true
}
}
}
]
}{
"_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>"
}maintenance-pro-public
Track repairs
Read every repair a reporter’s signed tracking link covers
GET
/
p
/
:tenant
/
repair-tracking
/
{token}
Track repairs
curl --request GET \
--url https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}const options = {method: 'GET'};
fetch('https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/p/:tenant/repair-tracking/{token}"
response = requests.get(url)
print(response.text){
"agency": {
"name": "<string>",
"phone": "<string>"
},
"timeZone": "<string>",
"firstName": "<string>",
"repairs": [
{
"reference": "<string>",
"category": "<string>",
"urgency": "routine",
"status": "<string>",
"open": true,
"reportedAt": "<string>",
"targetBy": "<string>",
"targetLabel": "<string>",
"overdue": true,
"steps": [
{
"kind": "reported",
"at": "<string>"
}
],
"visit": {
"startsAt": "<string>",
"endsAt": "<string>"
},
"contractor": {
"name": "<string>",
"trade": "<string>"
},
"keysArranged": true,
"waiting": {
"reason": "awaiting-review",
"text": "<string>"
},
"hazard": {
"level": "emergency",
"inspectBy": "<string>",
"inspectedAt": "<string>",
"noHazardFound": true,
"findingsBy": "<string>",
"findingsSentAt": "<string>",
"safeBy": "<string>",
"madeSafeAt": "<string>"
},
"photos": [
{
"id": "<string>",
"name": "<string>",
"addedAt": "<string>"
}
],
"closedNote": "<string>",
"partsExpectedOn": "<string>",
"actions": {
"canAddNote": true,
"notesLeft": 123,
"canAnswerVisit": true,
"visitConfirmed": true,
"visitChangeAsked": true,
"canReportNoShow": true,
"noShowReported": true,
"canReportEmergency": true,
"canGiveFeedback": true,
"feedbackOutcome": "reopen",
"feedback": {
"fixed": true,
"rating": 123,
"at": "<string>"
},
"notes": [
{
"body": "<string>",
"at": "<string>"
}
],
"couldNotGetIn": {
"visitStartsAt": "<string>",
"canAsk": true,
"asked": true
}
}
}
]
}{
"_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>"
}