createBooking method

Future<Booking> createBooking({
  1. required UpsertBookingRequest request,
  2. String? authToken,
})

Creates a booking.

To call this endpoint with buyer-level permissions, set APPOINTMENTS_WRITE for the OAuth scope. To call this endpoint with seller-level permissions, set APPOINTMENTS_ALL_WRITE and APPOINTMENTS_WRITE for the OAuth scope.

Implementation

Future<Booking> createBooking({
  required UpsertBookingRequest request,
  String? authToken,
}) async {
  return _bookingsService.createBooking(request: request, authToken: authToken);
}