API Reference

Cancellations

Cancellations

findReservationsCancelled

Query for cancelled reservations

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key
BeginTimeiCalTimeStringFind cancelled reservations from. Check getCurrentDateTime
EndTimeiCalTimeStringFind cancelled reservations to
BeginModifiediCalTimeStringFind cancelled reservations that have been cancelled starting from this date and time (including this date time). Check getOffsetDateTime
EndModifiediCalTimeStringFind cancelled reservations that have been cancelled before this date and time (excluding this date time)
SearchObjectsObject[]Objects that should be present on the cancelled reservations
TemplateGroupStringReservation situations to search for
TypesString[]For typed cancelled reservations
ReservationStatusListString[]Reservation statuses to search for
AllReservationsBooleanFind all cancelled reservations or only those deleted by the authenticated user
SortOrderStringThe sorting order for the cancelled reservations matching the query
ReturnFieldsString[]The fields to include on the cancelled reservations matching the query
ReturnTypesTypeField[]Array of the object types and fields for each object type to include on the matching cancelled reservations
SkipRestoredCancellationsBooleanBy setting this to false all cancelled reservations, including cancellations that have been restored, will be returned. Default value is true
BeginIndexIntIndex of the first cancelled reservations to return (for pagination)
NumberOfObjectsIntMaximum number of cancelled reservations to return (capped at 1000 per query, use BeginIndex to paginate over the cancelled reservations)

Returns

ReturnTypeDescription
ReservationsReservation[]Array of all reservations matching the query, with the fields and objects specified in ReturnFields and ReturnTypes
TotalNumOfReservationsIntTotal number of reservations matching the query

Example

Request

<tns:begintime>20191201T000000</tns:begintime>
<tns:endtime>20191224T000000</tns:endtime>
<tns:beginmodified></tns:beginmodified>
<tns:endmodified></tns:endmodified>
<tns:searchobjects>
  <object>
    <type>room</type>
    <field>
      <extid>room.building</extid>
      <value>A-House</value>
    </field>
  </object>
</tns:searchobjects>
<tns:templategroup></tns:templategroup>
<tns:types>
  <type>room</type>
</tns:types>
<tns:reservationstatuslist>
  <status>B_COMPLETE</status>
  <status>B_INCOMPLETE</status>
  <status>C_CONFIRMED</status>
  <status>C_PRELIMINARY</status>
</tns:reservationstatuslist>
<tns:allreservations>true</tns:allreservations>
<tns:sortorder>MODIFIED_DESCENDING</tns:sortorder>
<tns:returnfields>
  <field>reservation.commment</field>
</tns:returnfields>
<tns:returntypes>
  <typefield>
    <typefield>
    <type>room</type>
    <field>room.name</field>
    <field>room.seats</field>
  </typefield>
    <type>course</type>
    <field>course.name</field>
    <field>course.code</field>
  </typefield>
</tns:returntypes>
<tns:beginindex>0</tns:beginindex>
<tns:numberofreservations>1000</tns:numberofreservations>

getReservationsCancelled

Get cancelled reservations by cancelled reservation ids

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key
ReservationsString[]Array of ids for the cancelled reservations to get
ReturnTypesTypeField[]Array of the object types and fields for each object type to include on the matching cancelled reservations
UseUTCBooleanIndicate whether the reservation timestamps should be in UTC or in local time

Returns

ReturnTypeDescription
ReservationsReservation[]Array of the requested cancelled reservations

Example

Request

<tns:reservations>
  <reservation>47216</reservation>
</tns:reservations>
<tns:returntypes>
  <typefield>
    <type>room</type>
    <field>room.name</field>
    <field>room.seats</field>
  </typefield>
</tns:returntypes>
<tns:useutc>false</tns:useutc>

getReservationCancelledSortOrders

Get available sort orders for cancelled reservations

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key

Returns

ReturnTypeDescription
SortOrdersString[]Array of available sort orders for cancelled reservations

Example

Request

-