Bulk Booking

Book a Tee Time

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

POST /api/v5/bulkbookings
  • Json body parameters. As List of
    • facilityId (Type: Integer) ID of the facility.
    • teetime (Type: Date yyyy-mm-dd HH:MM:ss) Date of the booking
    • course (Type: String) Name of the course.
    • players (Type: Integer) Number of players participating in the booking (between 1-4).
    • contactPhone (Type: String) Phone number.
    • contactEmail (Type: String) E-mail.
    • contactFirstName (Type: String) First name of the contact person for this booking.
    • contactLastName (Type: String) Last 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.
    • netRate (Type: BigDecimal) Total amount that we need to send facility for given tee slot.

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/v5/bookings'
    -d '[
          {
            "facilityId":"1",
            "teetime":"2018-08-20 07:20:00",
            "course":"Champions course",
            "players":3,
            "contactPhone":"07712345678",
            "contactEmail":"james.smith@gmail.com",
            "contactName":"James Smith",
            "holes":9,
            "teeId":4250490
          },
          {
            "facilityId":"1",
            "teetime":"2018-08-21 07:20:00",
            "course":"Champions course",
            "players":3,
            "contactPhone":"07712345678",
            "contactEmail":"james.smith@gmail.com",
            "contactName":"James Smith",
            "holes":9,
            "teeId":4250524
          }
        ]'
  • Successful response (application/json)
    {
        "success": true,
        "data": {
            "bulkBookingId": 16,
            "bookingIds": [
                {
                    "bookingId": "ZG_xl_DEMO-ZestSalesChannel1_2023-07-29T07:00_511ffa3d",
                    "teetime": "2023-07-29T07:00:00",
                    "courseId": 380
                },
                {
                    "bookingId": "ZG_xl_DEMO-ZestSalesChannel1_2023-07-29T07:30_b83a651a",
                    "teetime": "2023-07-29T07:30:00",
                    "courseId": 380
                }
            ]
        }
    }