To book queue
curl --request GET \
--url https://api.sortx.co.uk/maintenance-pro/to-book \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/maintenance-pro/to-book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/maintenance-pro/to-book"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"repairId": "<string>",
"reference": "<string>",
"place": "<string>",
"fault": "<string>",
"urgency": "<string>",
"repairStatus": "<string>",
"target": {
"dueAt": "<string>",
"label": "<string>",
"due": "<string>",
"tone": "overdue"
},
"photos": 123,
"limit": {
"state": "under",
"estimate": {
"amountMinor": 0,
"currency": "<string>"
},
"limit": {
"amountMinor": 0,
"currency": "<string>"
},
"label": "<string>"
},
"status": {
"code": "ready",
"label": "<string>"
},
"contractor": {
"contactId": "<string>",
"name": "<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>"
}maintenance-pro
To book queue
The repairs waiting for a contractor or a visit, soonest target first, with each one’s limit and where booking stands
GET
/
maintenance-pro
/
to-book
To book queue
curl --request GET \
--url https://api.sortx.co.uk/maintenance-pro/to-book \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/maintenance-pro/to-book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/maintenance-pro/to-book"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"repairId": "<string>",
"reference": "<string>",
"place": "<string>",
"fault": "<string>",
"urgency": "<string>",
"repairStatus": "<string>",
"target": {
"dueAt": "<string>",
"label": "<string>",
"due": "<string>",
"tone": "overdue"
},
"photos": 123,
"limit": {
"state": "under",
"estimate": {
"amountMinor": 0,
"currency": "<string>"
},
"limit": {
"amountMinor": 0,
"currency": "<string>"
},
"label": "<string>"
},
"status": {
"code": "ready",
"label": "<string>"
},
"contractor": {
"contactId": "<string>",
"name": "<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>"
}