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:

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_..."

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.

  1. GET /api/v1/services?branchId=…: the services, options and the branch's prices.
  2. GET /api/v1/slots?branchId=…&date=…&serviceId=…: the free times that day, with who would do each service.
  3. POST /api/v1/bookings with an Idempotency-Key header: the booking. Sent again with the same key (after a lost answer, say), the same booking comes back with "repeated": true instead 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.

StatusCodeWhat it means
401key.invalidThe key is missing, wrong, cancelled or past its end date. Send it as: Authorization: Bearer smk_live_...
403api.offAPI access is switched off for all salons right now.
403api.blockedSalonModo has stopped API access for this salon.
403key.addressThis key does not work from this internet address. The salon can add it to the key's allowed addresses.
403api.planThe salon's plan does not include API access.
403salon.restrictedThe salon's plan is unpaid, so the API only reads for now.
403salon.suspendedThe salon is suspended for an unpaid plan.
403salon.pausedThe salon is paused.
403salon.deactivatedThe salon is closed.
403key.readOnlyThis key is read only. The salon can make a Read and book key.
429api.limit.minuteToo many calls this minute. Wait the seconds in Retry-After.
429api.limit.dayThe salon has used all of today's calls. They start again at midnight India time.
429api.limit.bookingsThe salon has taken all of today's bookings through the API.
404api.notFoundNot found, or not in this key's branches.
400api.badRequestSomething in the call is missing or not in the right form. See salonmodo.com/developers.
400api.idempotencyKeySend an Idempotency-Key header of up to 100 letters, the same one if you send the same booking again.
503api.unavailableThe 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… }}
EventWhendata
booking.createdA booking was made, by the salon, its booking page, the API or as a walk-in.ApiBooking
booking.changedA booking moved to another time or person.ApiBooking
booking.cancelledA booking was cancelled or turned down, or its wait for payment ran out.ApiBooking
booking.no_showThe customer did not come.ApiBooking
booking.checked_inThe customer arrived.ApiBooking
bill.paidMoney was taken on a bill.ApiBill
bill.voidedA bill was voided.ApiBill
refund.madeMoney went back to a customer, for a bill or an online booking.ApiRefund
customer.createdA new customer.ApiCustomer
customer.changedA customer's name or details changed.ApiCustomer
feedback.receivedA customer rated a visit.ApiRating
webhook.testSent 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:

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

NameInType
branchIdquerystring (uuid)
fromquerystring (date)
toquerystring (date)
afterquerystring (uuid)
limitqueryinteger

Answer (200): ApiBillList

GET/api/v1/bills/{id}

One bill

NameInType
idpath, neededstring (uuid)

Answer (200): ApiBill

GET/api/v1/bookings

Bookings, oldest first; from and to are days in the salon's time zone

NameInType
branchIdquerystring (uuid)
fromquerystring (date)
toquerystring (date)
statusquerystring
afterquerystring (uuid)
limitqueryinteger

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

NameInType
Idempotency-Keyheader, neededstring

Body: ApiNewBooking

Answer (200): ApiBooked

GET/api/v1/bookings/{id}

One booking

NameInType
idpath, neededstring (uuid)

Answer (200): ApiBooking

POST/api/v1/bookings/{id}/cancel

Cancel a booking this key made

NameInType
idpath, neededstring (uuid)

Body: ApiCancel

Answer (200): ApiBooking

POST/api/v1/bookings/{id}/move

Move a booking this key made

NameInType
idpath, neededstring (uuid)

Body: ApiMove

Answer (200): ApiBooking

GET/api/v1/branches

The key's branches, with their opening hours

Answer (200): list of ApiBranch

GET/api/v1/customers

Customers, oldest first; names and phones as the key's Full customer details allows

NameInType
changedSincequerystring (date-time)
afterquerystring (uuid)
limitqueryinteger

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

NameInType
idpath, neededstring (uuid)

Answer (200): ApiCustomer

PATCH/api/v1/customers/{id}

Change a customer (read-and-book keys); fields left out stay as they are

NameInType
idpath, neededstring (uuid)

Body: ApiCustomerInput

Answer (200): ApiCustomer

GET/api/v1/sales/daily

Each branch's bills and sales on a day (today when left out)

NameInType
datequerystring (date)
branchIdquerystring (uuid)

Answer (200): ApiDaySales

GET/api/v1/salon

The salon, its branches, and the key making the call

Answer (200): ApiSalon

GET/api/v1/services

The services and their options, with a branch's own prices when one is given

