API Reference

Availability

Compute bookable slots for a business. Availability factors in opening hours, staff schedules, breaks, absences, existing bookings, buffer times, and advance-booking rules, so you can show a customer exactly what they can book and then create it.

Scope and plan

All availability routes are read-only and require the availability:read scope. API keys are available on the PRO and ENTERPRISE plans.

Get available slots

GET/businesses/{businessId}/availability
availability:readPRO plan

Path parameters

NameTypeRequiredDescription
businessIduuidRequiredYour business id.

Query parameters

NameTypeRequiredDescription
startDatedateRequiredFirst day to compute slots for (YYYY-MM-DD).
endDatedateOptionalLast day. Defaults to startDate.
staffIduuidOptionalRestrict to a single staff member.
serviceIduuidOptionalSize slots to a service's duration.
serviceIdsuuid[]OptionalMultiple services booked together.
durationintegerOptionalOverride duration in minutes.
skipAdvanceCheckbooleanOptionalSkip the minimum advance-booking rule.
curl "https://api.salonify.eu/api/v1/businesses/b_8f3a/availability?startDate=2026-07-02&serviceId=sv_77" \
  -H "X-API-Key: sk_live_..."
{
  "businessId": "b_8f3a",
  "days": [
    {
      "date": "2026-07-02",
      "isOpen": true,
      "openTime": "09:00",
      "closeTime": "18:00",
      "slots": [
        { "startTime": "09:00", "endTime": "10:00", "available": true, "staffId": "st_4d11", "staffName": "Marie", "capacity": 1 },
        { "startTime": "10:00", "endTime": "11:00", "available": false }
      ],
      "closedReason": null
    }
  ]
}

Check a specific slot

POST/businesses/{businessId}/availability/check
availability:readPRO plan

Validates one exact slot before you create the booking and returns the computed duration and price.

Body parameters

NameTypeRequiredDescription
datedateRequiredThe date to check (YYYY-MM-DD).
startTimestringRequiredStart time in HH:mm.
serviceIduuidRequiredPrimary service.
staffIduuidOptionalSpecific staff member.
additionalServiceIdsuuid[]OptionalExtra services booked in the same slot.
curl -X POST "https://api.salonify.eu/api/v1/businesses/b_8f3a/availability/check" \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "date": "2026-07-02", "startTime": "09:00", "serviceId": "sv_77" }'
{
  "available": true,
  "reason": null,
  "suggestedStaffId": "st_4d11",
  "suggestedTime": "09:00",
  "endTime": "10:00",
  "totalDuration": 60,
  "totalPrice": 45
}

Find available staff for a slot

GET/businesses/{businessId}/availability/staff
availability:readPRO plan

Query parameters

NameTypeRequiredDescription
datedateRequiredThe date (YYYY-MM-DD).
startTimestringRequiredStart time in HH:mm.
durationintegerRequiredDuration in minutes.
serviceIdsuuid[]OptionalRestrict to staff who perform these services.
curl "https://api.salonify.eu/api/v1/businesses/b_8f3a/availability/staff?date=2026-07-02&startTime=09:00&duration=60" \
  -H "X-API-Key: sk_live_..."
[
  { "id": "st_4d11", "name": "Marie Dupont" },
  { "id": "st_5e22", "name": "Tom Klein" }
]