Check availability
Retrieve the available appointment slots for a service.
warning
The request-body model for this operation currently has no exported setters, so the body can't be populated from outside the SDK — see issue #488. The signature below is documented for completeness.
HTTP request
POST /api/sn_apptmnt_booking/v1/appointment/availability
Path parameters
None.
Query parameters
None.
Request body
Supply a appointmentbookingapi.AvailabilityRequest.
Response
AvailabilityResponse — an item envelope whose result exposes GetAvailability() slots.
Example
// Build the request body
var body appointmentbookingapi.AvailabilityRequest
response, err := client.AppointmentBooking().Availability().Post(ctx, body, nil)
if err != nil {
log.Fatal(err)
}