Skip to content
العربية

Objects

Error

FieldTypeDescription
errorrequiredobject

Token

FieldTypeDescription
access_tokenrequiredstring
token_typerequiredstring
One of:Bearer
expires_inrequiredintegerSeconds until it expires.

Business

FieldTypeDescription
namerequiredstring
name_arrequiredstring
slugrequiredstring
timezonerequiredstring
currencyrequiredstring
One of:SAR
tax_exemptrequiredboolean
vat_numberrequiredstring
service_locationrequiredstring
One of:at_placeat_homeboth
home_service_onlyrequiredboolean

Branch

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
namerequiredstring
name_arrequiredstring
cityrequiredstring
city_arrequiredstring
districtrequiredstring
district_arrequiredstring
phonerequiredstring
location_urlrequiredstring
latituderequiredstringor null
longituderequiredstringor null
is_mainrequiredboolean
is_activerequiredboolean
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

BranchHours

FieldTypeDescription
branch_idrequiredstringAn id. Always a string, even when it looks like a number.
weekdaysrequiredarray ofobject
closuresrequiredarray ofobject

ServiceCategory

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
namerequiredstring
name_arrequiredstring
positionrequiredinteger
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

Service

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
branch_idrequiredstringAn id. Always a string, even when it looks like a number.
category_idrequiredstringor null
namerequiredstring
name_arrequiredstring
descriptionrequiredstring
description_arrequiredstring
duration_minutesrequiredinteger
pricerequiredstring
pricing_typerequiredstring
One of:fixedvariablestarting_from
fixed: price is the price. variable: priced by tier, so a booking names one of tiers. starting_from: price is where it starts, and the business confirms the final price.
tiersrequiredarray ofServiceTierThe tiers a variable-priced service is sold in, such as hair length. Empty for other services.
home_servicerequiredboolean
is_classrequiredboolean
is_activerequiredboolean
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

ServiceTier

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
namerequiredstring
name_arrequiredstring
pricerequiredstring
duration_minutesrequiredinteger

TeamMember

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
branch_idrequiredstringAn id. Always a string, even when it looks like a number.
namerequiredstring
name_arrequiredstring
positionrequiredstring
position_arrequiredstring
bookablerequiredboolean
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

Availability

FieldTypeDescription
datarequiredarray ofobject
daterequireddate
branch_idrequiredstringAn id. Always a string, even when it looks like a number.
service_idrequiredstringAn id. Always a string, even when it looks like a number.

BookingItem

FieldTypeDescription
idrequiredstringThe line's id. Send it back in PATCH to keep the line. Every edit that sends items gives the lines new ids.
service_idrequiredstringor null
service_namerequiredstring
service_name_arrequiredstring
team_member_idrequiredstringor null
team_member_namerequiredstring
team_member_name_arrequiredstring
statusrequiredstring
One of:bookedin_progresscompletecancelledno_show
start_timerequiredstringor null
duration_minutesrequiredinteger
pricerequiredstringor nullAn amount in SAR as a string with two decimals. Null when the app lacks view_prices.
tier_idrequiredstringor nullThe tier sold, for a variable price.
price_is_fromrequiredbooleanTrue while price is a starting price the business has not confirmed yet.

BookingCustomer

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
namerequiredstring
name_arrequiredstring
phonerequiredstringor nullNull when the app has restrict_customer_contact.

Booking

FieldTypeDescription
idrequiredstringThe booking's public id.
statusrequiredstring
One of:pending_paymentbookedcancelledno_showin_progressarrivingcompletechecked_out
daterequireddateor null
branch_idrequiredstringor null
channelrequiredstring
app_idrequiredstringor nullThe app that made the booking, or null when it was made in razza.
home_visitrequiredboolean
customerrequiredBookingCustomer
itemsrequiredarray ofBookingItem
totalrequiredstringor nullAn amount in SAR as a string with two decimals. Null when the app lacks view_prices.
checked_outrequiredboolean
notesrequiredstring
special_requestsrequiredstring
cancelled_atrequireddate-timeor null
completed_atrequireddate-timeor null
created_atrequireddate-timeISO 8601 with the Riyadh offset.
updated_atrequireddate-timeISO 8601 with the Riyadh offset.
versionrequiredstringChanges whenever the booking changes. Send it as If-Match on PATCH so an edit never overwrites one you have not seen. Also sent as the ETag header.

Birthday

