Bookings

Search available resources

This endpoint allows you to GET a a list of available bookings

GET https://xyz.spaces.nexudus.com/en/bookings/search?
type=:resourceType&
start=:iso_start_date_time&end=iso_end_data_time

Example request

GET https://xyz.spaces.nexudus.com/en/bookings/search?
type=1004590588&
start=2018-05-20T09%3A00&
end=2018-05-20T13%3A00
Content-Type: application/json

Example response

{
   "AllShifts":[
      {
         "UniqueId":"84c603c9-3ab0-4fa3-968a-fa90b61ac6b5",
         "ResourceId":1004710710,
         "Start":"09:00",
         "End":"13:00",
         "Name":"MORNING (9AM TO 1PM)"
      },
      {
         "UniqueId":"54dfe908-1067-4bc5-819c-ddd79f73d0a0",
         "ResourceId":1004710710,
         "Start":"14:00",
         "End":"18:00",
         "Name":" EVENING (2PM - 6PM)"
      },
      {
         "UniqueId":"fe6147e0-3f1c-4eba-ba57-33decf8a7eb5",
         "ResourceId":1004710710,
         "Start":"09:00",
         "End":"18:00",
         "Name":" ALL DAY (9AM - 6PM)"
      }
   ],
   "StartDate":"2018-05-20T09:00:00",
   "EndDate":"2018-05-20T13:00:00",
   "Resources":[
      {
         "Name":"VGA Room",
         "BusinessId":1004930927,
         "BusinessName":"Kalkio Space - East Side",
         "Visible":true,
         "GroupName":"Meeting Rooms",
         "Description":"...",
         "ResourceTypeName":"Large Meeting Rooms",
         "ResourceType":{
            
         },
         "FloorPlanDesks":[
            
         ],
         "HasImage":true,
         "Projector":true,
         "Internet":true,
         "ConferencePhone":true,
         "StandardPhone":false,
         "WhiteBoard":false,
         "LargeDisplay":true,
         "Catering":true,
         "TeaAndCoffee":true,
         "Drinks":true,
         "SecurityLock":false,
         "CCTV":false,
         "VoiceRecorder":false,
         "AirConditioning":true,
         "Heating":true,
         "NaturalLight":true,
         "StandingDesk":false,
         "QuietZone":false,
         "WirelessCharger":false,
         "PrivacyScreen":false,
         "AllowMultipleBookings":false,
         "Allocation":6,
         "Shifts":[
            
         ],
         "ShiftsExpression":null,
         "IsAvailable":true,
         "AvailableUnits":1,
         "Message":null,
         "Price":-1.0,
         "BookInAdvanceLimit":null,
         "LateBookingLimit":null,
         "LateCancellationLimit":null,
         "IntervalLimit":null,
         "NoReturnPolicy":null,
         "NoReturnPolicyAllResources":null,
         "NoReturnPolicyAllUsers":null,
         "MaxBookingLength":null,
         "MinBookingLength":null,
         "LastCleanedAt":null,
         "DisplayOrder":5,
         "PriceFormatted":"$-1.00",
         "ErrorCode":null,
         "Id":1004591592,
         "IdString":"1004591592",
         "UpdatedOn":"2018-05-12T10:20:20",
         "CreatedOn":"2018-04-28T19:26:52",
         "UniqueId":"69442d85-047f-48e6-955c-7b2d52f992ba",
         "IsNull":false
      },
      {
         "Name":"DVI Room",
         "BusinessId":1004930927,
         "BusinessName":"Kalkio Space - East Side",
         "Visible":true,
         "GroupName":null,
         "Description":"....",
"ResourceTypeName":"Large Meeting Rooms", "ResourceType":{ }, "FloorPlanDesks":[ ], "HasImage":true, "Projector":true, "Internet":true, "ConferencePhone":true, "StandardPhone":false, "WhiteBoard":false, "LargeDisplay":true, "Catering":true, "TeaAndCoffee":true, "Drinks":true, "SecurityLock":false, "CCTV":false, "VoiceRecorder":false, "AirConditioning":true, "Heating":true, "NaturalLight":true, "StandingDesk":false, "QuietZone":false, "WirelessCharger":false, "PrivacyScreen":false, "AllowMultipleBookings":false, "Allocation":100, "Shifts":[ { }, { }, { } ], "ShiftsExpression":"MORNING (9AM TO 1PM): 09:00->13:00, EVENING (2PM - 6PM):14:00 -> 18:00, ALL DAY (9AM - 6PM):09:00 -> 18:00", "IsAvailable":true, "AvailableUnits":1, "Message":null, "Price":-1.0, "BookInAdvanceLimit":null, "LateBookingLimit":null, "LateCancellationLimit":null, "IntervalLimit":null, "NoReturnPolicy":null, "NoReturnPolicyAllResources":null, "NoReturnPolicyAllUsers":15, "MaxBookingLength":null, "MinBookingLength":null, "LastCleanedAt":null, "DisplayOrder":5, "PriceFormatted":"$-1.00", "ErrorCode":null, "Id":1004710710, "IdString":"1004710710", "UpdatedOn":"2021-05-14T10:58:06", "CreatedOn":"2019-04-28T19:26:45", "UniqueId":"1152aa0a-f8d9-43e1-bc05-11aca5001c1b", "IsNull":false }, { "Name":"Router Room", "BusinessId":1004930927, "BusinessName":"Kalkio Space - East Side", "Visible":true, "GroupName":"Meeting Rooms", "Description":"...", "ResourceTypeName":"Large Meeting Rooms", "ResourceType":{ }, "FloorPlanDesks":[ ], "HasImage":true, "Projector":true, "Internet":true, "ConferencePhone":true, "StandardPhone":false, "WhiteBoard":false, "LargeDisplay":true, "Catering":true, "TeaAndCoffee":true, "Drinks":true, "SecurityLock":false, "CCTV":false, "VoiceRecorder":false, "AirConditioning":false, "Heating":false, "NaturalLight":false, "StandingDesk":false, "QuietZone":false, "WirelessCharger":false, "PrivacyScreen":false, "AllowMultipleBookings":false, "Allocation":15, "Shifts":[ ], "ShiftsExpression":null, "IsAvailable":true, "AvailableUnits":1, "Message":null, "Price":-1.0, "BookInAdvanceLimit":null, "LateBookingLimit":null, "LateCancellationLimit":null, "IntervalLimit":null, "NoReturnPolicy":null, "NoReturnPolicyAllResources":15, "NoReturnPolicyAllUsers":null, "MaxBookingLength":null, "MinBookingLength":null, "LastCleanedAt":null, "DisplayOrder":6, "PriceFormatted":"$-1.00", "ErrorCode":null, "Id":1004584587, "IdString":"1004584587", "UpdatedOn":"2021-05-12T10:20:20", "CreatedOn":"2019-04-28T17:26:46", "UniqueId":"8a0a7377-d8b5-41de-9342-4d531cecc0da", "IsNull":false } ], "SearchFields":[ "Projector", "Internet", "ConferencePhone", "StandardPhone", "WhiteBoard", "LargeDisplay", "Catering", "TeaAndCoffee", "Drinks", "SecurityLock", "CCTV", "VoiceRecorder", "AirConditioning", "Heating", "NaturalLight", "StandingDesk", "QuietZone", "WirelessCharger", "PrivacyScreen", "Soundproof" ], "SelectedTypes":"1004590588", "Group":null, "ChargeBooingImmediately":false, "ResourceTypes":[ { "Name":"Small Meeting Rooms", "Id":1004590589, "IdString":"1004590589", "UpdatedOn":"2020-07-31T12:02:14", "CreatedOn":"2019-04-28T17:23:45", "UniqueId":"e148b4cf-6ee7-4aad-b1f4-0b3bbe9d6d95", "IsNull":false }, { "Name":"Large Meeting Rooms", "Id":1004590588, "IdString":"1004590588", "UpdatedOn":"2020-07-31T12:02:20", "CreatedOn":"2019-04-28T17:23:45", "UniqueId":"982125ac-e277-4d88-937c-67693923d3ed", "IsNull":false }, { "Name":"Hot-desks", "Id":1331892564, "IdString":"1331892564", "UpdatedOn":"2020-06-03T15:06:05", "CreatedOn":"2020-06-03T15:06:05", "UniqueId":"903eeadb-196e-4121-855d-aebc919047c0", "IsNull":false } ] }

