API reference/Bookings/Create a booking, or update it by external_ref
Create a booking, or update it by external_ref
POST /client/v1/bookings
Send a booking that was made on your own website or software. It appears in the ScaleBiss CRM next to bookings made on WhatsApp and by your team, and fires the booking.created webhook.
Safe to retry. external_ref is your own booking id. Sending the same external_ref again updates that booking (200) instead of creating a second one (201) - change starts_at, quantity, resource_id, notes or meta to reschedule or amend it.
The slot is checked. ScaleBiss applies the working hours, time off, limits, minimum notice and booking window configured for the workspace. starts_at must be the start of a slot returned by GET /client/v1/bookings/availability; anything else answers 409 SLOT_FULL. Two requests for the last place at the same moment: one is booked, the other gets 409.
Time zone. A starts_at with an offset (+05:30, Z) is exact. Without one it is read in the workspace's timezone.
Contact. Matched by contact.mobile_no (digits, with country code), or created if new.
Service. Identify it with service_id, or with your own service_external_ref from POST /client/v1/booking-services. API bookings are confirmed immediately; ScaleBiss does not collect payment for them.
Request body
| Field | Type | Details |
|---|---|---|
| external_ref | string required | Your own booking id, up to 191 characters. Re-sending it updates the booking. |
| service_id | integer optional | ScaleBiss service id. Required unless `service_external_ref` is sent. |
| service_external_ref | string optional | Your own service id from `POST /booking-services`. Required unless `service_id` is sent. |
| starts_at | string · date-time required | ISO 8601 start, e.g. `2026-11-03T10:30:00+05:30`. Must be the start of a free slot. |
| resource_id | integer optional | A specific staff member / room. Omit to let ScaleBiss pick any who is free. |
| quantity | integer optional | People or places, 1–100 (group classes, tables). Default 1. |
| contact | object required | The customer: `mobile_no` (required, 8–32 chars, with country code), `name`, `email`. |
| notes | string optional | Up to 2000 characters, shown to your team. |
| meta | object optional | Anything you want stored and echoed back in webhooks. |
Content type: application/json
Responses
{
"success": true,
"message": "Booking created",
"data": {
"id": 91,
"number": "BK-000091",
"serviceId": 5,
"resourceId": 3,
"contactId": 412,
"leadId": null,
"service": {
"id": 5,
"name": "Consultation",
"kind": "appointment",
"booking_mode": "time_slot",
"location_text": "Main Street Clinic"
},
"resource": {
"id": 3,
"name": "Dr. Mehta"
},
"contact": {
"id": 412,
"name": "Asha",
"mobile_no": "919876543210"
},
"starts_at": "2026-11-03T05:00:00+00:00",
"ends_at": "2026-11-03T05:30:00+00:00",
"quantity": 1,
"token_number": null,
"status": "confirmed",
"source": "api",
"external_ref": "web-10234",
"amount": 500,
"currency": "INR",
"payment_reference_id": null,
"hold_expires_at": null,
"over_limit": false,
"notes": null,
"cancel_reason": null,
"meta": {},
"confirmed_at": "2026-11-02T11:20:00+00:00",
"cancelled_at": null,
"createdAt": "2026-11-02T11:20:00+00:00",
"updatedAt": "2026-11-02T11:20:00+00:00"
}
}{
"success": true,
"message": "Booking updated",
"data": {
"id": 91,
"number": "BK-000091",
"serviceId": 5,
"resourceId": 3,
"contactId": 412,
"leadId": null,
"service": {
"id": 5,
"name": "Consultation",
"kind": "appointment",
"booking_mode": "time_slot",
"location_text": "Main Street Clinic"
},
"resource": {
"id": 3,
"name": "Dr. Mehta"
},
"contact": {
"id": 412,
"name": "Asha",
"mobile_no": "919876543210"
},
"starts_at": "2026-11-03T05:00:00+00:00",
"ends_at": "2026-11-03T05:30:00+00:00",
"quantity": 1,
"token_number": null,
"status": "confirmed",
"source": "api",
"external_ref": "web-10234",
"amount": 500,
"currency": "INR",
"payment_reference_id": null,
"hold_expires_at": null,
"over_limit": false,
"notes": null,
"cancel_reason": null,
"meta": {},
"confirmed_at": "2026-11-02T11:20:00+00:00",
"cancelled_at": null,
"createdAt": "2026-11-02T11:20:00+00:00",
"updatedAt": "2026-11-02T11:20:00+00:00"
}
}{
"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"
}
]
}{
"success": false,
"message": "API key is not valid",
"code": "API_KEY_INVALID"
}{
"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"
}
}{
"success": false,
"message": "Service not found.",
"code": "BOOKING_NOT_FOUND"
}{
"success": false,
"message": "That time was just taken. Please pick another slot.",
"code": "SLOT_FULL",
"details": {
"starts_at": "2026-11-03T05:00:00+00:00"
}
}{
"success": false,
"message": "Too many requests for this API key. Retry in a minute.",
"code": "RATE_LIMITED"
}