OAuth 2.0 token endpoint. Supports the client_credentials grant. Credentials may be sent in the request body or via HTTP Basic authentication.
| grant_type required | string Value: "client_credentials" OAuth 2.0 grant type. Only "client_credentials" is supported. |
| client_id | string The OAuth client id. May alternatively be provided via HTTP Basic auth. |
| client_secret | string The OAuth client secret. May alternatively be provided via HTTP Basic auth. |
| scope | string Space-separated list of requested scopes. For the following iterations. This field should be omitted for now. |
{- "grant_type": "client_credentials",
- "client_id": "string",
- "client_secret": "string",
- "scope": "string"
}{- "access_token": "string",
- "token_type": "Bearer",
- "expires_in": 0,
- "scope": "string"
}{- "customers": [
- {
- "id": 0,
- "accountId": 0,
- "casaviTenantId": 0,
- "casaviContactId": 0,
- "internalId": "string",
- "externalId": "string",
- "name": "string",
- "status": "string",
- "statusUpdatedAt": "string",
- "telephone": "string",
- "addressId": 0,
- "origin": "string",
- "techemId": "string",
- "oasisId": "string",
- "emailAddress": "string",
- "assfinetId": "string",
- "autoAssignUserId": 0,
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}
}
]
}Gets one specific order by ID
| orderId required | number |
{- "id": 0,
- "title": "string",
- "status": "OPEN",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "dueDate": "string",
- "followUpDate": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "internalId": "string",
- "isInternal": true,
- "type": "string",
- "taskId": "string",
- "propertyId": 0,
- "casaviOrderId": 0,
- "casaviTicketId": 0,
- "fields": [
- {
- "id": 0,
- "position": 0,
- "name": "string",
- "content": "string"
}
], - "attachments": [
- {
- "name": "string",
- "itemType": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "comments": [
- {
- "id": 0,
- "text": "string",
- "orderId": 0,
- "author": "string",
- "statusChange": "string",
- "attachments": [
- {
- "name": "string",
- "itemType": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
], - "contactPersons": [
- {
- "type": "string",
- "name": "string",
- "id": 0,
- "telephone": "string",
- "mobile": "string",
- "emailAddress": "string"
}
], - "customerId": 0,
- "customer": {
- "id": 0,
- "name": "string",
- "emailAddress": "string",
- "telephone": "string",
- "internalId": "string",
- "status": "string"
}
}Patches an order
| orderId required | number |
| status | string Enum: "OPEN" "IN_PROGRESS" "FINISHED" "DECLINED" "NULL" "PREPARE" |
| dueDate | string <date-time> |
| internalId | string |
object (ApiAddress) |
{- "status": "OPEN",
- "dueDate": "2019-08-24T14:15:22Z",
- "internalId": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}
}0Gets all comments related to one order
| orderId required | number |
[- {
- "id": 0,
- "text": "string",
- "orderId": 0,
- "author": "string",
- "statusChange": "string",
- "attachments": [
- {
- "name": "string",
- "itemType": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
]Creates an order comment
| orderId required | number |
| text required | string |
| authorName required | string |
| files | Array of arrays A maximum of 10 files and 100 MB |
{- "id": 0
}[- {
- "id": 0,
- "title": "string",
- "status": "OPEN",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "dueDate": "string",
- "followUpDate": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "internalId": "string",
- "isInternal": true,
- "type": "string",
- "taskId": "string",
- "propertyId": 0,
- "casaviOrderId": 0,
- "casaviTicketId": 0,
- "fields": [
- {
- "id": 0,
- "position": 0,
- "name": "string",
- "content": "string"
}
], - "attachments": [
- {
- "name": "string",
- "itemType": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "comments": [
- {
- "id": 0,
- "text": "string",
- "orderId": 0,
- "author": "string",
- "statusChange": "string",
- "attachments": [
- {
- "name": "string",
- "itemType": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
], - "contactPersons": [
- {
- "type": "string",
- "name": "string",
- "id": 0,
- "telephone": "string",
- "mobile": "string",
- "emailAddress": "string"
}
], - "customerId": 0,
- "customer": {
- "id": 0,
- "name": "string",
- "emailAddress": "string",
- "telephone": "string",
- "internalId": "string",
- "status": "string"
}
}
]Get Property by Id
| propertyId required | number |
{- "id": 0,
- "name": "string",
- "externalId": 0,
- "customerId": 0,
- "origin": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "mscNumber": "string",
- "createdAt": "string",
- "updatedAt": "string"
}Gets properties by accountId
| limit required | number |
| offset required | number |
{- "properties": [
- {
- "id": 0,
- "name": "string",
- "externalId": 0,
- "customerId": 0,
- "origin": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "mscNumber": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}Gets units by customer
| limit required | number |
| offset required | number |
{- "units": [
- {
- "propertyId": 0,
- "id": "string",
- "name": "string",
- "unitMscNumber": "string",
- "propertyMscNumber": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}Gets units by customer. Only Units that have an mscNumber
| limit required | number |
| offset required | number |
{- "units": [
- {
- "propertyId": 0,
- "id": "string",
- "name": "string",
- "unitMscNumber": "string",
- "propertyMscNumber": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}Consumes eed data
| propertyId required | integer ID of property |
| unitId required | number ID of unit |
| customerId required | number ID of customer |
| period required | string Month of measurement. Format: YYYY-mm |
| mscName required | string Measurement service company name |
required | Array of objects (EedConsumptionDto) Eed consumption data |
required | Array of objects (BenchmarkDto) Eed benchmark data |
{- "propertyId": 0,
- "unitId": 0,
- "customerId": 0,
- "period": "string",
- "mscName": "string",
- "consumptions": [
- {
- "service": "string",
- "unitofmeasure": "string",
- "converted": true,
- "estimated": true,
- "amount": 0,
- "errors": true
}
], - "benchmarks": [
- {
- "service": "string",
- "unitofmeasure": "string",
- "amount": 0
}
]
}Creates an appointment
| title required | string title |
| description | string description |
| dateStart required | string <2021-02-06 11:00:00> dateStart |
| dateEnd required | string <2021-02-06 11:00:00> dateEnd |
| location required | string location |
| customerId required | number |
{- "title": "string",
- "description": "string",
- "dateStart": "string",
- "dateEnd": "string",
- "location": "string",
- "customerId": 0
}{- "id": 0
}Updates an appointment
| appointmentId required | number |
| title | string title |
| description | string description |
| dateStart | string <2021-02-06 11:00:00> dateStart |
| dateEnd | string <2021-02-06 11:00:00> dateEnd |
| location | string location |
| customerId | number |
{- "title": "string",
- "description": "string",
- "dateStart": "string",
- "dateEnd": "string",
- "location": "string",
- "customerId": 0
}{- "id": 0
}[DEPRECATED] Creates a document
| title required | string The title of the document |
| propertyId required | string The property id the document should be attached to |
| customerId required | string The customer id the document is coming from |
{- "title": "string",
- "propertyId": "string",
- "customerId": "string"
}{- "id": 0
}Creates a document. In order to create the document successfully we need at least one reference to a property and a customer. Therefore, please provide either a property id or internal property id and a customer id or internal customer id.
| title required | string The title of the document |
| propertyId | string The property id the document should be attached to |
| internalPropertyId | string The internal property id the document should be attached to |
| customerId | string The customer id the document should be attached to |
| internalCustomerId | string The internal customer id the document should be attached to |
{- "title": "string",
- "propertyId": "string",
- "internalPropertyId": "string",
- "customerId": "string",
- "internalCustomerId": "string"
}{- "id": 0
}| documentId required | string |
| name required | string File name |
| fileType required | string MIME Type, must be application/pdf |
| content required | string Base64 encoded content |
| metadata | object Data for casavi to assign the attachment |
{- "name": "string",
- "fileType": "string",
- "content": "string",
- "metadata": { }
}