FieldTypeDescription
dayrequiredinteger
monthrequiredinteger
yearrequiredintegeror nullNull when only the day and month are known.

Customer

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
first_namerequiredstring
last_namerequiredstring
first_name_arrequiredstring
last_name_arrequiredstring
phonerequiredstringor nullNull when the app has restrict_customer_contact.
emailrequiredstringor nullEmpty when none is known. Null when the app has restrict_customer_contact.
genderrequiredstring
One of:MF
birthdayrequiredBirthdayor null
created_atrequireddate-timeISO 8601 with the Riyadh offset.
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

Payment

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
booking_idrequiredstringor null
amountrequiredstring
kindrequiredstring
One of:depositpaymentrefund
originrequiredstring
channelrequiredstring
card_schemerequiredstring
refund_ofrequiredstringor null
received_atrequireddate-timeor null
created_atrequireddate-timeISO 8601 with the Riyadh offset.
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

Invoice

FieldTypeDescription
idrequiredstringThe invoice's public id.
numberrequiredstring
typerequiredstring
One of:simplifiedtaxcredit_notedebit_noteprepayment
statusrequiredstring
One of:draftpendingsubmittedreportedrejectedfailedexemptcancelled
daterequireddateor null
timerequiredstringor null
subtotalrequiredstring
vat_amountrequiredstring
totalrequiredstring
booking_idrequiredstringor null
original_invoice_idrequiredstringor null
zatca_uuidrequiredstring
qr_coderequiredstring
created_atrequireddate-timeISO 8601 with the Riyadh offset.
updated_atrequireddate-timeISO 8601 with the Riyadh offset.

WebhookEndpoint

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
urlrequireduri
eventsrequiredarray ofstring
One of:booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created
secret_last4requiredstring
created_atrequireddate-timeISO 8601 with the Riyadh offset.

WebhookDelivery

FieldTypeDescription
idrequiredstringAn id. Always a string, even when it looks like a number.
event_idrequireduuid
event_typerequiredstring
One of:booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created
statusrequiredstring
One of:pendingdeliveredfailed
attemptsrequiredinteger
last_status_coderequiredintegeror null
last_errorrequiredstring
next_attempt_atrequireddate-timeor null
delivered_atrequireddate-timeor null
created_atrequireddate-timeISO 8601 with the Riyadh offset.

BookingItemInput

FieldTypeDescription
idstringPATCH only: the line this one keeps. A kept line keeps its price, tier, add-ons, length and session pack. Given another service, it is priced from today's menu and its add-ons are dropped. A line with no id is new and is priced from today's menu. A stored line no item names is removed.
service_idrequiredstringAn id. Always a string, even when it looks like a number.
team_member_idrequiredstringAn id. Always a string, even when it looks like a number.
start_timerequiredstring24-hour time, HH:MM, in Riyadh time.
tier_idstringRequired for a variable-priced service: one of its tiers. A kept line of the same service keeps its tier when this is left out. A starting_from service is booked at its starting price.

BookingCreate

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.

BookingUpdate

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

BookingCancel

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'.

CancelResult

FieldTypeDescription
datarequiredBooking
warningsrequiredarray ofstring
hand_backsrequiredarray ofobjectCash or other payments the business must hand back itself.

CustomerCreate

FieldTypeDescription
phonerequiredstringA Saudi mobile number in any common format.
first_namerequiredstring
last_namestring
first_name_arstring
last_name_arstring
emailemail
genderstring
One of:MF
birthdayBirthdayInput

CustomerUpdate

FieldTypeDescription
phonestring
first_namestring
last_namestring
first_name_arstring
last_name_arstring
emailemail
genderstring
One of:MF
birthdayBirthdayInputor null

BirthdayInput

FieldTypeDescription
dayrequiredinteger
monthrequiredinteger
yearintegeror null

WebhookEndpointCreate

FieldTypeDescription
urlrequiredurihttps only, up to 500 characters.
eventsrequiredarray ofstring
One of:booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created

WebhookEndpointCreated

FieldTypeDescription
datarequiredWebhookEndpoint
signing_secretrequiredstringShown once. Verify every delivery with it.

Event

FieldTypeDescription
idrequireduuidIgnore an id you have seen.
typerequiredstring
One of:booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created
created_atrequireddate-timeISO 8601 with the Riyadh offset.
datarequiredBooking | Payment | Invoice | CustomerThe record as GET returns it: a Booking, Payment, Invoice or Customer.