Rows
curl --request GET \
--url https://api.sortx.co.uk/reports/{report}/rows \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/reports/{report}/rows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/reports/{report}/rows"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"report": "property-repairs-reported",
"items": [
{
"id": "<string>",
"subject": {
"kind": "<string>",
"id": "<string>"
},
"label": "<string>",
"detail": "<string>",
"on": "<string>",
"group": "<string>",
"groupLabel": "<string>",
"month": "<string>",
"branchId": "<string>",
"branchName": "<string>",
"amounts": [
{
"id": "<string>",
"source": {
"minor": 123,
"currency": "<string>"
},
"converted": 123
}
]
}
],
"bucket": {
"key": "<string>",
"label": "<string>",
"rows": 123,
"measures": [
{
"id": "<string>",
"value": 123,
"unknown": 123,
"unconvertible": 123,
"mean": 123,
"median": 123
}
]
},
"nextCursor": "<string>",
"fingerprint": "<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": "ReportsBusy",
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}reports
Rows
The records behind a report figure, paged; every page carries the totals they add up to
GET
/
reports
/
{report}
/
rows
Rows
curl --request GET \
--url https://api.sortx.co.uk/reports/{report}/rows \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sortx.co.uk/reports/{report}/rows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/reports/{report}/rows"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"report": "property-repairs-reported",
"items": [
{
"id": "<string>",
"subject": {
"kind": "<string>",
"id": "<string>"
},
"label": "<string>",
"detail": "<string>",
"on": "<string>",
"group": "<string>",
"groupLabel": "<string>",
"month": "<string>",
"branchId": "<string>",
"branchName": "<string>",
"amounts": [
{
"id": "<string>",
"source": {
"minor": 123,
"currency": "<string>"
},
"converted": 123
}
]
}
],
"bucket": {
"key": "<string>",
"label": "<string>",
"rows": 123,
"measures": [
{
"id": "<string>",
"value": 123,
"unknown": 123,
"unconvertible": 123,
"mean": 123,
"median": 123
}
]
},
"nextCursor": "<string>",
"fingerprint": "<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": "ReportsBusy",
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}Authorizations
A workspace API key (Settings → API keys), scoped to <group>:read / <group>:write.
Path Parameters
Available options:
property-repairs-reported, property-repairs-completed, property-compliance, property-inspections, property-planned, property-keys, property-complaints, repairs-response-time, repairs-attend-time, repairs-complete-time, repairs-spend-by-trade, repairs-contractors, repairs-repeat, repairs-ai-work, money-contractor-invoices Query Parameters
Response
Success
Available options:
property-repairs-reported, property-repairs-completed, property-compliance, property-inspections, property-planned, property-keys, property-complaints, repairs-response-time, repairs-attend-time, repairs-complete-time, repairs-spend-by-trade, repairs-contractors, repairs-repeat, repairs-ai-work, money-contractor-invoices Show child attributes
Show child attributes
Show child attributes
Show child attributes