API reference/Bookings/Create or update a service

postBookingsAPI key

Create or update a service

POST /client/v1/booking-services

Publish what you offer - a consultation, a haircut, a site visit - matched by your external_ref (the same external_ref updates the service). Only services created through this API can be updated here.

Staff and working hours are not set through the API. A new service has nobody assigned, so nothing is bookable until someone in the ScaleBiss CRM opens Bookings → Services and assigns staff, and sets their hours under Staff & hours.

Omitted fields keep their value on update, and use defaults on create (30 minutes, one place per slot, no limits, free).

Request body

FieldTypeDetails
external_ref
string
required
Your own service id, up to 191 characters.
name
string
required
Shown to customers, up to 120 characters.
kind
string
optional
Default `appointment`.
appointmentvisitticket
booking_mode
string
optional
`time_slot` = fixed times; `token` = walk-in sessions that hand out numbers. Default `time_slot`.
time_slottoken
duration_minutes
integer
optional
5–1440. Default 30.
buffer_minutes
integer
optional
Time kept free after each booking, 0–720.
capacity_per_slot
integer
optional
Places per time slot, 1–10000. 1 for one-to-one; more for classes.
max_per_day
integer
optional
Bookings allowed per day for the service.
max_per_customer_per_day
integer
optional
Bookings one customer may hold on one day, 1–100.
max_active_per_customer
integer
optional
Upcoming bookings one customer may hold at once, 1–100.
price
number
optional
Price in the service currency. Omit for free.
currency
string
optional
3-letter code. Default `INR`.
requires_payment
boolean
optional
WhatsApp bookings wait for payment before they are confirmed. Does not affect API bookings.
location_text
string
optional
Address or link shown to the customer.
description
string
optional
Up to 2000 characters.
is_active
boolean
optional
Set `false` to stop taking bookings without deleting the service.

Content type: application/json

Responses

200The saved service, with its ScaleBiss `id`
{
  "success": true,
  "message": "Service saved",
  "data": {
    "id": 5,
    "name": "Consultation",
    "description": null,
    "kind": "appointment",
    "booking_mode": "time_slot",
    "business_type": null,
    "duration_minutes": 30,
    "buffer_minutes": 10,
    "capacity_per_slot": 1,
    "max_per_day": null,
    "max_per_customer_per_day": 1,
    "max_active_per_customer": null,
    "avg_token_minutes": null,
    "price": 500,
    "currency": "INR",
    "requires_payment": false,
    "location_text": "Main Street Clinic",
    "reminder_offsets": [],
    "is_active": true,
    "sort_order": 0,
    "source": "api",
    "external_ref": "consultation",
    "resource_ids": [
      3
    ],
    "createdAt": "2026-11-01T09:00:00+00:00",
    "updatedAt": "2026-11-01T09:00:00+00:00"
  }
}
400Validation error (`VALIDATION_ERROR`, with `details` per field), or a status change that is not allowed (`BOOKING_INVALID`)
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR",
  "details": [
    {
      "field": "starts_at",
      "message": "starts_at must be an ISO 8601 date-time, e.g. 2026-11-03T10:30:00+05:30"
    }
  ]
}
401Missing, invalid or revoked API key
{
  "success": false,
  "message": "API key is not valid",
  "code": "API_KEY_INVALID"
}
402The workspace's trial or paid plan has ended (`PLAN_EXPIRED`)
{
  "success": false,
  "status": false,
  "message": "Your plan has expired. Renew your plan to continue.",
  "code": "PLAN_EXPIRED",
  "data": {
    "code": "PLAN_EXPIRED",
    "status": "expired",
    "ends_at": "2026-10-31T18:29:59.000Z"
  }
}
429More than 60 requests per minute for this API key
{
  "success": false,
  "message": "Too many requests for this API key. Retry in a minute.",
  "code": "RATE_LIMITED"
}