Creates an address
| streetAddress required | string Street and house number |
| postalCode required | string Postal code / zip code |
| locality required | string City / town |
| country required | string 2-letter country code (ISO 3166-1 alpha-2) |
| additionalInfo | string |
{- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string"
}0Creates a customer. Can also connect to casavi Tenant
| casaviAccountId | integer If provided, the customer will be connected to given casavi tenant. If not, the customer will only exist in relay |
required | object Information about the customer that will be created |
{- "casaviAccountId": 0,
- "customer": {
- "internalId": "string",
- "id": "string",
- "name": "string",
- "telephone": "string",
- "emailAddress": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}
}
}{- "casaviAccountId": 0,
- "customer": {
- "internalId": "string",
- "id": "string",
- "name": "string",
- "telephone": "string",
- "emailAddress": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}
}
}{- "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
}
}
]
}Creates or Updates one or multiple Properties.
| casaviAccountId | number |
required | Array of objects (PropertyApiDefinition) |
{- "casaviAccountId": 0,
- "properties": [
- {
- "id": "string",
- "name": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "mscNumber": "string",
- "internalId": "string",
- "externalId": "string",
- "customerId": 0
}
]
}{- "properties": [
- {
- "id": "string",
- "name": "string",
- "address": {
- "id": 0,
- "streetAddress": "string",
- "postalCode": "string",
- "locality": "string",
- "country": "string",
- "additionalInfo": "string",
- "accountId": 0
}, - "mscNumber": "string",
- "internalId": "string",
- "externalId": "string",
- "customerId": 0
}
]
}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"
}
]
}{- "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 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
}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
}
}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
}
]Gets 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
}Creates an order-field
| name required | string |
| content required | string |
| position required | number |
| orderId required | number |
{- "name": "string",
- "content": "string",
- "position": 0,
- "orderId": 0
}0Creates a contact person for a specific order
| name required | string |
| type required | string |
| telephone | string |
| mobile | string |
| email required | string |
| orderId required | number |
{- "name": "string",
- "type": "string",
- "telephone": "string",
- "mobile": "string",
- "email": "string",
- "orderId": 0
}0Creates 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": { }
}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
}
]
}