Get booking price

This endpoint gets the price of a booking.

GET https://xyz.spaces.nexudus.com/en/bookings/getbookingprice


{
   "booking":{
      "Id":0,
      "FromTime":"2021-05-20T09:00:00.000Z",
      "ResourceId":1004591592,
      "ResourceName":"VGA Room",
      "ToTime":"2021-05-20T13:00:00.000Z",
      "BookingVisitors":[
         
      ],
      "BookingProducts":[
         
      ],
      "resource":{
         "Id":1004591592
      },
      "floorPlanDesk":{
         
      }
   },
   "products":[
      
   ]
}

Example request

GET https://xyz.spaces.nexudus.com/en/bookings/getbookingprice
Content-Type: application/json

Example response

  
  {
   "Resource":{
      "Name":"VGA Room",
      "BusinessId":1004930927,
      "BusinessName":"Kalkio Space - East Side",
      "Visible":true,
      "GroupName":"Meeting Rooms",
      "Description":"...",
      "ResourceTypeName":"Large Meeting Rooms",
      "ResourceType":{
         "Name":"Large Meeting Rooms",
         "Id":1004590588,
         "IdString":"1004590588",
         "UpdatedOn":"2020-07-31T12:02:20Z",
         "CreatedOn":"2019-04-28T17:23:45Z",
         "UniqueId":"982125ac-e277-4d88-937c-67693923d3ed",
         "IsNull":false,
         "Context":null
      },
      "FloorPlanDesks":[
         
      ],
      "HasImage":true,
      "Projector":true,
      "Internet":true,
      "ConferencePhone":true,
      "StandardPhone":false,
      "WhiteBoard":false,
      "LargeDisplay":true,
      "Catering":true,
      "TeaAndCoffee":true,
      "Drinks":true,
      "SecurityLock":false,
      "CCTV":false,
      "VoiceRecorder":false,
      "AirConditioning":true,
      "Heating":true,
      "NaturalLight":true,
      "StandingDesk":false,
      "QuietZone":false,
      "WirelessCharger":false,
      "PrivacyScreen":false,
      "AllowMultipleBookings":false,
      "Allocation":6,
      "Shifts":[
         
      ],
      "ShiftsExpression":null,
      "IsAvailable":false,
      "AvailableUnits":0,
      "Message":null,
      "Price":0.0,
      "BookInAdvanceLimit":null,
      "LateBookingLimit":null,
      "LateCancellationLimit":null,
      "IntervalLimit":null,
      "NoReturnPolicy":null,
      "NoReturnPolicyAllResources":null,
      "NoReturnPolicyAllUsers":null,
      "MaxBookingLength":null,
      "MinBookingLength":null,
      "LastCleanedAt":null,
      "DisplayOrder":5,
      "PriceFormatted":null,
      "ErrorCode":null,
      "Id":1004591592,
      "IdString":"1004591592",
      "UpdatedOn":"2021-05-12T10:20:20Z",
      "CreatedOn":"2019-04-28T19:26:52Z",
      "UniqueId":"69442d85-047f-48e6-955c-7b2d52f992ba",
      "IsNull":false,
      "Context":null
   },
   "UsedTimeCredit":0,
   "CreditPrice":null,
   "UsedCreditDecimal":0.0,
   "UsedCredit":"$0.00",
   "AvailableCreditDecimal":0.0,
   "AvailableCredit":"$0.00",
   "IsAvailable":true,
   "Message":null,
   "Price":"$24.00",
   "Currency":{
      "Name":"US Dollar (USD)",
      "Code":"USD",
      "Format":"$0.00",
      "Id":3004,
      "IdString":"3004",
      "UpdatedOn":"2013-05-25T14:49:16Z",
      "CreatedOn":"2012-01-23T14:35:50Z",
      "UniqueId":"29fe8a0f-fb71-4b42-a3eb-c2f29cfcd8e2",
      "IsNull":false,
      "Context":null
   },
   "PriceDecimal":24.00,
   "TaxRate":20.0,
   "DisplayTax":true,
   "PricesIncludeTax":false,
   "discountCode":{
      "discountMessage":null,
      "code":null,
      "description":null
   }
}
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.