Download OpenAPI specification:
You can use the Alasco API to integrate your application with Alasco. The Alasco API is REST-based and follows JSON:API principles for structuring responses.
Starting from version 1.0, the API is stable. We are continuously improving our API and new endpoints will be added. Any updates or changes within this major version will be backward-compatible and can be found in this documentation.
For getting acccess to the Alasco API, please reach out to us: kontakt@alasco.de.
The base URL for all endpoints is: https://api.alasco.de/esg/v1
The Alasco API supports compressed payloads. If you would like to make use of this, you have to specify the Accept-Encoding header. Supported encodings are gzip and br.
Objects relate as follows (each → is a navigable sub-resource):
The Alasco API uses pagination. The page size is 100, additional pages can be accessed using a next link.
Annual Consumption is the system-computed consumption per meter and calendar year, including emission factors and tenant allocations. The figures are derived from readings rather than written directly; you can read them and update the market-based emission factor.
| external_building_id required | string (External Building Id) External ID of the building. |
| year required | integer (Year) The calendar year to retrieve consumption for. |
External Meter Id (string) or External Meter Id (null) (External Meter Id) Optional. Filter results to the consumption entry for a specific meter, identified by its external ID. Filtering by null is not supported- omit this parameter to get all entries. |
{- "data": [
- {
- "attributes": {
- "category": "COOLING",
- "completeness": "string",
- "consumption": "string",
- "cooling_system": "DISTRICT",
- "emission_factor": {
- "location_based": "string",
- "market_based": {
- "is_renewable": true,
- "value": "string"
}
}, - "external_meter_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "name": "string",
- "procured_by": "LANDLORD",
- "source": "estimate",
- "tenants": [
- {
- "external_id": "string",
- "name": "string"
}
], - "units": "BRITISH_THERMAL_UNITS",
- "year": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANNUAL_CONSUMPTION"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| annual_consumption_id required | string <uuid> (Annual Consumption Id) |
required | object (AnnualConsumptionPatchPayloadData) |
{- "data": {
- "attributes": {
- "is_renewable": true,
- "market_based_emission_factor": 0
}, - "type": "ANNUAL_CONSUMPTION"
}
}{- "data": {
- "attributes": {
- "category": "COOLING",
- "completeness": "string",
- "consumption": "string",
- "cooling_system": "DISTRICT",
- "emission_factor": {
- "location_based": "string",
- "market_based": {
- "is_renewable": true,
- "value": "string"
}
}, - "external_meter_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "name": "string",
- "procured_by": "LANDLORD",
- "source": "estimate",
- "tenants": [
- {
- "external_id": "string",
- "name": "string"
}
], - "units": "BRITISH_THERMAL_UNITS",
- "year": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANNUAL_CONSUMPTION"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}The Audit Log is a read-only account-level trail of changes. A raw audit feed reports table-level inserts, updates and deletes, and a user audit feed reports user- and API-triggered changes; both are queried over a bounded time range (up to 24 hours).
| start required | string <date-time> (Start) |
| end required | string <date-time> (End) |
{- "data": [
- {
- "attributes": {
- "entity_id": 0,
- "op": "DELETE",
- "origin": "APP_USER",
- "record": { },
- "record_diff": { },
- "table_name": "string",
- "table_schema": "string",
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
- "ts": "2019-08-24T14:15:22Z",
- "user_data": { },
- "user_id": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "AUDIT_LOG"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| start required | string <date-time> (Start) |
| end required | string <date-time> (End) |
{- "data": [
- {
- "attributes": {
- "actor": "SYSTEM",
- "description": "string",
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "event_type": "string",
- "new": { },
- "old": { },
- "op": "DELETE",
- "record_diff": { },
- "table_name": "string",
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
- "ts": "2019-08-24T14:15:22Z",
- "user_data": { },
- "user_id": 0
}, - "id": 0,
- "relationships": { },
- "type": "USER_AUDIT_LOG"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": {
- "actor": "SYSTEM",
- "description": "string",
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "event_type": "string",
- "new": { },
- "old": { },
- "op": "DELETE",
- "record_diff": { },
- "table_name": "string",
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
- "ts": "2019-08-24T14:15:22Z",
- "user_data": { },
- "user_id": 0
}, - "id": 0,
- "relationships": { },
- "type": "USER_AUDIT_LOG"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Building is a property in your Alasco asset register and the anchor for ESG data - its Utility Meters, Tenants and Documents all attach to it. Buildings are read-only here, identified by a UUID (and an external_building_id used when creating related records); each also exposes its custom data and latest CO2 analysis result.
| building_uuid required | string <uuid> (Building Uuid) |
{- "data": {
- "attributes": {
- "co2_intensity": "string",
- "energy_intensity": "string",
- "final_energy_intensity": "string",
- "primary_energy_intensity": "string",
- "scope_1_emissions": "string",
- "scope_2_emissions": "string",
- "scope_3_emissions": "string",
- "self_supply_rate": "string",
- "total_consumption": "string",
- "total_emissions": "string",
- "total_energy_generated": "string",
- "year": 0
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- null
], - "links": {
- "next": "string",
- "prev": "string"
}
}| include | string (Include) Default: "" Examples: include=energy_certificates,building_certificates
|
{- "data": [
- {
- "attributes": {
- "building_certificates": [
- {
- "description": "string",
- "issued_at": "2019-08-24",
- "level": {
- "id": "EXCELLENT",
- "label": "string"
}, - "schema": {
- "id": "BREEAM_COMMUNITIES",
- "label": "string"
}, - "valid_until": "2019-08-24"
}
], - "building_specification": {
- "gross_external_area": "string",
- "gross_internal_area": "string"
}, - "energy_certificates": [
- {
- "co2_emissions": "string",
- "description": "string",
- "efficiency_class": "string",
- "end_energy_electricity": "string",
- "end_energy_heating": "string",
- "is_residential": true,
- "issued_at": "2019-08-24",
- "primary_energy": "string",
- "primary_energy_non_renewable": "string",
- "type": "CONSUMPTION",
- "valid_until": "2019-08-24"
}
], - "external_asset_id": "string",
- "external_id": "string",
- "name": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| building_uuid required | string <uuid> (Building Uuid) |
{- "data": [
- {
- "attributes": {
- "field_instances": [
- {
- "field_id": "e68e30b1-d177-4632-b748-463bcd0eedc6",
- "name": "string",
- "value": "string",
- "year": 0
}
], - "name": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "CUSTOM_DATA_GROUP_INSTANCE"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- null
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Consumption Interval is a consumption total for a period (start to end date) for a meter. Intervals are created individually or in bulk - all-or-nothing (/bulk/) or per-item (/bulk-partial/) - with upsert semantics.
required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": 0,
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "type": "CONSUMPTION_INTERVAL"
}
]
}{- "data": {
- "created": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "type": "CONSUMPTION_INTERVAL",
- "updated": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": 0,
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "type": "CONSUMPTION_INTERVAL"
}
]
}{- "data": {
- "created": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "errors": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": "string",
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "detail": [
- {
- "code": "ALA-4001",
- "loc": [
- "string"
], - "msg": "string"
}
], - "index": 0
}
], - "type": "CONSUMPTION_INTERVAL",
- "updated": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | object (ConsumptionIntervalPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": 0,
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "type": "CONSUMPTION_INTERVAL"
}
}{- "data": {
- "attributes": {
- "consumption_value": "string",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "CONSUMPTION_INTERVAL"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Document is a file attached to one or more Buildings (certificates, leases and similar). Documents can be uploaded, downloaded, given an external id, have their metadata read and updated, and be deleted; a file-events feed reports document changes over a time range. Metadata edits and deletion apply to API-sourced documents.
| file_id required | string <uuid> (File Id) |
required | object (ExternalIdRequestData) |
{- "data": {
- "attributes": {
- "external_id": "string"
}, - "type": "FILE_EXTERNAL_ID"
}
}{- "data": {
- "attributes": {
- "external_id": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "FILE_EXTERNAL_ID"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| file_id required | string <uuid> (File Id) |
{- "data": {
- "attributes": {
- "building_external_ids": [
- "string"
], - "document_type": "BUILDING_CERTIFICATE",
- "download_url": "string",
- "external_id": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
- "issued_at": "2019-08-24",
- "name": "string",
- "source": "API",
- "valid_until": "2019-08-24"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "FILE"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| start_time required | string <date-time> (Start Time) |
| end_time required | string <date-time> (End Time) |
{- "data": [
- {
- "attributes": {
- "event_type": "CREATE",
- "record": {
- "building_external_ids": [
- "string"
], - "document_type": "BUILDING_CERTIFICATE",
- "external_id": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
- "issued_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "source": "API",
- "timestamp": "2019-08-24T14:15:22Z"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "DOCUMENT_EVENT"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| external_id required | string (External Id) |
{- "data": {
- "attributes": {
- "building_external_ids": [
- "string"
], - "document_type": "BUILDING_CERTIFICATE",
- "external_id": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
- "issued_at": "2019-08-24",
- "name": "string",
- "source": "API",
- "valid_until": "2019-08-24"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "FILE_METADATA"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| external_id required | string (External Id) |
required | object (FileMetadataUpdateData) |
{- "data": {
- "attributes": {
- "building_external_id": "string",
- "document_type": "BUILDING_CERTIFICATE",
- "name": "string"
}, - "type": "FILE_METADATA"
}
}{- "data": {
- "attributes": {
- "building_external_ids": [
- "string"
], - "document_type": "BUILDING_CERTIFICATE",
- "external_id": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
- "issued_at": "2019-08-24",
- "name": "string",
- "source": "API",
- "valid_until": "2019-08-24"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "FILE_METADATA"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| file required | string <application/octet-stream> (File) |
{- "data": {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "FILE"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Tenant Consumption Link attributes a year's Annual Consumption to a Tenant. Links are created and deleted through the API by tenant external id and annual-consumption id (both must belong to the same building).
required | object (TenantConsumptionLinkCreatePayloadData) |
{- "data": {
- "attributes": {
- "annual_consumption_id": "97d8c0c5-2322-4208-b088-80c768e3f13e",
- "external_tenant_id": "string"
}, - "type": "TENANT_CONSUMPTION_LINK"
}
}{- "data": {
- "attributes": {
- "annual_consumption_id": "97d8c0c5-2322-4208-b088-80c768e3f13e",
- "external_tenant_id": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "TENANT_CONSUMPTION_LINK"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| external_tenant_id required | string (External Tenant Id) External ID of the tenant. |
| annual_consumption_id required | string <uuid> (Annual Consumption Id) UUID of the annual consumption entry. |
{- "detail": [
- {
- "ctx": { },
- "input": null,
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}A Tenant is an occupant of a Building, identified by your external_id and linked to a building by external_building_id. Tenants are upserted through the API (created or updated by external id) and can carry attachments.
| external_tenant_id required | string (External Tenant Id) |
required | object (TenantAttachmentCreatePayloadData) |
{- "data": {
- "attributes": {
- "attachment_type": "COMMENT",
- "comment": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767"
}, - "type": "TENANT_ATTACHMENT"
}
}{- "data": {
- "attributes": {
- "attachment_type": "COMMENT",
- "comment": "string",
- "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "TENANT_ATTACHMENT"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | object (TenantCreatePayloadData) |
{- "data": {
- "attributes": {
- "contact_email": "user@example.com",
- "contact_first_name": "string",
- "contact_last_name": "string",
- "contact_phone_number": "string",
- "contact_salutation": "FAMILY",
- "contact_title": "DR",
- "description": "string",
- "external_building_id": "string",
- "external_id": "string",
- "green_signature_date": "2019-08-24",
- "lease_area_square_meters": 0,
- "lease_end_date": "2019-08-24",
- "lease_start_date": "2019-08-24",
- "name": "string"
}, - "type": "TENANT"
}
}{- "data": {
- "attributes": {
- "contact_email": "string",
- "contact_first_name": "string",
- "contact_last_name": "string",
- "contact_phone_number": "string",
- "contact_salutation": "FAMILY",
- "contact_title": "DR",
- "description": "string",
- "external_id": "string",
- "green_signature_date": "2019-08-24",
- "lease_area_square_meters": "string",
- "lease_end_date": "2019-08-24",
- "lease_start_date": "2019-08-24",
- "name": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "TENANT"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}Utility Data Batch Info records the source and label of a batch of imported utility data. Create one and reference it (via batch_info_uuid) when writing meters, readings or consumption intervals to group them under an import; it cannot be changed once created.
required | object (alasco__public_api__esg__web__v1__schemas__utilities__utility_batch_info__UtilityDataBatchInfoWrite) |
{- "data": {
- "attributes": {
- "data_source_label": "string",
- "data_source_value": "string",
- "external_id": "string"
}, - "type": "UTILITY_DATA_BATCH_INFO"
}
}{- "data": {
- "attributes": {
- "data_source_label": "string",
- "data_source_value": "string",
- "external_id": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_DATA_BATCH_INFO"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Utility Meter Reading is a timestamped meter value. Readings are written individually or in bulk (upsert), keyed by the meter's external id, and feed the derived consumption figures.
required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "external_meter_id": "123XYZ",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
]
}{- "data": {
- "created": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "type": "UTILITY_METER_READING",
- "updated": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| building_uuid required | string <uuid> (Building Uuid) |
| meter_uuid required | string <uuid> (Meter Uuid) |
required | object (UtilityMeterReadingPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
}{- "data": {
- "attributes": {
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER_READING"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | object (UtilityMeterReadingWithExternalIdPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "external_meter_id": "123XYZ",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
}{- "data": {
- "attributes": {
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER_READING"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}A Utility Meter measures consumption (electricity, gas, water, heating or cooling) for a Building. Meters are created and updated through the API, identified by your external_id, and own their Readings and consumption data.
required | object (UtilityMeterCreatePayloadData) |
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": 0,
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_building_id": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "meter_id": "string",
- "multiplication_factor": "1",
- "procured_by": "LANDLORD",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER"
}
}{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | object (UtilityMeterImportCreatePayloadData) |
{- "data": {
- "attributes": {
- "address": "string",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "meter_id": "string",
- "multiplication_factor": "1",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER_IMPORT"
}
}{- "data": {
- "attributes": {
- "address": "string",
- "category": "COOLING",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "serial": "string",
- "status": "ASSIGNED",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": 0,
- "relationships": { },
- "type": "UTILITY_METER_IMPORT"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "address": "string",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "meter_id": "string",
- "multiplication_factor": "1",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER_IMPORT"
}
]
}{- "data": {
- "created": [
- {
- "attributes": {
- "address": "string",
- "category": "COOLING",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "serial": "string",
- "status": "ASSIGNED",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": 0,
- "relationships": { },
- "type": "UTILITY_METER_IMPORT"
}
], - "errors": [
- {
- "attributes": {
- "address": "string",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "meter_id": "string",
- "multiplication_factor": "1",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "detail": [
- {
- "code": "ALA-4001",
- "loc": [
- "string"
], - "msg": "string"
}
], - "index": 0
}
], - "type": "UTILITY_METER_IMPORT"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| building_uuid required | string <uuid> (Building Uuid) |
{- "data": [
- {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}| meter_external_id required | string (Meter External Id) |
required | object (UtilityMeterPatchPayloadData) |
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": 0,
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": 0,
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER"
}
}{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "ANALYSIS_RESULT"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}