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
| Name | In | Type | Description |
|---|---|---|---|
branchrequired | query | string | The branch. |
servicerequired | query | string | The service. |
daterequired | query | date | The day. |
team_member | query | string | Only this team member's times. |
Responses
- 200OK
Availability - 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
| Name | In | Type | Description |
|---|---|---|---|
date_from | query | date | From this day. |
date_to | query | date | To this day. |
status | query | stringOne of: pending_paymentbookedcancelledno_showin_progressarrivingcompletechecked_out | Only this status. |
branch | query | string | Only this branch. |
customer | query | string | Only this customer's bookings. |
limit | query | integer | Page size, 50 by default. |
cursor | query | string | next_cursor from the page before. |
updated_since | query | date-time | Only rows changed at or after this moment. A time without an offset is read as Riyadh time. |
Responses
- 200OK
dataarray 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
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Up 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
| Field | Type | Description |
|---|---|---|
customer_idrequired | string | An id. Always a string, even when it looks like a number. |
daterequired | date | |
itemsrequired | array ofBookingItemInput | 1 to 20 services. |
notes | string | Up to 2,000 characters. |
special_requests | string | Up to 2,000 characters. |
Responses
- 200A retry with the same Idempotency-Key and body.
dataBooking - 201Booked
dataBooking - 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
| Name | In | Type | Description |
|---|---|---|---|
booking_idrequired | path | string | The booking's public id. |
Responses
- 200OK
dataBooking - 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
| Name | In | Type | Description |
|---|---|---|---|
booking_idrequired | path | string | The booking's public id. |
If-Match | header | string | The booking's version from your last read. When it no longer matches, nothing changes and the answer is 412. |
Request body
| Field | Type | Description |
|---|---|---|
date | date | |
items | array ofBookingItemInput | The booking's whole list of services after the edit. |
notes | string | |
special_requests | string |
Responses
- 200Changed
dataBooking - 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
| Name | In | Type | Description |
|---|---|---|---|
booking_idrequired | path | string | The booking's public id. |
Request body
| Field | Type | Description |
|---|---|---|
reason | string | Shown to the customer. Defaults to razza's 'Cancelled by staff'. |
cancelled_by | stringOne of: customerbusiness | Who asked to cancel. 'business' refunds under the business's cancellation policy as a cancellation by the business. Defaults to 'customer'. |
Responses
- 200Cancelled
CancelResult - 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