BigQuery Export

Explanation of the BigQuery API

StarRez Data Export

Data Source URLhttps://secure.levartdistributionsystems.com.au/servers/unilodgeBigData.html?starrez=1
Data FormatNewline-delimited JSON
Method
GET
Authentication
Basic
Fetch FrequencyDaily
SegmentStream Project
UniLodge GA4


The StarRez data export contains both Applications/Bookings initiated directly from Levart (Online type) and also StarRez and also Applications/Bookings initiated from StarRez directly that have been created manually.

Flowchart

JSON Data Definition

{
  "entryId":10296,
  "property":"south-bank",
  "gender":"Male",
  "nationality":"Australian",
  "city":"Perth",
  "state":"WA",
  "country":"Australia",
  "internationalStudent":true,
  "nonStudent":true,
  "bookings":[
    {
      "bookingId":31151,
      "bookingType":"Online",
      "applicationNumber":"2354567",
      "arrival":"2020-01-27",
      "departure":"2021-01-21",
      "weeksDuration":51.4,
      "nightsDuration":360,
      "currentStatus":"In Room",
      "applicationTime":"2019-10-22T02:35:08Z",
      "heldTime":"2019-10-22T02:35:08Z",
      "reservedTime":"2019-10-22T02:35:08Z",
      "inRoomTime":"2019-10-22T02:35:08Z",
      "historyTime":"2019-10-22T02:35:08Z",
      "cancelledTime":"2019-10-22T02:35:08Z",
      "currency":"AUD",
      "weeklyRate":327.2,
      "total":16817.14,
      "inAustralia":true,
      "ageOnArrival":21,
      "under18":false,
      "roomType":"1 Bedroom Apartment",
      "rateType":"Full Year",
      "residents":1,
      "university":"TAFE - South Bank",
      "courseName":"Computer Science",
      "userAgent":"Mozilla",
      "isMobile":false,
      "isTablet":false,
      "agent": {
        "company": "UHOMES", 
        "name": "John Agent",
        "agentCode": "UHOMES1234",
        "agentCrm": "12345"
      }
    }
  ]
}


BigQuery Data Summary

Resource IDsegmentstream-274801
Dataset IDsegmentstream-274801.unilodge_ga4_us
Table ID

segmentstream-274801.unilodge_ga4_us.Console


Field Name
TypeModeDescription
entryIdINTEGERNULLABLEStarRez Entry ID. This is essentially a unique customer record within StarRez.
propertySTRINGNULLABLEProperty ID.  e.g. 'south-bank'
genderSTRINGNULLABLE

Gender Type: 'Male', 'Female', 'Transgender male/Transman/FTM', 'Transgender female/Transwoman/MTF', 'Gender Queer', 'Non-Binary', 'Other', 'Decline to answer'

nationalitySTRINGNULLABLEGuest Nationality
citySTRINGNULLABLECity e.g. Mumbai
stateSTRINGNULLABLEState
countrySTRINGNULLABLECountry e.g. India
internationalStudentBOOLEANNULLABLEInternational Student true/false
nonStudentBOOLEANNULLABLEIs a non-student applicant.
bookingsRECORDREPEATEDBooking Array[]
> bookingIdINTEGERNULLABLEStarRez BookingID
> bookingTypeSTRINGNULLABLE

Booking Type: 'Online', 'Offline' or 'Renewal'. 

'Online' represents an application was initiated through Levart.

'Offline' or 'Renewal' represents an action performed within StarRez only.

> applicationNumberSTRINGNULLABLELevart Application Number
> arrivalDATENULLABLEArrival Date
> departureDATENULLABLEDeparture Date
> weeksDurationFLOATNULLABLEWeeks duration of stay
> nightsDurationINTEGERNULLABLENights duration of stay
> currentStatusSTRINGNULLABLECurrent Status of the Application. Tentative, Held, Reserved, In Room, History, Cancelled
> applicationTimeTIMESTAMPNULLABLEThe time the Application took place (UTC)

When booking has been initiated, the status as this point is “Tentative”.

> heldTimeTIMESTAMPNULLABLE

The time the Application progressed to Held (UTC)

When deposit has been paid the status will be ‘Held”

> reservedTimeTIMESTAMPNULLABLE

The time the Application progressed to Reserved status. (UTC)

When the booking is confirmed and status is ‘Reserved’

