Reservation Station API

<back to all web services

GetVenueReservations

Requires Authentication
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetVenueReservations : ApiServiceRequest()
{
    var venueId:Int? = null
}

open class ApiServiceRequest : IServiceRequest, IHasApiKey, IHasDeviceInfo
{
    /**
    * The API Key required for authentication
    */
    @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
    var apiKey:String? = null

    /**
    * Latitude of the user making this request
    */
    @ApiMember(DataType="double", Description="Latitude of the user making this request")
    var latitude:Double? = null

    /**
    * Longitude of the user making this request
    */
    @ApiMember(DataType="double", Description="Longitude of the user making this request")
    var longitude:Double? = null
}

open class GetVenueReservationsResponse : ApiServiceResponse()
{
    var reservations:ArrayList<VenueReservationData> = ArrayList<VenueReservationData>()
}

open class ApiServiceResponse : IServiceResponse
{
    var description:String? = null
    var heading:String? = null
    var wasSuccessful:Boolean? = null
    var modelState:Object? = null
}

open class VenueReservationData : IBookingData
{
    var dayEnd:Int? = null
    var dayStart:Int? = null
    var bookingId:Int? = null
    var slotLength:Int? = null
    var facilityId:Int? = null
    var facilityTimeOffset:Int? = null
    var cancellationLeadTime:Int? = null
    var end:String? = null
    var start:String? = null
    var userName:String? = null
    var facilityName:String? = null
    var facilityColour:String? = null
    var reservationStatus:String? = null
    var finished:Boolean? = null
    var billableHours:Double? = null
    var billedAmount:BigDecimal? = null
    var userData:GuestData? = null
    var allowExtraRequirements:Boolean? = null
    var extraRequirements:String? = null
}

open class GuestData
{
    var name:String? = null
    var emailAddress:String? = null
    var mobileNumber:String? = null
    var userCustomFields:ArrayList<UserCustomFieldData> = ArrayList<UserCustomFieldData>()
    var isAlreadyUser:Boolean? = null
    var systemUserId:Int? = null
}

open class UserCustomFieldData
{
    var id:UUID? = null
    var value:String? = null
    var name:String? = null
    var optional:Boolean? = null
}

Kotlin GetVenueReservations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetVenueReservations HTTP/1.1 
Host: reservation.api.dev.86degrees.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"venueId":0,"apiKey":"String","latitude":0,"longitude":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"reservations":[{}],"description":"String","heading":"String","wasSuccessful":false,"modelState":{}}