People approve by phone
curl --request POST \
--url https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"requestId": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({requestId: '<string>', note: '<string>'})
};
fetch('https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone"
payload = {
"requestId": "<string>",
"note": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contactId": "<string>",
"companyId": "<string>",
"name": "<string>",
"kind": "individual",
"email": "<string>",
"mobile": "<string>",
"prefers": "whatsapp",
"canSpend": {
"limitMinor": 123,
"currency": "<string>",
"emergencyShort": "<string>"
},
"waiting": {
"count": 123,
"totalMinor": 123,
"currency": "<string>",
"remindedAt": "<string>"
},
"pending": [
{
"approvalId": "<string>",
"repairId": "<string>",
"reference": "<string>",
"title": "<string>",
"propertyId": "<string>",
"propertyLine": "<string>",
"contractorName": "<string>",
"note": "<string>",
"amountMinor": 123,
"currency": "<string>",
"sentAt": "<string>",
"remindedAt": "<string>",
"timeline": [
{
"kind": "sent",
"at": "<string>",
"state": "done",
"channels": [
"<string>"
]
}
]
}
],
"properties": [
{
"propertyId": "<string>",
"label": "<string>",
"description": "<string>",
"status": "let",
"emptySince": "<string>",
"compliance": {
"issues": 123,
"line": "<string>"
},
"repairs": {
"open": 123,
"waitingApproval": 123,
"line": "<string>"
}
}
],
"works": {
"from": "<string>",
"totalMinor": 123,
"currency": "<string>",
"jobs": 123,
"propertyCount": 123,
"rows": [
{
"repairId": "<string>",
"doneOn": "<string>",
"title": "<string>",
"propertyId": "<string>",
"propertyLine": "<string>",
"contractorName": "<string>",
"amountMinor": 123
}
]
},
"preferences": {
"approvalMethod": "email_link",
"invoiceRoute": "from_rent",
"lines": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>"
}
]
},
"withheld": [
"<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>"
}people
People approve by phone
Record that the landlord approved the quote by phone: logged against the quote, the work order can go
POST
/
people
/
landlords
/
{contactId}
/
approvals
/
{approvalId}
/
approve-by-phone
People approve by phone
curl --request POST \
--url https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"requestId": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({requestId: '<string>', note: '<string>'})
};
fetch('https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/people/landlords/{contactId}/approvals/{approvalId}/approve-by-phone"
payload = {
"requestId": "<string>",
"note": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contactId": "<string>",
"companyId": "<string>",
"name": "<string>",
"kind": "individual",
"email": "<string>",
"mobile": "<string>",
"prefers": "whatsapp",
"canSpend": {
"limitMinor": 123,
"currency": "<string>",
"emergencyShort": "<string>"
},
"waiting": {
"count": 123,
"totalMinor": 123,
"currency": "<string>",
"remindedAt": "<string>"
},
"pending": [
{
"approvalId": "<string>",
"repairId": "<string>",
"reference": "<string>",
"title": "<string>",
"propertyId": "<string>",
"propertyLine": "<string>",
"contractorName": "<string>",
"note": "<string>",
"amountMinor": 123,
"currency": "<string>",
"sentAt": "<string>",
"remindedAt": "<string>",
"timeline": [
{
"kind": "sent",
"at": "<string>",
"state": "done",
"channels": [
"<string>"
]
}
]
}
],
"properties": [
{
"propertyId": "<string>",
"label": "<string>",
"description": "<string>",
"status": "let",
"emptySince": "<string>",
"compliance": {
"issues": 123,
"line": "<string>"
},
"repairs": {
"open": 123,
"waitingApproval": 123,
"line": "<string>"
}
}
],
"works": {
"from": "<string>",
"totalMinor": 123,
"currency": "<string>",
"jobs": 123,
"propertyCount": 123,
"rows": [
{
"repairId": "<string>",
"doneOn": "<string>",
"title": "<string>",
"propertyId": "<string>",
"propertyLine": "<string>",
"contractorName": "<string>",
"amountMinor": 123
}
]
},
"preferences": {
"approvalMethod": "email_link",
"invoiceRoute": "from_rent",
"lines": [
{
"key": "<string>",
"label": "<string>",
"value": "<string>"
}
]
},
"withheld": [
"<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>"
}Authorizations
Response
Success