Book a Tee Time

To book a tee time send a request to below url.

POST /api/v1/bookings
  • Json body parameters.
    • facilityId (Type: Integer) ID of the facility.
    • teetime (Type: Date yyyy-mm-dd HH:MM:ss) Date of the booking
    • round (Type: String) Name of the round.
    • players (Type: Integer) Number of players participating in the booking (between 1-4).
    • contactPhone (Type: String) Phone number.
    • contactEmail (Type: String) E-mail.
    • contactName (Type: String) Name of the contact person for this booking.
    • holes (Type: Integer) Number of holes (9 or 18).
    • teeId (Type: Integer) ID of the tee time.

All of the above fields are required. An example request could look like this :

curl -X POST -H 'Content-Type:application/json'  --user [[username]]:[[password]] '[[base-url]]/api/v1/bookings'
    -d '{"facilityId":"1",
        "teetime":"2018-08-20 07:20:00",
        "contactName":"James Smith",
  • Successful response (application/json)
        "success": true,
        "data": {
            "bookingId": "ZG1234"