SalonModo API
Read a salon's bookings, customers and bills, take bookings for its own website, and hear the moment something happens. For developers a salon has asked to connect its website or apps.
Getting started
The salon's owner makes a key in the SalonModo app, at More → API and webhooks, and gives it to you. A key belongs to one salon and is shown only once. There are two kinds:
- Read only: reads bookings, customers, bills and the day's sales. Changes nothing.
- Read and book: also books, moves and cancels the bookings it made, and adds and changes customers. It never touches money, staff or settings.
A key may cover all the salon's branches or only some, may end on a date, and may work only from the internet addresses the owner lists. Live keys start with smk_live_. To try things safely, ask the owner to make a key in their practice salon: its keys start with smk_test_, its data is made up, and its webhook events carry "test": true.
Names and phone numbers come as the salon's staff see them: the first name and a hidden number, unless the owner gave the key full customer details. The salon's audit log notes each day a key reads full details.
Making calls
Every call goes to https://salonmodo.com/api/v1/… over HTTPS with the key in the Authorization header, and sends and receives JSON.
curl https://salonmodo.com/api/v1/salon \
-H "Authorization: Bearer smk_live_..."
- Ids are UUIDs. Times are in UTC, such as
2026-11-16T05:30:00Z; the salon's time zone is inGET /api/v1/salon. Dates (from,to,date) are days in the salon's time zone, such as2026-11-16. - Money is in paise as whole numbers:
49900is ₹499. - Lists come 50 at a time, oldest first (
limittakes up to 100). When there are more, the answer'snextis set: pass it asafterfor the next page. - New fields may be added to answers at any time; ignore the ones you do not know.
Booking for a website
With a Read and book key, a website can offer the salon's services and free times, and book for its customers by the same rules as the salon's own booking page: how many days ahead, the notice the salon needs, one waiting booking per phone, and the salon's choice of confirming at once or after a look. A new phone number becomes a new customer, so send the customer's name with it.
GET /api/v1/services?branchId=…: the services, options and the branch's prices.GET /api/v1/slots?branchId=…&date=…&serviceId=…: the free times that day, with who would do each service.POST /api/v1/bookingswith anIdempotency-Keyheader: the booking. Sent again with the same key (after a lost answer, say), the same booking comes back with"repeated": trueinstead of a second one.
curl https://salonmodo.com/api/v1/bookings \
-H "Authorization: Bearer smk_live_..." \
-H "Idempotency-Key: order-1042" \
-H "Content-Type: application/json" \
-d '{"branchId":"…","startsAt":"2026-11-16T05:30:00Z",
"services":[{"serviceId":"…"}],
"customer":{"name":"Priya Sharma","phone":"9876543210"}}'
The booking's status is booked while the salon has a look, or confirmed. No money is taken through the API: when the salon asks for an advance on its booking page, a booking through the API is paid at the salon. A key moves and cancels only the bookings it made (madeByThisKey).
Limits
Each salon's plan sets how many calls it may make a minute and a day, and how many bookings a day through the API. Every call counts, answered or not. Past a limit, calls get 429 with a Retry-After header in seconds; the day starts again at midnight India time. The salon's owner sees today's use in the app and hears when it reaches 80%.
Errors
Anything refused comes with an HTTP status and a body like this, the code to act on and the message for people:
{"error": {"code": "key.invalid", "message": "The key is missing, wrong, cancelled or past its end date. …"}}
Checks run in this order: API access switched on, the key, its addresses, the salon's plan, the salon's state, then the limits.
| Status | Code | What it means |
|---|---|---|
| 401 | key.invalid | The key is missing, wrong, cancelled or past its end date. Send it as: Authorization: Bearer smk_live_... |
| 403 | api.off | API access is switched off for all salons right now. |
| 403 | api.blocked | SalonModo has stopped API access for this salon. |
| 403 | key.address | This key does not work from this internet address. The salon can add it to the key's allowed addresses. |
| 403 | api.plan | The salon's plan does not include API access. |
| 403 | salon.restricted | The salon's plan is unpaid, so the API only reads for now. |
| 403 | salon.suspended | The salon is suspended for an unpaid plan. |
| 403 | salon.paused | The salon is paused. |
| 403 | salon.deactivated | The salon is closed. |
| 403 | key.readOnly | This key is read only. The salon can make a Read and book key. |
| 429 | api.limit.minute | Too many calls this minute. Wait the seconds in Retry-After. |
| 429 | api.limit.day | The salon has used all of today's calls. They start again at midnight India time. |
| 429 | api.limit.bookings | The salon has taken all of today's bookings through the API. |
| 404 | api.notFound | Not found, or not in this key's branches. |
| 400 | api.badRequest | Something in the call is missing or not in the right form. See salonmodo.com/developers. |
| 400 | api.idempotencyKey | Send an Idempotency-Key header of up to 100 letters, the same one if you send the same booking again. |
| 503 | api.unavailable | The API cannot answer right now. Try again in a minute. |
A 400 with a code starting validation. says what was wrong with what you sent, such as a time no longer free or a phone number that is not an Indian mobile.
Webhooks
The owner adds a webhook in the app with your https address and the events it should hear about. SalonModo then POSTs each event as JSON, as soon as it happens:
{"id": "0193…", "type": "booking.created", "createdAt": "2026-11-16T05:31:02Z", "test": false,
"data": { …the booking, as GET /api/v1/bookings/{id} gives it… }}
| Event | When | data |
|---|---|---|
booking.created | A booking was made, by the salon, its booking page, the API or as a walk-in. | ApiBooking |
booking.changed | A booking moved to another time or person. | ApiBooking |
booking.cancelled | A booking was cancelled or turned down, or its wait for payment ran out. | ApiBooking |
booking.no_show | The customer did not come. | ApiBooking |
booking.checked_in | The customer arrived. | ApiBooking |
bill.paid | Money was taken on a bill. | ApiBill |
bill.voided | A bill was voided. | ApiBill |
refund.made | Money went back to a customer, for a bill or an online booking. | ApiRefund |
customer.created | A new customer. | ApiCustomer |
customer.changed | A customer's name or details changed. | ApiCustomer |
feedback.received | A customer rated a visit. | ApiRating |
webhook.test | Sent when the owner presses Send a test. | {"message", "webhookId"} |
Checking it came from SalonModo
The webhook's secret (whsec_…) is shown once when it is made. Every delivery carries these headers:
SalonModo-Event-Id: the event's id; the same event sent again keeps it, so use it to skip repeats.SalonModo-Event: the event's type.SalonModo-Delivery: this delivery's id.SalonModo-Signature:t=<unix seconds>,v1=<hex>, where the hex is the HMAC-SHA256 oft + "." + bodywith the secret. For 24 hours after the owner makes a new secret, a secondv1made with the old secret follows.
Check the signature on the raw body, before parsing it, and refuse a t more than five minutes old.
// Node
import { createHmac, timingSafeEqual } from 'node:crypto'
function fromSalonModo(rawBody, header, secret) {
const parts = header.split(',')
const t = parts.find((p) => p.startsWith('t=')).slice(2)
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest()
return parts.filter((p) => p.startsWith('v1='))
.some((p) => { const got = Buffer.from(p.slice(3), 'hex'); return got.length === expected.length && timingSafeEqual(got, expected) })
}
# Python
import hashlib, hmac, time
def from_salonmodo(raw_body: bytes, header: str, secret: str) -> bool:
parts = header.split(',')
t = next(p[2:] for p in parts if p.startswith('t='))
if abs(time.time() - int(t)) > 300:
return False
expected = hmac.new(secret.encode(), f'{t}.'.encode() + raw_body, hashlib.sha256).hexdigest()
return any(hmac.compare_digest(p[3:], expected) for p in parts if p.startswith('v1='))
Answering, and tries again
Answer with any 2xx within 10 seconds; do the work afterwards. Any other answer, or none, is tried again after about 1, 5, 30, 120, 360, 720 and 1,440 minutes, and the delivery is then marked failed. Events can arrive more than once and out of order: use createdAt and read the latest through the API when order matters. A webhook whose deliveries all fail for 72 hours is paused and the owner is told; they turn it back on in the app. The owner can see every delivery of the last 30 days, with your answer, send a test, and send one again.
SalonModo sends only to public internet addresses over https, and does not follow redirects.
Endpoints
GET/api/v1/bills
Bills, oldest first; from and to are days in the salon's time zone
| Name | In | Type | |
|---|---|---|---|
branchId | query | string (uuid) | |
from | query | string (date) | |
to | query | string (date) | |
after | query | string (uuid) | |
limit | query | integer |
Answer (200): ApiBillList
GET/api/v1/bookings
Bookings, oldest first; from and to are days in the salon's time zone
| Name | In | Type | |
|---|---|---|---|
branchId | query | string (uuid) | |
from | query | string (date) | |
to | query | string (date) | |
status | query | string | |
after | query | string (uuid) | |
limit | query | integer |
Answer (200): ApiBookingList
POST/api/v1/bookings
Book (read-and-book keys). The same Idempotency-Key returns the same booking instead of a second one
| Name | In | Type | |
|---|---|---|---|
Idempotency-Key | header, needed | string |
Body: ApiNewBooking
Answer (200): ApiBooked
POST/api/v1/bookings/{id}/cancel
Cancel a booking this key made
| Name | In | Type | |
|---|---|---|---|
id | path, needed | string (uuid) |
Body: ApiCancel
Answer (200): ApiBooking
POST/api/v1/bookings/{id}/move
Move a booking this key made
| Name | In | Type | |
|---|---|---|---|
id | path, needed | string (uuid) |
Body: ApiMove
Answer (200): ApiBooking
GET/api/v1/customers
Customers, oldest first; names and phones as the key's Full customer details allows
| Name | In | Type | |
|---|---|---|---|
changedSince | query | string (date-time) | |
after | query | string (uuid) | |
limit | query | integer |
Answer (200): ApiCustomerList
POST/api/v1/customers
Add a customer (read-and-book keys)
Body: ApiCustomerInput
Answer (200): ApiCustomer
GET/api/v1/customers/{id}
One customer
| Name | In | Type | |
|---|---|---|---|
id | path, needed | string (uuid) |
Answer (200): ApiCustomer
PATCH/api/v1/customers/{id}
Change a customer (read-and-book keys); fields left out stay as they are
| Name | In | Type | |
|---|---|---|---|
id | path, needed | string (uuid) |
Body: ApiCustomerInput
Answer (200): ApiCustomer
GET/api/v1/sales/daily
Each branch's bills and sales on a day (today when left out)
| Name | In | Type | |
|---|---|---|---|
date | query | string (date) | |
branchId | query | string (uuid) |
Answer (200): ApiDaySales
GET/api/v1/services
The services and their options, with a branch's own prices when one is given
| Name | In | Type | |
|---|---|---|---|
branchId | query | string (uuid) |
Answer (200): list of ApiService
GET/api/v1/slots
Free times on a day for one or more services, as the booking page finds them
| Name | In | Type | |
|---|---|---|---|
branchId | query, needed | string (uuid) | |
date | query, needed | string (date) | |
serviceId | query, needed | list of string (uuid) | |
optionId | query | list of string (uuid) | |
staffId | query | string (uuid) |
Answer (200): list of ApiSlot
What each answer holds
ApiBill
| Field | Type | |
|---|---|---|
appointmentId | string (uuid) | |
branchId | string (uuid) | |
cgstPaise | integer (int64) | |
createdAt | string (date-time) | |
customer | ApiCustomerRef | |
discountPaise | integer (int64) | |
duePaise | integer (int64) | |
grossPaise | integer (int64) | |
id | string (uuid) | |
invoiceNo | string | |
items | list of ApiBillItem | |
paidPaise | integer (int64) | |
payments | list of ApiMoney | |
refunds | list of ApiMoney | |
roundOffPaise | integer (int64) | |
sgstPaise | integer (int64) | |
status | string | |
taxablePaise | integer (int64) | |
tipPaise | integer (int64) | |
totalPaise | integer (int64) | |
voidedAt | string (date-time) |
ApiBillItem
| Field | Type | |
|---|---|---|
cgstPaise | integer (int64) | |
discountPaise | integer (int64) | |
grossPaise | integer (int64) | |
gstRate | string | |
kind | string | |
name | string | |
productId | string (uuid) | |
quantity | integer | |
serviceId | string (uuid) | |
sgstPaise | integer (int64) | |
staffId | string (uuid) | |
taxablePaise | integer (int64) | |
totalPaise | integer (int64) | |
unitPricePaise | integer (int64) |
ApiBillList
| Field | Type | |
|---|---|---|
data | list of ApiBill | |
next | string |
ApiBooked
| Field | Type | |
|---|---|---|
booking | ApiBooking | |
repeated | boolean |
ApiBooking
| Field | Type | |
|---|---|---|
branchId | string (uuid) | |
cancelReason | string | |
cancelledAt | string (date-time) | |
createdAt | string (date-time) | |
customer | ApiCustomerRef | |
endsAt | string (date-time) | |
id | string (uuid) | |
madeByThisKey | boolean | |
note | string | |
services | list of ApiBookingService | |
source | string | |
startsAt | string (date-time) | |
status | string |
ApiBookingList
| Field | Type | |
|---|---|---|
data | list of ApiBooking | |
next | string |
ApiBookingService
| Field | Type | |
|---|---|---|
endsAt | string (date-time) | |
optionId | string (uuid) | |
optionName | string | |
pricePaise | integer (int64) | |
serviceId | string (uuid) | |
serviceName | string | |
staffId | string (uuid) | |
staffName | string | |
startsAt | string (date-time) |
ApiBranch
| Field | Type | |
|---|---|---|
address | string | |
hours | list of ApiHours | |
id | string (uuid) | |
name | string | |
phone | string |
ApiBranchSales
| Field | Type | |
|---|---|---|
bills | integer (int64) | |
branchId | string (uuid) | |
paidPaise | integer (int64) | |
salesPaise | integer (int64) |
ApiCancel
| Field | Type | |
|---|---|---|
reason | string |
ApiCustomer
| Field | Type | |
|---|---|---|
anniversary | string | |
birthday | string | |
createdAt | string (date-time) | |
gender | string | |
id | string (uuid) | |
name | string | |
phone | string | |
updatedAt | string (date-time) |
ApiCustomerIn
| Field | Type | |
|---|---|---|
name | string | |
phone | string |
ApiCustomerInput
| Field | Type | |
|---|---|---|
anniversary | string | |
birthday | string | |
gender | string | |
name | string | |
phone | string |
ApiCustomerList
| Field | Type | |
|---|---|---|
data | list of ApiCustomer | |
next | string |
ApiCustomerRef
| Field | Type | |
|---|---|---|
id | string (uuid) | |
name | string | |
phone | string |
ApiDaySales
| Field | Type | |
|---|---|---|
branches | list of ApiBranchSales | |
date | string (date) |
ApiHours
| Field | Type | |
|---|---|---|
closesAt | string (time-local) | |
opensAt | string (time-local) | |
weekday | integer |
ApiMoney
| Field | Type | |
|---|---|---|
amountPaise | integer (int64) | |
at | string (date-time) | |
method | string |
ApiMove
| Field | Type | |
|---|---|---|
staffIds | list of string (uuid) | |
startsAt | string (date-time) |
ApiNewBooking
| Field | Type | |
|---|---|---|
branchId | string (uuid) | |
customer | ApiCustomerIn | |
note | string | |
services | list of ApiServiceWanted | |
startsAt | string (date-time) |
ApiOption
| Field | Type | |
|---|---|---|
durationMinutes | integer | |
id | string (uuid) | |
name | string | |
pricePaise | integer (int64) |
ApiRating
| Field | Type | |
|---|---|---|
answeredAt | string (date-time) | |
billId | string (uuid) | |
branchId | string (uuid) | |
comment | string | |
customer | ApiCustomerRef | |
feeling | string | |
id | string (uuid) | |
rating | integer | |
topics | list of string |
ApiRefund
| Field | Type | |
|---|---|---|
amountPaise | integer (int64) | |
appointmentId | string (uuid) | |
at | string (date-time) | |
billId | string (uuid) | |
branchId | string (uuid) | |
kind | string |
ApiSalon
| Field | Type | |
|---|---|---|
branches | list of ApiBranch | |
fullDetails | boolean | |
id | string (uuid) | |
keyKind | string | |
keyName | string | |
name | string | |
test | boolean | |
timezone | string |
ApiService
| Field | Type | |
|---|---|---|
category | string | |
durationMinutes | integer | |
gender | string | |
id | string (uuid) | |
name | string | |
options | list of ApiOption | |
pricePaise | integer (int64) |
ApiServiceWanted
| Field | Type | |
|---|---|---|
optionId | string (uuid) | |
serviceId | string (uuid) | |
staffId | string (uuid) |
ApiSlot
| Field | Type | |
|---|---|---|
endsAt | string (date-time) | |
services | list of ApiSlotService | |
startsAt | string (date-time) |
ApiSlotService
| Field | Type | |
|---|---|---|
endsAt | string (date-time) | |
optionId | string (uuid) | |
pricePaise | integer (int64) | |
serviceId | string (uuid) | |
staffId | string (uuid) | |
staffName | string | |
startsAt | string (date-time) |
ApiStaff
| Field | Type | |
|---|---|---|
branchId | string (uuid) | |
id | string (uuid) | |
level | string | |
name | string | |
serviceIds | list of string (uuid) |
The full contract, for code generators: openapi.json.