Skip to content
العربية

Bookings

Open times

GEThttps://api.razza.sa/v1/availability

The times a service can start on a day, as the portal offers them.

Needs view_calendar

Parameters

NameInTypeDescription
branchrequiredquerystringThe branch.
servicerequiredquerystringThe service.
daterequiredquerydateThe day.
team_memberquerystringOnly this team member's times.

Responses

  • 200OKAvailability
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error

Bookings

GEThttps://api.razza.sa/v1/bookings

Bookings, oldest first. updated_since also finds bookings whose services or customer changed.

Needs view_calendar

Parameters

NameInTypeDescription
date_fromquerydateFrom this day.
date_toquerydateTo this day.
statusquerystring
One of:pending_paymentbookedcancelledno_showin_progressarrivingcompletechecked_out
Only this status.
branchquerystringOnly this branch.
customerquerystringOnly this customer's bookings.
limitqueryintegerPage size, 50 by default.
cursorquerystringnext_cursor from the page before.
updated_sincequerydate-timeOnly rows changed at or after this moment. A time without an offset is read as Riyadh time.

Responses

  • 200OKdataarray ofBookingnext_cursorstringor null
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error

Book a customer

POSThttps://api.razza.sa/v1/bookings

Books one of the business's customers under the owner portal's rules: the same checks for working hours, leave and clashes, no online-only offers and no deposit. Home services are refused.

Needs create_booking

Parameters

NameInTypeDescription
Idempotency-KeyheaderstringUp to 40 letters, digits, - and _. A retry with the same key and body returns the first booking with 200 instead of making a second one.

Request body

FieldTypeDescription
customer_idrequiredstringAn id. Always a string, even when it looks like a number.
daterequireddate
itemsrequiredarray ofBookingItemInput1 to 20 services.
notesstringUp to 2,000 characters.
special_requestsstringUp to 2,000 characters.

Responses

  • 200A retry with the same Idempotency-Key and body.dataBooking
  • 201BookeddataBooking
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 422razza refused it. reasons lists the portal's error codes.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error

A booking

GEThttps://api.razza.sa/v1/bookings/{booking_id}

One booking.

Needs view_calendar

Parameters

NameInTypeDescription
booking_idrequiredpathstringThe booking's public id.

Responses

  • 200OKdataBooking
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 404Not found in this business.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error

Change a booking

PATCHhttps://api.razza.sa/v1/bookings/{booking_id}

Moves it to another day or time, changes its services or team members, or its notes, under the owner portal's rules. Send only what changes. To keep a service, send its line with its id.

Needs edit_booking

Parameters

NameInTypeDescription
booking_idrequiredpathstringThe booking's public id.
If-MatchheaderstringThe booking's version from your last read. When it no longer matches, nothing changes and the answer is 412.

Request body

FieldTypeDescription
datedate
itemsarray ofBookingItemInputThe booking's whole list of services after the edit.
notesstring
special_requestsstring

Responses

  • 200ChangeddataBooking
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 404Not found in this business.Error
  • 412booking_changed: the booking changed since you read it.Error
  • 422razza refused it. reasons lists the portal's error codes.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error

Cancel a booking

POSThttps://api.razza.sa/v1/bookings/{booking_id}/cancel

Cancels under the business's cancellation policy, as the portal does. A booking held for an online payment can't be cancelled here.

Needs edit_booking

Parameters

NameInTypeDescription
booking_idrequiredpathstringThe booking's public id.

Request body

FieldTypeDescription
reasonstringShown to the customer. Defaults to razza's 'Cancelled by staff'.
cancelled_bystring
One of:customerbusiness
Who asked to cancel. 'business' refunds under the business's cancellation policy as a cancellation by the business. Defaults to 'customer'.

Responses

  • 200CancelledCancelResult
  • 400A parameter or the body is not valid.Error
  • 401No access token, or it is not valid.Error
  • 403The business is inactive, not on Qimma, paused for an unpaid razza invoice, or the app lacks the permission or has a restriction that stops it.Error
  • 404Not found in this business.Error
  • 422razza refused it. reasons lists the portal's error codes.Error
  • 429Over the app's rate limit. Wait Retry-After seconds.Error