> inRoomTimeTIMESTAMPNULLABLE

The time the Application progressed to 'In Room' status. (UTC)

When the user has arrived at the location and status is “in room” 

> historyTimeTIMESTAMPNULLABLE

The time the Application progressed to 'History' status. (UTC)

When the user has checked out and status is “History”

> cancelledTimeTIMESTAMPNULLABLE

The time the Application progressed to 'Cancelled' status. (UTC)

When the user canceled the booking and status is “Canceled” 

> currencySTRINGNULLABLECurrency Code e.g. 'AUD'
> weeklyRateFLOATNULLABLEWeekly rate that was requested.
> totalFLOATNULLABLETotal of accommodation for the  whole stay
> inAustraliaBOOLEANNULLABLEIn Australia at the time of Application
> ageOnArrivalINTEGERNULLABLEResident's Age on arival.
> under18BOOLEANNULLABLEIs the guest under 18 years old at the time of Arrival.
> roomTypeSTRINGNULLABLERoom Type Title e.g. 'Studio Apartment'
> rateTypeSTRINGNULLABLERate Type Title e.g. '12 Month Stay'
> residentsINTEGERNULLABLENumber of Residents
> universitySTRINGNULLABLEUniversity Name
> courseNameSTRINGNULLABLEUniversity Course Name
> userAgentSTRINGNULLABLEHTTP User-Agent
> isMobileBOOLEANNULLABLEApplied on a mobile device
> isTabletBOOLEANNULLABLEApplied on a tablet device
agentRECORDNULLABLEAgent Information Record
> companySTRINGNULLABLEAgent Company Name
> nameSTRINGNULLABLEAgent Name
> agentCodeSTRINGNULLABLEAgent Code
> agentCrmSTRINGNULLABLEAgent CRM


Console Data Export

Data Source URLhttps://secure.levartdistributionsystems.com.au/servers/unilodgeBigData.html?console=1
Data FormatNewline-delimited JSON
Method
GET
Authentication
Basic
Fetch FrequencyDaily
SegmentStream Project

UniLodge GA4


The Console data export only contains applications initiated through Levart, thus has a slightly different data format than for the StarRez data export version.

Flowchart


JSON Data Definition

{
  "applicationNumber": "21582032",
  "property": "college-square-on-lygon",
  "email": "email@gmail.com",
  "gender": "Female",
  "nationality": "Indian",
  "city": "Carlton",
  "state": "Victoria",
  "country": "Australia",
  "internationalStudent": true,
  "nonStudent": false,
  "contactId": 15679882,
  "bookingType": "Online",
  "arrival": "2023-08-23",
  "departure": "2024-08-14",
  "weeksDuration": 51,
  "nightsDuration": 357,
  "currentStatus": "Offered",
  "applicationTime": "2024-05-29T06:56:08Z",
  "heldTime": "2024-05-29T06:56:08Z",
  "reservedTime": "2024-05-29T06:56:08Z",
  "inRoomTime": "2024-05-29T06:56:08Z",
  "historyTime": "2024-05-29T06:56:08Z",
  "cancelledTime": "2024-05-29T06:56:08Z",
  "currency": "AUD",
  "weeklyRate": 337.1,
  "total": 17186.1,
  "inAustralia": true,
  "ageOnArrival": 23,
  "under18": false,
  "roomType": "1 Bedroom",
  "rateType": "Full Year ",
  "residents": 1,
  "university": "Other",
  "courseName": "Masters in Business Analytics",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
  "isMobile": false,
  "isTablet": false,
  "agent": {
    "company": "UHOMES", 
    "name": "John Agent",
    "email":"user@test.com",
    "phone":"123456789",
    "agentCode": "UHOMES1234",
    "agentCrm": "12345"
  },
  "tenantApplications": [
    {
      "tenantApplicationId": "0f2f93f8-addd-4308-aea3-9e12fb761c6d",
      "tenantApplicationProcessId": "ded22d5f-83bf-4fc6-a6ce-f27dbf2a8dcd",
      "status": "NEW",
      "applicants": [
        {
          "tenantApplicationApplicantId": "18991a7d-cec1-4abb-9e22-a8f476250e94",
          "contactId": 15679882
        }
      ],
      "createdDateTime": "2023-08-24T03:20:43.059Z",
      "lastUpdatedDateTime": "2023-08-24T03:20:43.059Z"
    }
  ]
}


