End Point

POST /api/booking_app/booking

Create booking

{
  "BookingId": "b7fca559-9bfa-4f53-b913-ce64c250b676",

  "Date": "2018-10-09",

  "StartTime": "08:00:00",

  "EndTime": "17:00:00",

  "Fee": 100.00,

  "SmartFeesEnrolmentId": "sfdev_3791",

  "SmartFeesRoomId": "sfdev_114",

  "TransactionType": "Booking",

  "Action": "Create"
}

SessionCodeId is no longer required given the flexible nature of the bookings. We do need Date, Times, Fee instead

Create Absence

{
  "BookingId": "b7fca559-9bfa-4f53-b913-ce64c250b676",

  "Date": "2018-10-09",

  "Fee": 50.00,

  "TransactionType": "Absence",

  "Action": "Create"
}

Absence is related to a booking. Date is required but fee is optional

Cancel Absence

{
  "BookingId": "b7fca559-9bfa-4f53-b913-ce64c250b676",

  "TransactionType": "Absence",

  "Action": "Cancel"
}

Cancel Booking

{
  "BookingId": "b7fca559-9bfa-4f53-b913-ce64c250b676",

  "TransactionType": "Booking",

  "Action": "Cancel"
}

Get Service Data

GET /api/booking_app/service/[service_id]

e.g.

https://test.smartcentral.net/api/booking_app/service/979

Sample response:

{
  "CentreName": "FLUFFY FOOTS OSHC",
  "EmailAddress": "zosh@smartcentral.net.sc",
  "StreetAddress": null,
  "Suburb": null,
  "State": null,
  "Postcode": null,
  "ServiceType": "ZOSH",
  "ApprovedPlaces": 0,
  "ServiceStartDate": null,
  "Vacancy":{
    "sfsta_761":{"2021-02-22":3,"2021-02-23":4,"2021-02-24":3,"2021-02-25":4,"2021-02-26":3},
    "sfsta_762":{"2021-02-22":2,"2021-02-23":1,"2021-02-24":2,"2021-02-25":2,"2021-02-26":4},
    "sfsta_759":{"2021-02-22":0,"2021-02-23":0,"2021-02-24":1,"2021-02-25":1,"2021-02-26":0}
  },
  "Rooms": [
    {
      "Id": "sfsta_752",
      "Name": "ASC_Panda",
      "Capacity": 10,
      "AgeGroups": []
    },
  ],
  "StaffMembers": [
    {
      "Id": "sfsta_9",
      "Type": "Admin",
      "Email": "corrie@smartfees.com.au"
    },
  ],
  "PublicSessionCodes": [
    {
      "Id": "sfsta_453",
      "Price": 50,
      "StartTime": "15:00:00",
      "EndTime": "18:00:00",
      "IsHourlyRate": false
    },
  ]
}

Optionally specify a date for querying vacancy.

https://test.smartcentral.net/api/booking_app/service/979?date=2021-03-01