Objects
Error
| Field | Type | Description |
|---|---|---|
errorrequired | object |
Token
| Field | Type | Description |
|---|---|---|
access_tokenrequired | string | |
token_typerequired | stringOne of: Bearer | |
expires_inrequired | integer | Seconds until it expires. |
Business
| Field | Type | Description |
|---|---|---|
namerequired | string | |
name_arrequired | string | |
slugrequired | string | |
timezonerequired | string | |
currencyrequired | stringOne of: SAR | |
tax_exemptrequired | boolean | |
vat_numberrequired | string | |
service_locationrequired | stringOne of: at_placeat_homeboth | |
home_service_onlyrequired | boolean |
Branch
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
namerequired | string | |
name_arrequired | string | |
cityrequired | string | |
city_arrequired | string | |
districtrequired | string | |
district_arrequired | string | |
phonerequired | string | |
location_urlrequired | string | |
latituderequired | stringor null | |
longituderequired | stringor null | |
is_mainrequired | boolean | |
is_activerequired | boolean | |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
BranchHours
| Field | Type | Description |
|---|---|---|
branch_idrequired | string | An id. Always a string, even when it looks like a number. |
weekdaysrequired | array ofobject | |
closuresrequired | array ofobject |
ServiceCategory
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
namerequired | string | |
name_arrequired | string | |
positionrequired | integer | |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
Service
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
branch_idrequired | string | An id. Always a string, even when it looks like a number. |
category_idrequired | stringor null | |
namerequired | string | |
name_arrequired | string | |
descriptionrequired | string | |
description_arrequired | string | |
duration_minutesrequired | integer | |
pricerequired | string | |
pricing_typerequired | stringOne 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. |
tiersrequired | array ofServiceTier | The tiers a variable-priced service is sold in, such as hair length. Empty for other services. |
home_servicerequired | boolean | |
is_classrequired | boolean | |
is_activerequired | boolean | |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
ServiceTier
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
namerequired | string | |
name_arrequired | string | |
pricerequired | string | |
duration_minutesrequired | integer |
TeamMember
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
branch_idrequired | string | An id. Always a string, even when it looks like a number. |
namerequired | string | |
name_arrequired | string | |
positionrequired | string | |
position_arrequired | string | |
bookablerequired | boolean | |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
Availability
| Field | Type | Description |
|---|---|---|
datarequired | array ofobject | |
daterequired | date | |
branch_idrequired | string | An id. Always a string, even when it looks like a number. |
service_idrequired | string | An id. Always a string, even when it looks like a number. |
BookingItem
| Field | Type | Description |
|---|---|---|
idrequired | string | The line's id. Send it back in PATCH to keep the line. Every edit that sends items gives the lines new ids. |
service_idrequired | stringor null | |
service_namerequired | string | |
service_name_arrequired | string | |
team_member_idrequired | stringor null | |
team_member_namerequired | string | |
team_member_name_arrequired | string | |
statusrequired | stringOne of: bookedin_progresscompletecancelledno_show | |
start_timerequired | stringor null | |
duration_minutesrequired | integer | |
pricerequired | stringor null | An amount in SAR as a string with two decimals. Null when the app lacks view_prices. |
tier_idrequired | stringor null | The tier sold, for a variable price. |
price_is_fromrequired | boolean | True while price is a starting price the business has not confirmed yet. |
BookingCustomer
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
namerequired | string | |
name_arrequired | string | |
phonerequired | stringor null | Null when the app has restrict_customer_contact. |
Booking
| Field | Type | Description |
|---|---|---|
idrequired | string | The booking's public id. |
statusrequired | stringOne of: pending_paymentbookedcancelledno_showin_progressarrivingcompletechecked_out | |
daterequired | dateor null | |
branch_idrequired | stringor null | |
channelrequired | string | |
app_idrequired | stringor null | The app that made the booking, or null when it was made in razza. |
home_visitrequired | boolean | |
customerrequired | BookingCustomer | |
itemsrequired | array ofBookingItem | |
totalrequired | stringor null | An amount in SAR as a string with two decimals. Null when the app lacks view_prices. |
checked_outrequired | boolean | |
notesrequired | string | |
special_requestsrequired | string | |
cancelled_atrequired | date-timeor null | |
completed_atrequired | date-timeor null | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
versionrequired | string | Changes 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
| Field | Type | Description |
|---|---|---|
dayrequired | integer | |
monthrequired | integer | |
yearrequired | integeror null | Null when only the day and month are known. |
Customer
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
first_namerequired | string | |
last_namerequired | string | |
first_name_arrequired | string | |
last_name_arrequired | string | |
phonerequired | stringor null | Null when the app has restrict_customer_contact. |
emailrequired | stringor null | Empty when none is known. Null when the app has restrict_customer_contact. |
genderrequired | stringOne of: MF | |
birthdayrequired | Birthdayor null | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
Payment
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
booking_idrequired | stringor null | |
amountrequired | string | |
kindrequired | stringOne of: depositpaymentrefund | |
originrequired | string | |
channelrequired | string | |
card_schemerequired | string | |
refund_ofrequired | stringor null | |
received_atrequired | date-timeor null | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
Invoice
| Field | Type | Description |
|---|---|---|
idrequired | string | The invoice's public id. |
numberrequired | string | |
typerequired | stringOne of: simplifiedtaxcredit_notedebit_noteprepayment | |
statusrequired | stringOne of: draftpendingsubmittedreportedrejectedfailedexemptcancelled | |
daterequired | dateor null | |
timerequired | stringor null | |
subtotalrequired | string | |
vat_amountrequired | string | |
totalrequired | string | |
booking_idrequired | stringor null | |
original_invoice_idrequired | stringor null | |
zatca_uuidrequired | string | |
qr_coderequired | string | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
updated_atrequired | date-time | ISO 8601 with the Riyadh offset. |
WebhookEndpoint
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
urlrequired | uri | |
eventsrequired | array ofstringOne of: booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created | |
secret_last4required | string | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
WebhookDelivery
| Field | Type | Description |
|---|---|---|
idrequired | string | An id. Always a string, even when it looks like a number. |
event_idrequired | uuid | |
event_typerequired | stringOne of: booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created | |
statusrequired | stringOne of: pendingdeliveredfailed | |
attemptsrequired | integer | |
last_status_coderequired | integeror null | |
last_errorrequired | string | |
next_attempt_atrequired | date-timeor null | |
delivered_atrequired | date-timeor null | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
BookingItemInput
| Field | Type | Description |
|---|---|---|
id | string | PATCH 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_idrequired | string | An id. Always a string, even when it looks like a number. |
team_member_idrequired | string | An id. Always a string, even when it looks like a number. |
start_timerequired | string | 24-hour time, HH:MM, in Riyadh time. |
tier_id | string | Required 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
| 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. |
BookingUpdate
| Field | Type | Description |
|---|---|---|
date | date | |
items | array ofBookingItemInput | The booking's whole list of services after the edit. |
notes | string | |
special_requests | string |
BookingCancel
| 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'. |
CancelResult
| Field | Type | Description |
|---|---|---|
datarequired | Booking | |
warningsrequired | array ofstring | |
hand_backsrequired | array ofobject | Cash or other payments the business must hand back itself. |
CustomerCreate
| Field | Type | Description |
|---|---|---|
phonerequired | string | A Saudi mobile number in any common format. |
first_namerequired | string | |
last_name | string | |
first_name_ar | string | |
last_name_ar | string | |
email | email | |
gender | stringOne of: MF | |
birthday | BirthdayInput |
CustomerUpdate
| Field | Type | Description |
|---|---|---|
phone | string | |
first_name | string | |
last_name | string | |
first_name_ar | string | |
last_name_ar | string | |
email | email | |
gender | stringOne of: MF | |
birthday | BirthdayInputor null |
BirthdayInput
| Field | Type | Description |
|---|---|---|
dayrequired | integer | |
monthrequired | integer | |
year | integeror null |
WebhookEndpointCreate
| Field | Type | Description |
|---|---|---|
urlrequired | uri | https only, up to 500 characters. |
eventsrequired | array ofstringOne of: booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created |
WebhookEndpointCreated
| Field | Type | Description |
|---|---|---|
datarequired | WebhookEndpoint | |
signing_secretrequired | string | Shown once. Verify every delivery with it. |
Event
| Field | Type | Description |
|---|---|---|
idrequired | uuid | Ignore an id you have seen. |
typerequired | stringOne of: booking.cancelledbooking.completedbooking.createdbooking.no_showbooking.updatedcustomer.createdcustomer.updatedinvoice.createdpayment.created | |
created_atrequired | date-time | ISO 8601 with the Riyadh offset. |
datarequired | Booking | Payment | Invoice | Customer | The record as GET returns it: a Booking, Payment, Invoice or Customer. |