NameInType
branchIdquerystring (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

NameInType
branchIdquery, neededstring (uuid)
datequery, neededstring (date)
serviceIdquery, neededlist of string (uuid)
optionIdquerylist of string (uuid)
staffIdquerystring (uuid)

Answer (200): list of ApiSlot

GET/api/v1/staff

The stylists customers can book

Answer (200): list of ApiStaff

What each answer holds

ApiBill

FieldType
appointmentIdstring (uuid)
branchIdstring (uuid)
cgstPaiseinteger (int64)
createdAtstring (date-time)
customerApiCustomerRef
discountPaiseinteger (int64)
duePaiseinteger (int64)
grossPaiseinteger (int64)
idstring (uuid)
invoiceNostring
itemslist of ApiBillItem
paidPaiseinteger (int64)
paymentslist of ApiMoney
refundslist of ApiMoney
roundOffPaiseinteger (int64)
sgstPaiseinteger (int64)
statusstring
taxablePaiseinteger (int64)
tipPaiseinteger (int64)
totalPaiseinteger (int64)
voidedAtstring (date-time)

ApiBillItem

FieldType
cgstPaiseinteger (int64)
discountPaiseinteger (int64)
grossPaiseinteger (int64)
gstRatestring
kindstring
namestring
productIdstring (uuid)
quantityinteger
serviceIdstring (uuid)
sgstPaiseinteger (int64)
staffIdstring (uuid)
taxablePaiseinteger (int64)
totalPaiseinteger (int64)
unitPricePaiseinteger (int64)

ApiBillList

FieldType
datalist of ApiBill
nextstring

ApiBooked

FieldType
bookingApiBooking
repeatedboolean

ApiBooking

FieldType
branchIdstring (uuid)
cancelReasonstring
cancelledAtstring (date-time)
createdAtstring (date-time)
customerApiCustomerRef
endsAtstring (date-time)
idstring (uuid)
madeByThisKeyboolean
notestring
serviceslist of ApiBookingService
sourcestring
startsAtstring (date-time)
statusstring

ApiBookingList

FieldType
datalist of ApiBooking
nextstring

ApiBookingService

FieldType
endsAtstring (date-time)
optionIdstring (uuid)
optionNamestring
pricePaiseinteger (int64)
serviceIdstring (uuid)
serviceNamestring
staffIdstring (uuid)
staffNamestring
startsAtstring (date-time)

ApiBranch

FieldType
addressstring
hourslist of ApiHours
idstring (uuid)
namestring
phonestring

ApiBranchSales

FieldType
billsinteger (int64)
branchIdstring (uuid)
paidPaiseinteger (int64)
salesPaiseinteger (int64)

ApiCancel

FieldType
reasonstring

ApiCustomer

FieldType
anniversarystring
birthdaystring
createdAtstring (date-time)
genderstring
idstring (uuid)
namestring
phonestring
updatedAtstring (date-time)

ApiCustomerIn

FieldType
namestring
phonestring

ApiCustomerInput

FieldType
anniversarystring
birthdaystring
genderstring
namestring
phonestring

ApiCustomerList

FieldType
datalist of ApiCustomer
nextstring

ApiCustomerRef

FieldType
idstring (uuid)
namestring
phonestring

ApiDaySales

FieldType
brancheslist of ApiBranchSales
datestring (date)

ApiHours

FieldType
closesAtstring (time-local)
opensAtstring (time-local)
weekdayinteger

ApiMoney

FieldType
amountPaiseinteger (int64)
atstring (date-time)
methodstring

ApiMove

FieldType
staffIdslist of string (uuid)
startsAtstring (date-time)

ApiNewBooking

FieldType
branchIdstring (uuid)
customerApiCustomerIn
notestring
serviceslist of ApiServiceWanted
startsAtstring (date-time)

ApiOption

FieldType
durationMinutesinteger
idstring (uuid)
namestring
pricePaiseinteger (int64)

ApiRating

FieldType
answeredAtstring (date-time)
billIdstring (uuid)
branchIdstring (uuid)
commentstring
customerApiCustomerRef
feelingstring
idstring (uuid)
ratinginteger
topicslist of string

ApiRefund

FieldType
amountPaiseinteger (int64)
appointmentIdstring (uuid)
atstring (date-time)
billIdstring (uuid)
branchIdstring (uuid)
kindstring

ApiSalon

FieldType
brancheslist of ApiBranch
fullDetailsboolean
idstring (uuid)
keyKindstring
keyNamestring
namestring
testboolean
timezonestring

ApiService

FieldType
categorystring
durationMinutesinteger
genderstring
idstring (uuid)
namestring
optionslist of ApiOption
pricePaiseinteger (int64)

ApiServiceWanted

FieldType
optionIdstring (uuid)
serviceIdstring (uuid)
staffIdstring (uuid)

ApiSlot

FieldType
endsAtstring (date-time)
serviceslist of ApiSlotService
startsAtstring (date-time)

ApiSlotService

FieldType
endsAtstring (date-time)
optionIdstring (uuid)
pricePaiseinteger (int64)
serviceIdstring (uuid)
staffIdstring (uuid)
staffNamestring
startsAtstring (date-time)

ApiStaff

FieldType
branchIdstring (uuid)
idstring (uuid)
levelstring
namestring
serviceIdslist of string (uuid)

The full contract, for code generators: openapi.json.