BigQuery Data Summary


Resource IDsegmentstream-274801
Dataset IDsegmentstream-274801.unilodge_ga4_us
Table ID

segmentstream-274801.unilodge_ga4_us.Console


BigQuery Data Schema

Field Name
TypeModeDescription
applicationNumberSTRINGNULLABLELevart Application Number
propertySTRINGNULLABLEProperty ID e.g. 'south-bank'
emailSTRINGNULLABLEEmail Address
genderSTRINGNULLABLEGender Type: 'Male', 'Female', 'Transgender male/Transman/FTM', 'Transgender female/Transwoman/MTF', 'Gender Queer', 'Non-Binary', 'Other', 'Decline to answer'
nationalitySTRINGNULLABLEGuest Nationality
citySTRINGNULLABLECity e.g. Mumbai
stateSTRINGNULLABLEState
countrySTRINGNULLABLECountry e.g. India
internationalStudentBOOLEANNULLABLEInternational Student true/false
nonStudentBOOLEANNULLABLEIs a non-student applicant.
contactIdINTEGERNULLABLEConsole 'Contact ID'
bookingTypeSTRINGNULLABLEOnly 'Online' status supported (Application initiated through Levart). (Offline and Renewal not supported)
arrivalDATENULLABLEArrival Date
departureDATENULLABLEDeparture Date
weeksDurationINTEGERNULLABLEWeeks duration of stay
nightsDurationINTEGERNULLABLENights duration of stay
currentStatusSTRINGNULLABLECurrent Status of Application
applicationTimeTIMESTAMPNULLABLEThe time the Application took place (UTC)
heldTimeTIMESTAMPNULLABLEThe time the Application progressed to Held (UTC)
reservedTimeTIMESTAMPNULLABLEThe time the Application progressed to Reserved status. (UTC)
inRoomTimeTIMESTAMPNULLABLEThe time the Application progressed to 'In Room' status. (UTC)
historyTimeTIMESTAMPNULLABLEThe time the Application progressed to 'History' status. (UTC)
cancelledTimeTIMESTAMPNULLABLEThe time the Application progressed to 'Cancelled' status. (UTC)
currencySTRINGNULLABLECurrency Code e.g. 'AUD'
weeklyRateFLOATNULLABLEWeekly rate that was requested.
totalFLOATNULLABLETotal of accommodation for the  whole stay
inAustraliaBOOLEANNULLABLEIn Australia at the time of Application
ageOnArrivalINTEGERNULLABLEResident's Age on arival.
under18BOOLEANNULLABLEIs the guest under 18 years old at the time of Arrival.
roomTypeSTRINGNULLABLERoom Type Title e.g. 'Studio Apartment'
rateTypeSTRINGNULLABLERate Type Title e.g. '12 Month Stay'
residentsINTEGERNULLABLENumber of resuidents in this Application.
universitySTRINGNULLABLEUniversity Name
courseNameSTRINGNULLABLEUniversity Course Name
userAgentSTRINGNULLABLEHTTP User-Agent
isMobileBOOLEANNULLABLEApplied on a mobile device
isTabletBOOLEANNULLABLEApplied on a tablet device
agentRECORDNULLABLEAgent Information Record
> companySTRINGNULLABLEAgent Company
> nameSTRINGNULLABLEAgent Name
> emailSTRINGNULLABLEAgent Email
> phoneSTRINGNULLABLEAgent Phone Number
> agentCodeSTRINGNULLABLEAgent Code
> agentCrmSTRINGNULLABLEAgent CRM
tenantApplicationsRECORDREPEATED 
> tenantApplicationIdSTRINGNULLABLEConsole tenantApplicationId UUID
> tenantApplicationProcessIdSTRINGNULLABLEConsole tenantApplicationProcessId UUID
> statusSTRINGNULLABLEConsole Status: NEW
> applicantsRECORDREPEATEDApplicants Attached to this Tenant Application (Inclusive of current applicant)
>> tenantApplicationApplicantIdSTRING
NULLABLEConsole Tenant Application Applicant ID
>> contactIdINTEGER
NULLABLEConsole 'Contact ID' of the Applicant
> createdDateTimeTIMESTAMPNULLABLETime that this tenantApplicationId was created. (UTC)
> lastUpdatedDateTimeTIMESTAMPNULLABLETime that this tenantApplicationId was last updated. (UTC)