---
title: "Api orders analytics"
canonical: "https://docs.cuesystem.com/space/TAM/839221249/Api%20orders%20analytics"
format: markdown
---
> ⚠️ In the development roadmap, modifications to events and resources are planned for the next version, which will cause this endpoint to be **DEPRECATED IN THE NEXT VERSION**.
> ⚠️ 
> ⚠️ Please **contact technical support** via the portal if you wish to continue using this or any other endpoint, we will be happy to help you get analytics data.

## Request /analytics/json/5

- **GET URL**: copy url from CUE Admin
- Parameters
  - **token**: Required autorization token from CUE Admin
  - **startDateTime** and **endDateTime**: Required. The response will return events that have a realEnd in the defined time range.
  - **pageSize**: Each request returns a collection of data of one or more events in the response. You can optionally specify this parameter to set the maximum number of events in one page of response.


### Example


```
GET https://apiDomain/analytics/json/5?token=1699ae06-93fa-46dc-a34e-ff86d5f6d938&startDateTime=2023-12-01T00:00:00Z&endDateTime=2023-12-30T00:00:00Z&pageSize=10
```


## Response specification

> ℹ️ **Value from calendar server: **This means that the value is as we get it from the calendar server.
> ℹ️ 
> ℹ️ For Microsoft365 explore their [documentation](https://learn.microsoft.com/en-us/graph/api/calendar-list-events).

- **nextLink**: If this parameter is returned, there are additional pages of data to be retrieved in the session.
- **resourceEvents**: Each combination of resource and event is one item, one event can be in the array several times times.
  - **iCalUid**: Value iCalUid from Microsoft365
  - **createdDateTime**: Value createdDateTime from Microsoft365
  - **lastModifiedDateTime**: Value lastModifiedDateTime from Microsoft365
  - **subject**: Value subject from Microsoft365
  - **importance**: Value importance from Microsoft365
  - **sensitivity**: Value sensitivity from Microsoft365
  - **isAllDay**: Value isAllDay from Microsoft365
  - **isCancelled**: Value isCancelled from Microsoft365
  - **showAs**: Value showAs from Microsoft365
  - **onlineMeetingProvider**: Value onlineMeetingProvider from Microsoft365
  - **recurrence**: Value recurrence from Microsoft365
  - **realStart**: The real date and time of the event start
  - **realEnd**: The real date and time of the event end
  - **plannedStart**: The planned date and time of the event start
  - **plannedEnd**: The planned date and time of the event end
  - **organizerName**: Value organizer.emailAddress.name from Microsoft365
  - **organizerEmail**: Value organizer.emailAddress.address from Microsoft365
  - **organizerResponseStatus:**
  - **serviceAccountName**
  - **serviceAccountEmail**
  - serviceAccountResponseStatus
  - **serviceAccountEventId**
  - **lastUpdatedFromCalendarServer**
  - **synchronisedWithCalendarServer**: Information on whether the event synchronized with the calendar server. If this value is false, the synchronization failed.
- **resourceEventActions**
  - **id:**
  - **iCalUid:**
  - **action:**
  - **doneBy:**
  - **created:**
  - **serialNumber:**
  - **magicName:**
  - **firmwareVersion:**
  - **resourceEmail:**
  - **eventUpdatedFromCalendarServer:**
- **resourceEventAttendees**
  - **id:**
  - **iCalUid:**
  - **name:**
  - **email:**
  - **type:**
  - **statusResponse:**
- **resourceEventResources**
  - **id:**
  - **iCalUid:**
  - **name:**
  - **email:**
  - **attendeeStatusResponse:**
  - **resourceStatusResponse:**
- **resourceEventSensorAnalytics**
  - **id:**
  - **iCalUid:**
  - **sensorAnalytics:**
  - **created:**
  - **serialNumber:**
  - **magicName:**
  - **firmwareVersion:**
- **touchoneResources**
  - **guid:**
  - **username:**
  - **displayName:**
  - **email:**
  - **capacity:**
  - **resourceTypeName:**
  - **areaId:**
- **touchoneAreas**
  - **id:**
  - **name:**
  - **parentAreaId:**
- **orders**
- **orderItem**
- **services**
  - **id:**
  - **name:**
  - **serviceTypeId:**
  - **inactivated:**
  - **currentlyUnavailable:**
  - **rank:**
- **serviceTypes**
  - **id:**
  - **name:**
  - **serviceUnitTypeId:**
  - **inactivated:**
- **serviceUnitTypes**
  - **id:**
  - **name:**

### **Example**


```
{
    "nextLink": "",
    "resourceEvents": [
        {
            "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::10ae1577-b49e-45e5-9ab9-f1437108ef79",
            "createdDateTime": "2024-05-09T11:54:57.8034954+00:00",
            "lastModifiedDateTime": "2024-05-09T11:54:57.8034954+00:00",
            "subject": "Reservation in Parking 066 - Shopping mall",
            "importance": null,
            "sensitivity": null,
            "isAllDay": false,
            "isCancelled": true,
            "showAs": "",
            "onlineMeetingProvider": null,
            "recurrence": null,
            "responseStatus": "Cancelled",
            "realStart": "2024-06-24T13:00:00+00:00",
            "realEnd": "2024-06-24T21:00:00+00:00",
            "plannedStart": "2024-06-24T13:00:00+00:00",
            "plannedEnd": "2024-06-24T21:00:00+00:00",
            "organizerName": "Organizer",
            "organizerEmail": "organizer@contoso.com",
            "organizerResponseStatus": null,
            "serviceAccountName": null,
            "serviceAccountEmail": "",
            "serviceAccountResponseStatus": null,
            "serviceAccountEventId": "adeaac6d-5826-4552-9c5b-abe09d8bdd1f",
            "seriesMasterId": "",
            "lastUpdatedFromCalendarServer": "2024-06-11T14:00:14.6991704+00:00",
            "synchronisedWithCalendarServer": true
        }
    ],
    "resourceEventActions": [
        {
            "id": "be5b3e2f-8d5a-4f42-a5af-036a8de59298",
            "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::10ae1577-b49e-45e5-9ab9-f1437108ef79",
            "action": "modify",
            "doneBy": "api",
            "created": "2024-06-11T14:00:14.7023769+00:00",
            "serialNumber": null,
            "magicName": null,
            "firmwareVersion": null,
            "resourceEmail": "D_CON_RESOURCE_268@CONTOSO.COM",
            "eventUpdatedFromCalendarServer": false
        }
    ],
    "resourceEventAttendees": [],
    "resourceEventResources": [
        {
            "id": "8c0032f5-4a50-45a5-a04a-2ef53698a91d",
            "iCalUid": "6b001f62-337c-43fd-a2f2-0e6852c064ed::10ae1577-b49e-45e5-9ab9-f1437108ef79",
            "name": "Parking 066 - Shopping mall",
            "email": "D_CON_RESOURCE_268@CONTOSO.COM",
            "attendeeStatusResponse": "accepted",
            "resourceStatusResponse": "Cancelled"
        }
    ],
    "resourceEventSensorAnalytics": [],
    "touchoneResources": [
        {
            "guid": "1bf6ad52-c382-4f60-ac03-ea0e360f3ab9",
            "username": "d_con_resource_001",
            "displayName": "Týr 1",
            "email": "D_CON_RESOURCE_001@CONTOSO.COM",
            "capacity": 1,
            "resourceTypeName": "Workplace",
            "areaId": 18
        }
    ],
    "touchoneAreas": [
        {
            "id": 2,
            "name": "Cuelandia",
            "parentAreaId": null
        }
    ],
    "orders": [],
    "orderItem": [],
    "services": [
        {
            "id": 1,
            "name": "Water",
            "serviceTypeId": 2,
            "inactivated": null,
            "currentlyUnavailable": false,
            "rank": 1
        }
    ],
    "serviceTypes": [
        {
            "id": 1,
            "name": "Cleaning",
            "serviceUnitTypeId": 1,
            "inactivated": null
        }
    ],
    "serviceUnitTypes": [
        {
            "id": 1,
            "name": "Cleaning"
        }
    ]
} 
```