openapi: 3.0.3
info:
title: 'Living Home Website API Documentation'
description: 'REST API for the Living Home website: guest search, booking, user auth, and reviews.'
version: 1.0.0
servers:
- url: 'http://living-home-api.test'
tags:
- name: Authentication
description: ''
- name: Bookings
description: ''
- name: 'CMS (Public)'
description: ''
- name: 'Contact (Public)'
description: ''
- name: 'Customer Profile'
description: "\nAPIs for customer profile management in the customer dashboard."
- name: Endpoints
description: ''
- name: Inventory
description: ''
- name: Media
description: "\nAPIs for handling file uploads."
- name: Payments
description: ''
- name: Reviews
description: ''
- name: Services
description: ''
- name: 'Settings (Public)'
description: ''
components:
securitySchemes:
default:
type: http
scheme: bearer
description: 'Sign in via `GET /auth/google/redirect` or register/login endpoints.'
security:
-
default: []
paths:
/api/v1/register:
post:
summary: 'Register Account'
operationId: registerAccount
description: "Create a user account and send a 6-digit OTP code to the provided email address for verification.\nIf an unverified account already exists for the email, its credentials are updated and a fresh OTP is sent."
parameters: []
responses:
201:
description: 'Account created successfully'
content:
application/json:
schema:
type: object
example:
message: 'Registration successful. Please check your email for the verification code.'
email: jane@example.com
properties:
message:
type: string
example: 'Registration successful. Please check your email for the verification code.'
email:
type: string
example: jane@example.com
422:
description: 'Validation error'
content:
application/json:
schema:
type: object
example:
message: 'The email has already been taken.'
errors:
email:
- 'The email has already been taken.'
properties:
message:
type: string
example: 'The email has already been taken.'
errors:
type: object
properties:
email:
type: array
example:
- 'The email has already been taken.'
items:
type: string
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'Full name.'
example: 'Jane Doe'
email:
type: string
description: 'Unique email address.'
example: jane@example.com
password:
type: string
description: 'Minimum 8 characters.'
example: password123
password_confirmation:
type: string
description: 'Must match `password`.'
example: password123
required:
- name
- email
- password
- password_confirmation
security: []
/api/v1/register/verify-otp:
post:
summary: 'Verify OTP'
operationId: verifyOTP
description: 'Submit the 6-digit OTP received via email to verify the account and obtain an API access token.'
parameters: []
responses:
200:
description: 'Account verified'
content:
application/json:
schema:
type: object
example:
user:
id: 199
name: 'Jermaine Tillman'
email: mya96@example.com
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:52.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
token: 1|abcdef1234567890
properties:
user:
type: object
properties:
id:
type: integer
example: 199
name:
type: string
example: 'Jermaine Tillman'
email:
type: string
example: mya96@example.com
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:52.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
token:
type: string
example: 1|abcdef1234567890
422:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Invalid OTP code'
type: object
example:
message: 'Invalid verification code.'
properties:
message:
type: string
example: 'Invalid verification code.'
-
description: 'Expired OTP code'
type: object
example:
message: 'Verification code has expired or is invalid.'
properties:
message:
type: string
example: 'Verification code has expired or is invalid.'
-
description: 'Max attempts exceeded'
type: object
example:
message: 'Too many invalid attempts. Please request a new verification code.'
properties:
message:
type: string
example: 'Too many invalid attempts. Please request a new verification code.'
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
description: 'The registered email address.'
example: jane@example.com
otp:
type: string
description: '6-digit OTP verification code.'
example: '123456'
required:
- email
- otp
security: []
/api/v1/register/resend-otp:
post:
summary: 'Resend OTP'
operationId: resendOTP
description: 'Request a new 6-digit OTP code to be sent to the email address.'
parameters: []
responses:
200:
description: 'OTP resent successfully'
content:
application/json:
schema:
type: object
example:
message: 'A new verification code has been sent to your email address.'
properties:
message:
type: string
example: 'A new verification code has been sent to your email address.'
404:
description: 'Account not found'
content:
application/json:
schema:
type: object
example:
message: 'No account found with this email address.'
properties:
message:
type: string
example: 'No account found with this email address.'
422:
description: 'Already verified'
content:
application/json:
schema:
type: object
example:
message: 'This email address is already verified.'
properties:
message:
type: string
example: 'This email address is already verified.'
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
description: 'The registered email address.'
example: jane@example.com
required:
- email
security: []
/api/v1/login:
post:
summary: Login
operationId: login
description: "Authenticate with email and password, returning a Sanctum bearer token.\nAccounts created via Google OAuth have no password and cannot log in here."
parameters: []
responses:
200:
description: Authenticated
content:
application/json:
schema:
type: object
example:
user:
id: 200
name: 'Mrs. Justina Gaylord'
email: lafayette.considine@example.com
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:53.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
token: 1|abcdef1234567890
properties:
user:
type: object
properties:
id:
type: integer
example: 200
name:
type: string
example: 'Mrs. Justina Gaylord'
email:
type: string
example: lafayette.considine@example.com
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
token:
type: string
example: 1|abcdef1234567890
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
description: ''
example: guest@example.com
password:
type: string
description: ''
example: password
required:
- email
- password
security: []
/api/v1/forgot-password:
post:
summary: 'Customer Forgot Password'
operationId: customerForgotPassword
description: 'Request a password reset link for a customer account. Returns a generic success message to prevent user enumeration.'
parameters: []
responses:
200:
description: Success
content:
application/json:
schema:
type: object
example:
message: 'If your email is registered, a password reset link has been sent.'
properties:
message:
type: string
example: 'If your email is registered, a password reset link has been sent.'
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
description: 'Customer email address.'
example: guest@example.com
required:
- email
security: []
/api/v1/reset-password:
post:
summary: 'Customer Reset Password'
operationId: customerResetPassword
description: 'Reset the customer password using a valid token sent via email.'
parameters: []
responses:
200:
description: 'Password reset successfully'
content:
application/json:
schema:
type: object
example:
message: 'Your password has been reset.'
properties:
message:
type: string
example: 'Your password has been reset.'
422:
description: 'Invalid token or payload'
content:
application/json:
schema:
type: object
example:
message: 'This password reset token is invalid.'
properties:
message:
type: string
example: 'This password reset token is invalid.'
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: 'Password reset token.'
example: 638294a2b97c02...
email:
type: string
description: 'Customer email address.'
example: guest@example.com
password:
type: string
description: 'New password (min 8 characters).'
example: new-password-123
password_confirmation:
type: string
description: 'Must match password.'
example: new-password-123
required:
- token
- email
- password
- password_confirmation
security: []
/api/v1/auth/google/redirect:
get:
summary: 'Redirect to Google'
operationId: redirectToGoogle
description: ''
parameters: []
responses:
302:
description: "Redirects to Google's OAuth consent screen"
content:
application/json:
schema:
type: object
example: {}
properties: {}
tags:
- Authentication
security: []
/api/v1/auth/google/callback:
get:
summary: 'Google callback'
operationId: googleCallback
description: 'Exchanges the Google OAuth code for a user session and Sanctum bearer token.'
parameters: []
responses:
200:
description: 'Signed in via Google'
content:
application/json:
schema:
type: object
example:
user:
id: 201
name: 'Mr. Adriel Romaguera'
email: antonio24@example.net
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:53.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
token: 1|abcdef1234567890
properties:
user:
type: object
properties:
id:
type: integer
example: 201
name:
type: string
example: 'Mr. Adriel Romaguera'
email:
type: string
example: antonio24@example.net
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
token:
type: string
example: 1|abcdef1234567890
tags:
- Authentication
security: []
/api/v1/auth/me:
get:
summary: 'Current user'
operationId: currentUser
description: ''
parameters: []
responses:
200:
description: Authenticated
content:
application/json:
schema:
type: object
example:
user:
id: 202
name: 'Morgan Hirthe'
email: dare.emelie@example.com
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:53.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
properties:
user:
type: object
properties:
id:
type: integer
example: 202
name:
type: string
example: 'Morgan Hirthe'
email:
type: string
example: dare.emelie@example.com
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
tags:
- Authentication
put:
summary: 'Update Profile'
operationId: updateProfile
description: "Update the authenticated user's profile information. If `avatar_temp_path` is provided as a string, the avatar will be updated. Set it to `null` to delete/clear the current avatar. Omit this field to keep the current avatar."
parameters: []
responses: {}
tags:
- Authentication
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'The updated name of the user.'
example: 'John Doe'
phone:
type: string
description: 'The updated phone number.'
example: '+1234567890'
nullable: true
avatar_temp_path:
type: string|null
description: 'The temporary path of the uploaded avatar file. Set to null to clear the existing avatar.'
example: tmp/1234-uuid.jpg
nullable: true
/api/v1/auth/me/password:
put:
summary: 'Update Password'
operationId: updatePassword
description: "Change the authenticated user's password. Requires the current password, and revokes all other active tokens."
parameters: []
responses:
200:
description: 'Password updated'
content:
application/json:
schema:
type: object
example:
message: 'Password updated successfully.'
properties:
message:
type: string
example: 'Password updated successfully.'
422:
description: 'Incorrect current password'
content:
application/json:
schema:
type: object
example:
message: 'The provided current password does not match our records.'
errors:
current_password:
- 'The provided current password does not match our records.'
properties:
message:
type: string
example: 'The provided current password does not match our records.'
errors:
type: object
properties:
current_password:
type: array
example:
- 'The provided current password does not match our records.'
items:
type: string
tags:
- Authentication
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
current_password:
type: string
description: "The user's current password. Required when the account already has a password."
example: oldPassword123
password:
type: string
description: 'The new password (minimum 8 characters).'
example: newPassword123
password_confirmation:
type: string
description: 'Must match the new password.'
example: newPassword123
required:
- password
- password_confirmation
/api/v1/auth/logout:
post:
summary: Logout
operationId: logout
description: 'Revokes the current Sanctum token.'
parameters: []
responses:
200:
description: 'Logged out'
content:
application/json:
schema:
type: object
example:
message: 'Logged out'
properties:
message:
type: string
example: 'Logged out'
tags:
- Authentication
/api/v1/bookings:
get:
summary: 'List user bookings'
operationId: listUserBookings
description: 'Returns a cursor-paginated list of bookings for the authenticated user ("My Bookings").'
parameters:
-
in: query
name: status
description: 'Filter bookings by status (e.g. confirmed, cancelled, checked_in, checked_out, held).'
example: confirmed
required: false
schema:
type: string
description: 'Filter bookings by status (e.g. confirmed, cancelled, checked_in, checked_out, held).'
example: confirmed
enum:
- held
- confirmed
- checked_in
- checked_out
- no_show
- cancelled
- expired
- non_refundable_forfeit
nullable: true
-
in: query
name: limit
description: 'Number of bookings to return per page (1 to 50). Default is 10. Must be at least 1. Must not be greater than 50.'
example: 10
required: false
schema:
type: integer
description: 'Number of bookings to return per page (1 to 50). Default is 10. Must be at least 1. Must not be greater than 50.'
example: 10
nullable: true
-
in: query
name: cursor
description: 'Cursor string for pagination to fetch the next set of items.'
example: null
required: false
schema:
type: string
description: 'Cursor string for pagination to fetch the next set of items.'
example: null
nullable: true
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
code: BK-20260901-ABCD
status: confirmed
booked_on: '2026-09-01'
apartment:
id: 10
code: APT-101
name: 'Deluxe Sea View Apartment'
image_url: 'http://localhost/storage/1/living.jpg'
rating: 5.0
reviews_count: 12
stay_details:
check_in:
date: '2026-09-15'
day: Tue
time: '14:00'
check_out:
date: '2026-09-18'
day: Fri
time: '12:00'
nights: 3
adults: 2
children: 0
payment:
status: paid
paid_amount: 1360.0
total: 1360.0
currency: AED
receipt_url: 'http://localhost/receipts/BK-20260901-ABCD.pdf'
cancellation_policy:
refundable: true
refund_percentage: 100
cancellation_deadline:
date: '2026-09-14'
time: '14:00'
pagination:
limit: 10
next_cursor: null
has_more: false
properties:
data:
type: array
example:
-
id: 1
code: BK-20260901-ABCD
status: confirmed
booked_on: '2026-09-01'
apartment:
id: 10
code: APT-101
name: 'Deluxe Sea View Apartment'
image_url: 'http://localhost/storage/1/living.jpg'
rating: 5
reviews_count: 12
stay_details:
check_in:
date: '2026-09-15'
day: Tue
time: '14:00'
check_out:
date: '2026-09-18'
day: Fri
time: '12:00'
nights: 3
adults: 2
children: 0
payment:
status: paid
paid_amount: 1360
total: 1360
currency: AED
receipt_url: 'http://localhost/receipts/BK-20260901-ABCD.pdf'
cancellation_policy:
refundable: true
refund_percentage: 100
cancellation_deadline:
date: '2026-09-14'
time: '14:00'
items:
type: object
properties:
id:
type: integer
example: 1
code:
type: string
example: BK-20260901-ABCD
status:
type: string
example: confirmed
booked_on:
type: string
example: '2026-09-01'
apartment:
type: object
properties:
id:
type: integer
example: 10
code:
type: string
example: APT-101
name:
type: string
example: 'Deluxe Sea View Apartment'
image_url:
type: string
example: 'http://localhost/storage/1/living.jpg'
rating:
type: number
example: 5.0
reviews_count:
type: integer
example: 12
stay_details:
type: object
properties:
check_in:
type: object
properties:
date:
type: string
example: '2026-09-15'
day:
type: string
example: Tue
time:
type: string
example: '14:00'
check_out:
type: object
properties:
date:
type: string
example: '2026-09-18'
day:
type: string
example: Fri
time:
type: string
example: '12:00'
nights:
type: integer
example: 3
adults:
type: integer
example: 2
children:
type: integer
example: 0
payment:
type: object
properties:
status:
type: string
example: paid
paid_amount:
type: number
example: 1360.0
total:
type: number
example: 1360.0
currency:
type: string
example: AED
receipt_url:
type: string
example: 'http://localhost/receipts/BK-20260901-ABCD.pdf'
cancellation_policy:
type: object
properties:
refundable:
type: boolean
example: true
refund_percentage:
type: integer
example: 100
cancellation_deadline:
type: object
properties:
date:
type: string
example: '2026-09-14'
time:
type: string
example: '14:00'
pagination:
type: object
properties:
limit:
type: integer
example: 10
next_cursor:
type: string
example: null
nullable: true
has_more:
type: boolean
example: false
tags:
- Bookings
post:
summary: 'Create a booking'
operationId: createABooking
description: 'Creates a held booking for the authenticated guest, holding inventory for 15 minutes.'
parameters: []
responses:
201:
description: 'Booking held'
content:
application/json:
schema:
type: object
example:
booking:
id: 127
code: BK-20261113-5S7J
status: confirmed
booked_on: '2026-11-13'
apartment:
id: 95
code: APT-442
name: 'quo omnis Apartment'
image_url: null
rating: null
reviews_count: 0
stay_details:
check_in:
date: '2026-11-23'
day: Mon
time: '14:00'
check_out:
date: '2026-11-25'
day: Wed
time: '12:00'
nights: 2
adults: 2
children: 0
payment:
status: pending
paid_amount: 0
security_deposit: 0
total: 1000
currency: AED
receipt_url: null
cancellation_policy:
refundable: true
refund_percentage: 100
cancellation_deadline:
date: '2026-11-22'
time: '09:24'
hold_expires_at: '2026-08-01T12:15:00.000000Z'
properties:
booking:
type: object
properties:
id:
type: integer
example: 127
code:
type: string
example: BK-20261113-5S7J
status:
type: string
example: confirmed
booked_on:
type: string
example: '2026-11-13'
apartment:
type: object
properties:
id:
type: integer
example: 95
code:
type: string
example: APT-442
name:
type: string
example: 'quo omnis Apartment'
image_url:
type: string
example: null
nullable: true
rating:
type: string
example: null
nullable: true
reviews_count:
type: integer
example: 0
stay_details:
type: object
properties:
check_in:
type: object
properties:
date:
type: string
example: '2026-11-23'
day:
type: string
example: Mon
time:
type: string
example: '14:00'
check_out:
type: object
properties:
date:
type: string
example: '2026-11-25'
day:
type: string
example: Wed
time:
type: string
example: '12:00'
nights:
type: integer
example: 2
adults:
type: integer
example: 2
children:
type: integer
example: 0
payment:
type: object
properties:
status:
type: string
example: pending
paid_amount:
type: integer
example: 0
security_deposit:
type: integer
example: 0
total:
type: integer
example: 1000
currency:
type: string
example: AED
receipt_url:
type: string
example: null
nullable: true
cancellation_policy:
type: object
properties:
refundable:
type: boolean
example: true
refund_percentage:
type: integer
example: 100
cancellation_deadline:
type: object
properties:
date:
type: string
example: '2026-11-22'
time:
type: string
example: '09:24'
hold_expires_at:
type: string
example: '2026-08-01T12:15:00.000000Z'
tags:
- Bookings
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
apartment_id:
type: integer
description: 'Must match an existing stored value.'
example: 16
plan_id:
type: integer
description: 'Must match an existing stored value.'
example: 16
check_in:
type: string
description: 'Must be a valid date. Must be a date after or equal to today.'
example: '2052-12-06'
check_out:
type: string
description: 'Must be a valid date. Must be a date after check_in.'
example: '2052-12-06'
adults:
type: integer
description: 'Must be at least 1.'
example: 22
children:
type: integer
description: 'Must be at least 0.'
example: 84
nullable: true
promotion_code:
type: string
description: 'Must not be greater than 30 characters.'
example: z
nullable: true
extra_bed:
type: boolean
description: ''
example: true
nullable: true
special_requests:
type: string
description: 'Must not be greater than 1000 characters.'
example: m
nullable: true
services:
type: array
description: ''
example: null
items:
type: object
nullable: true
properties:
service_id:
type: integer
description: 'Must match an existing stored value.'
example: 16
qty:
type: integer
description: 'Must be at least 1.'
example: 22
nullable: true
required:
- service_id
required:
- apartment_id
- plan_id
- check_in
- check_out
- adults
'/api/v1/bookings/{booking_id}/receipt':
get:
summary: 'Get booking receipt'
operationId: getBookingReceipt
description: "Returns structured receipt data for the specified booking to show on the customer website.\n`pricing.subtotal` is the amount before VAT and tourism tax (the refundable security deposit\nis excluded), while `pricing.grandTotal` is the final amount including both taxes and the\nsecurity deposit. `pricing.extraBedFee` is itemized when an extra bed was booked. Paymob card\ndetails (`cardBrand`, `cardLast4`) and the transaction reference are included when the\npayment callback payload is available."
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
booking:
date: '2026-10-01'
reference: BK-20260930-8842
apartment_name: 'Sunset Luxury Loft - Unit 4B'
phone: '+971500000000'
stay:
checkIn:
date: '2026-10-15'
time: '15:00'
checkOut:
date: '2026-10-18'
time: '11:00'
duration: '3 nights'
adult: 2
children: 1
guest_name: 'Alex Johnson'
cancellation_date: '2026-10-10'
pricing:
roomSubtotal: 450.0
services:
-
name: 'Airport Shuttle Transfer'
quantity: 1
amount: 50.0
-
name: 'Late Check-out Fee'
quantity: 1
amount: 30.0
extraBedFee: 100.0
cleaningFee: 75.0
securityDeposit: 200.0
paymentProcessingFee: 15.5
tax: 48.0
cityTourismTax: 12.0
promotions:
-
name: 'Early Bird Discount'
amount: -45.0
-
name: 'Promo Code: FALL2026'
amount: -20.0
subtotal: 655.5
grandTotal: 915.5
payment:
amount: '915.50'
status: paid
provider: paymob
method: card
cardBrand: Visa
cardLast4: '4242'
transactionReference: 987654321
currency: AED
paidAt: '2026-10-01T10:05:00+00:00'
remainingAmount: 0
footerText: 'Thank you for booking with us!'
properties:
booking:
type: object
properties:
date:
type: string
example: '2026-10-01'
reference:
type: string
example: BK-20260930-8842
apartment_name:
type: string
example: 'Sunset Luxury Loft - Unit 4B'
phone:
type: string
example: '+971500000000'
stay:
type: object
properties:
checkIn:
type: object
properties:
date:
type: string
example: '2026-10-15'
time:
type: string
example: '15:00'
checkOut:
type: object
properties:
date:
type: string
example: '2026-10-18'
time:
type: string
example: '11:00'
duration:
type: string
example: '3 nights'
adult:
type: integer
example: 2
children:
type: integer
example: 1
guest_name:
type: string
example: 'Alex Johnson'
cancellation_date:
type: string
example: '2026-10-10'
pricing:
type: object
properties:
roomSubtotal:
type: number
example: 450.0
services:
type: array
example:
- name: 'Airport Shuttle Transfer'
quantity: 1
amount: 50
- name: 'Late Check-out Fee'
quantity: 1
amount: 30
items:
type: object
properties:
name:
type: string
example: 'Airport Shuttle Transfer'
quantity:
type: integer
example: 1
amount:
type: number
example: 50.0
extraBedFee:
type: number
example: 100.0
cleaningFee:
type: number
example: 75.0
securityDeposit:
type: number
example: 200.0
paymentProcessingFee:
type: number
example: 15.5
tax:
type: number
example: 48.0
cityTourismTax:
type: number
example: 12.0
promotions:
type: array
example:
- name: 'Early Bird Discount'
amount: -45
- name: 'Promo Code: FALL2026'
amount: -20
items:
type: object
properties:
name:
type: string
example: 'Early Bird Discount'
amount:
type: number
example: -45.0
subtotal:
type: number
example: 655.5
grandTotal:
type: number
example: 915.5
payment:
type: object
properties:
amount:
type: string
example: '915.50'
status:
type: string
example: paid
provider:
type: string
example: paymob
method:
type: string
example: card
cardBrand:
type: string
example: Visa
cardLast4:
type: string
example: '4242'
transactionReference:
type: integer
example: 987654321
currency:
type: string
example: AED
paidAt:
type: string
example: '2026-10-01T10:05:00+00:00'
remainingAmount:
type: integer
example: 0
footerText:
type: string
example: 'Thank you for booking with us!'
tags:
- Bookings
parameters:
-
in: path
name: booking_id
description: 'The ID of the booking.'
example: 1
required: true
schema:
type: integer
'/api/v1/bookings/{code}/cancel':
post:
summary: 'Cancel a booking'
operationId: cancelABooking
description: "Cancels the authenticated guest's own booking by code. Refundable plans\nwith a captured payment are refunded; non-refundable plans are forfeited.\nRejected once the cancellation deadline has passed."
parameters: []
responses:
200:
description: 'Booking cancelled'
content:
application/json:
schema:
type: object
example:
booking:
id: 128
code: BK-20261113-JMTK
status: confirmed
booked_on: '2026-11-13'
apartment:
id: 96
code: APT-724
name: 'quidem nostrum Apartment'
image_url: null
rating: null
reviews_count: 0
stay_details:
check_in:
date: '2026-11-23'
day: Mon
time: '14:00'
check_out:
date: '2026-11-25'
day: Wed
time: '12:00'
nights: 2
adults: 2
children: 0
payment:
status: pending
paid_amount: 0
security_deposit: 0
total: 1000
currency: AED
receipt_url: null
cancellation_policy:
refundable: true
refund_percentage: 100
cancellation_deadline:
date: '2026-11-22'
time: '09:24'
success: true
refund_issued: true
properties:
booking:
type: object
properties:
id:
type: integer
example: 128
code:
type: string
example: BK-20261113-JMTK
status:
type: string
example: confirmed
booked_on:
type: string
example: '2026-11-13'
apartment:
type: object
properties:
id:
type: integer
example: 96
code:
type: string
example: APT-724
name:
type: string
example: 'quidem nostrum Apartment'
image_url:
type: string
example: null
nullable: true
rating:
type: string
example: null
nullable: true
reviews_count:
type: integer
example: 0
stay_details:
type: object
properties:
check_in:
type: object
properties:
date:
type: string
example: '2026-11-23'
day:
type: string
example: Mon
time:
type: string
example: '14:00'
check_out:
type: object
properties:
date:
type: string
example: '2026-11-25'
day:
type: string
example: Wed
time:
type: string
example: '12:00'
nights:
type: integer
example: 2
adults:
type: integer
example: 2
children:
type: integer
example: 0
payment:
type: object
properties:
status:
type: string
example: pending
paid_amount:
type: integer
example: 0
security_deposit:
type: integer
example: 0
total:
type: integer
example: 1000
currency:
type: string
example: AED
receipt_url:
type: string
example: null
nullable: true
cancellation_policy:
type: object
properties:
refundable:
type: boolean
example: true
refund_percentage:
type: integer
example: 100
cancellation_deadline:
type: object
properties:
date:
type: string
example: '2026-11-22'
time:
type: string
example: '09:24'
success:
type: boolean
example: true
refund_issued:
type: boolean
example: true
tags:
- Bookings
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
reason:
type: string
description: 'Must not be greater than 255 characters.'
example: b
nullable: true
parameters:
-
in: path
name: code
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/apartments/{id}/quote':
post:
summary: 'Get a price quote'
operationId: getAPriceQuote
description: "Calculates the authoritative price for a stay without holding inventory\nor creating a booking. Call it again whenever dates, guests, plan or\nservices change."
parameters: []
responses:
200:
description: Quote
content:
application/json:
schema:
type: object
example:
quote:
apartment_id: 1
rate_plan: Refundable
check_in: '2026-08-20'
check_out: '2026-08-22'
nights: 2
room_subtotal: 2000
extra_bed: false
extra_bed_fee: 0
services: []
services_total: 0
cleaning_fee: 0
security_deposit: 200
payment_processing_fee: 20
tax: 100
city_tourism_tax: 0
promotions: []
total: 2320
currency: AED
properties:
quote:
type: object
properties:
apartment_id:
type: integer
example: 1
rate_plan:
type: string
example: Refundable
check_in:
type: string
example: '2026-08-20'
check_out:
type: string
example: '2026-08-22'
nights:
type: integer
example: 2
room_subtotal:
type: integer
example: 2000
extra_bed:
type: boolean
example: false
extra_bed_fee:
type: integer
example: 0
services:
type: array
example: []
services_total:
type: integer
example: 0
cleaning_fee:
type: integer
example: 0
security_deposit:
type: integer
example: 200
payment_processing_fee:
type: integer
example: 20
tax:
type: integer
example: 100
city_tourism_tax:
type: integer
example: 0
promotions:
type: array
example: []
total:
type: integer
example: 2320
currency:
type: string
example: AED
409:
description: 'Dates unavailable'
content:
application/json:
schema:
type: object
example:
error:
code: apartment_unavailable
message: 'Apartment is no longer available for the selected dates.'
properties:
error:
type: object
properties:
code:
type: string
example: apartment_unavailable
message:
type: string
example: 'Apartment is no longer available for the selected dates.'
tags:
- Bookings
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
plan_id:
type: integer
description: 'Must match an existing stored value.'
example: 16
check_in:
type: string
description: 'Must be a valid date. Must be a date after or equal to today.'
example: '2052-12-06'
check_out:
type: string
description: 'Must be a valid date. Must be a date after check_in.'
example: '2052-12-06'
adults:
type: integer
description: 'Must be at least 1.'
example: 22
children:
type: integer
description: 'Must be at least 0.'
example: 84
nullable: true
extra_bed:
type: boolean
description: ''
example: true
nullable: true
promotion_code:
type: string
description: 'Must not be greater than 30 characters.'
example: z
nullable: true
services:
type: array
description: ''
example: null
items:
type: object
nullable: true
properties:
service_id:
type: integer
description: 'Must match an existing stored value.'
example: 16
qty:
type: integer
description: 'Must be at least 1.'
example: 22
nullable: true
required:
- service_id
required:
- plan_id
- check_in
- check_out
- adults
security: []
parameters:
-
in: path
name: id
description: 'The apartment ID.'
example: 1
required: true
schema:
type: integer
/api/v1/home:
get:
summary: 'Get homepage content'
operationId: getHomepageContent
description: 'Returns optimized homepage section copy, dynamic Spatie Media URLs, and recent guest avatars for the commitment section.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
hero_section:
eyebrow: 'Downtown Dubai · Luxury Apartments'
banner_image:
url: 'https://cdn.example.com/images/home/banner.webp'
alt: 'Downtown Dubai skyline at sunset'
booking_form:
note: 'By booking, you agree to our terms.'
about:
title: "Dubai's Most Trusted Holiday Home Experience"
description: 'Living Home, officially registered as Living Home Short Vacation Rental LLC, is a newly established company specializing in holiday home businesses.'
image:
url: 'https://cdn.example.com/images/home/about.jpg'
alt: 'Burj Khalifa in Dubai'
features:
-
title: 'Prime Locations'
description: "Every residence is handpicked in Dubai's most sought-after neighborhoods."
icon_name: pin
promotions_section:
eyebrow: 'Seasonal Promotions'
title: 'Check the Promotions'
description: 'Every season at our property brings a unique charm, carefully designed to match your travel mood.'
banner_image:
url: 'https://cdn.example.com/images/promotions/banner.webp'
alt: 'Seasonal Promotions in Dubai'
items:
-
id: 1
title: 'High season'
time_range: 'October to March'
price: 'AED 750 ~ 1200'
image:
url: 'https://cdn.example.com/images/promotions/high-season.webp'
alt: 'High season stay'
-
id: 2
title: 'Summer Escape'
time_range: 'April to September'
price: 'AED 450 ~ 800'
image:
url: 'https://cdn.example.com/images/promotions/summer.webp'
alt: 'Summer Escape'
-
id: 3
title: 'Festive Holidays'
time_range: 'December to January'
price: 'AED 1200 ~ 2500'
image:
url: 'https://cdn.example.com/images/promotions/festive.webp'
alt: 'Festive Holidays'
amenities_section:
quote: 'Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.'
items:
-
id: 1
icon: pool
title: 'Infinity Pool'
text: 'Endless pool, skyline views.'
-
id: 2
icon: wifi
title: 'High-Speed Wi-Fi'
text: 'Seamless connectivity throughout the stay.'
-
id: 3
icon: gym
title: 'Fitness Center'
text: 'State-of-the-art gym equipment.'
-
id: 4
icon: kitchen
title: 'Fully Equipped Kitchen'
text: 'Modern appliances for home cooking.'
-
id: 5
icon: air-con
title: 'Climate Control'
text: 'Central air conditioning in every suite.'
-
id: 6
icon: services
title: '24/7 Concierge'
text: 'Personalized assistance whenever needed.'
commitment:
title: 'Discover The Heart Of Destination'
happy_customer_count: 30k
items:
- 'Simple & Safe Reservations'
images:
-
url: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt: 'Living Home apartment'
pfp:
-
url: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt: 'Guest Avatar'
cta:
title: 'Book your dream stay in Downtown Dubai today'
description: 'Reserve your stay with instant confirmation.'
properties:
hero_section:
type: object
properties:
eyebrow:
type: string
example: 'Downtown Dubai · Luxury Apartments'
banner_image:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/home/banner.webp'
alt:
type: string
example: 'Downtown Dubai skyline at sunset'
booking_form:
type: object
properties:
note:
type: string
example: 'By booking, you agree to our terms.'
about:
type: object
properties:
title:
type: string
example: "Dubai's Most Trusted Holiday Home Experience"
description:
type: string
example: 'Living Home, officially registered as Living Home Short Vacation Rental LLC, is a newly established company specializing in holiday home businesses.'
image:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/home/about.jpg'
alt:
type: string
example: 'Burj Khalifa in Dubai'
features:
type: array
example:
- title: 'Prime Locations'
description: "Every residence is handpicked in Dubai's most sought-after neighborhoods."
icon_name: pin
items:
type: object
properties:
title:
type: string
example: 'Prime Locations'
description:
type: string
example: "Every residence is handpicked in Dubai's most sought-after neighborhoods."
icon_name:
type: string
example: pin
promotions_section:
type: object
properties:
eyebrow:
type: string
example: 'Seasonal Promotions'
title:
type: string
example: 'Check the Promotions'
description:
type: string
example: 'Every season at our property brings a unique charm, carefully designed to match your travel mood.'
banner_image:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/promotions/banner.webp'
alt:
type: string
example: 'Seasonal Promotions in Dubai'
items:
type: array
example:
-
id: 1
title: 'High season'
time_range: 'October to March'
price: 'AED 750 ~ 1200'
image:
url: 'https://cdn.example.com/images/promotions/high-season.webp'
alt: 'High season stay'
-
id: 2
title: 'Summer Escape'
time_range: 'April to September'
price: 'AED 450 ~ 800'
image:
url: 'https://cdn.example.com/images/promotions/summer.webp'
alt: 'Summer Escape'
-
id: 3
title: 'Festive Holidays'
time_range: 'December to January'
price: 'AED 1200 ~ 2500'
image:
url: 'https://cdn.example.com/images/promotions/festive.webp'
alt: 'Festive Holidays'
items:
type: object
properties:
id:
type: integer
example: 1
title:
type: string
example: 'High season'
time_range:
type: string
example: 'October to March'
price:
type: string
example: 'AED 750 ~ 1200'
image:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/promotions/high-season.webp'
alt:
type: string
example: 'High season stay'
amenities_section:
type: object
properties:
quote:
type: string
example: 'Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.'
items:
type: array
example:
- id: 1
icon: pool
title: 'Infinity Pool'
text: 'Endless pool, skyline views.'
- id: 2
icon: wifi
title: 'High-Speed Wi-Fi'
text: 'Seamless connectivity throughout the stay.'
- id: 3
icon: gym
title: 'Fitness Center'
text: 'State-of-the-art gym equipment.'
- id: 4
icon: kitchen
title: 'Fully Equipped Kitchen'
text: 'Modern appliances for home cooking.'
- id: 5
icon: air-con
title: 'Climate Control'
text: 'Central air conditioning in every suite.'
- id: 6
icon: services
title: '24/7 Concierge'
text: 'Personalized assistance whenever needed.'
items:
type: object
properties:
id:
type: integer
example: 1
icon:
type: string
example: pool
title:
type: string
example: 'Infinity Pool'
text:
type: string
example: 'Endless pool, skyline views.'
commitment:
type: object
properties:
title:
type: string
example: 'Discover The Heart Of Destination'
happy_customer_count:
type: string
example: 30k
items:
type: array
example:
- 'Simple & Safe Reservations'
items:
type: string
images:
type: array
example:
- url: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt: 'Living Home apartment'
items:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt:
type: string
example: 'Living Home apartment'
pfp:
type: array
example:
- url: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt: 'Guest Avatar'
items:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/home/commitment-1.jpg'
alt:
type: string
example: 'Guest Avatar'
cta:
type: object
properties:
title:
type: string
example: 'Book your dream stay in Downtown Dubai today'
description:
type: string
example: 'Reserve your stay with instant confirmation.'
tags:
- 'CMS (Public)'
security: []
/api/v1/home/apartments:
get:
summary: 'Get homepage featured apartments'
operationId: getHomepageFeaturedApartments
description: 'Returns 5 random active apartments formatted for the homepage showcase cards.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
name: 'Luxury Penthouse Skyline View'
image:
url: 'http://localhost:8000/storage/media/penthouse.jpg'
alt: 'Luxury Penthouse Skyline View'
price: '125,000'
discounted_price: '118,750'
promotions:
- 'Early Bird 5%'
specs:
bedroom: '5 BR'
bathroom: '3 BA'
guest: '10 GS'
description: 'A spacious penthouse in Downtown Dubai.'
rating: 4.8
properties:
data:
type: array
example:
-
id: 1
name: 'Luxury Penthouse Skyline View'
image:
url: 'http://localhost:8000/storage/media/penthouse.jpg'
alt: 'Luxury Penthouse Skyline View'
price: '125,000'
discounted_price: '118,750'
promotions:
- 'Early Bird 5%'
specs:
bedroom: '5 BR'
bathroom: '3 BA'
guest: '10 GS'
description: 'A spacious penthouse in Downtown Dubai.'
rating: 4.8
items:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: 'Luxury Penthouse Skyline View'
image:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/penthouse.jpg'
alt:
type: string
example: 'Luxury Penthouse Skyline View'
price:
type: string
example: '125,000'
discounted_price:
type: string
example: '118,750'
promotions:
type: array
example:
- 'Early Bird 5%'
items:
type: string
specs:
type: object
properties:
bedroom:
type: string
example: '5 BR'
bathroom:
type: string
example: '3 BA'
guest:
type: string
example: '10 GS'
description:
type: string
example: 'A spacious penthouse in Downtown Dubai.'
rating:
type: number
example: 4.8
tags:
- 'CMS (Public)'
security: []
/api/v1/home/reviews:
get:
summary: 'Get homepage reviews / testimonials'
operationId: getHomepageReviewsTestimonials
description: 'Returns published guest reviews formatted for the homepage testimonials showcase.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
name: Hurri
avatar:
url: 'https://cdn.example.com/images/avatars/hurri.webp'
alt: Hurri
rating: 5
comment: "The most breathtaking view of the Burj Khalifa we've ever seen. The apartment was pristine and the check-in seamless."
-
id: 2
name: 'Alexandre Dupont'
avatar: null
rating: 5
comment: 'Everything exceeded our expectations. Clean, modern, central location, and exceptional 24/7 concierge assistance.'
properties:
data:
type: array
example:
-
id: 1
name: Hurri
avatar:
url: 'https://cdn.example.com/images/avatars/hurri.webp'
alt: Hurri
rating: 5
comment: "The most breathtaking view of the Burj Khalifa we've ever seen. The apartment was pristine and the check-in seamless."
- id: 2
name: 'Alexandre Dupont'
avatar: null
rating: 5
comment: 'Everything exceeded our expectations. Clean, modern, central location, and exceptional 24/7 concierge assistance.'
items:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: Hurri
avatar:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/avatars/hurri.webp'
alt:
type: string
example: Hurri
rating:
type: integer
example: 5
comment:
type: string
example: "The most breathtaking view of the Burj Khalifa we've ever seen. The apartment was pristine and the check-in seamless."
tags:
- 'CMS (Public)'
security: []
/api/v1/about-page:
get:
summary: 'Get about us page content'
operationId: getAboutUsPageContent
description: 'Returns company overview, core values, mission/vision with images, services blocks, process steps, and trusted partner logos.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
hero_section:
overview_description: 'Living Home, officially registered as Living Home Short Vacation Rental L.L.C...'
banner_image:
url: 'http://localhost:8000/storage/media/about-banner.jpg'
alt: 'Living Home team in Downtown Dubai'
core_values:
trust: 'Your trust, our foundation.'
luxury: 'Premium stays, stunning views.'
comfort: 'Rest well, wake refreshed.'
hospitality: 'Warm smiles, genuine care.'
mission_vision:
subtitle: 'About Us'
title: 'Mission & Vision'
mission: 'To provide exceptional holiday home experiences...'
vision: "To become one of Dubai's most trusted..."
image_primary:
url: 'http://localhost:8000/storage/media/living-room.jpg'
alt: 'Luxury living room'
image_secondary:
url: 'http://localhost:8000/storage/media/apartment-view.jpg'
alt: 'Apartment view'
services_section:
subtitle: 'Our services'
title: 'Everything, taken care of'
blocks:
-
paragraphs:
- 'At Living Home Short Vacation Rental L.L.C...'
features:
- 'Prime Locations in Downtown Dubai'
image_main:
url: /images/dummy.jpg
alt: 'Service overview'
image_badge:
url: /images/dummy.jpg
alt: 'Detail badge'
process_section:
step_1: 'Browse our curated list and pick the perfect apartment for your stay.'
step_2: 'Quickly verify if your preferred apartment is open for your desired dates.'
step_3: 'Choose your check-in and check-out dates with our easy-to-use calendar.'
step_4: 'Confirm your booking, complete payment securely, and get instant confirmation.'
trusted_globally:
subtitle: 'WHY CHOOSE US'
title: 'Trusted Globally'
logos:
-
name: 'Partner 1'
logo_url: /images/logo-dummy.png
properties:
hero_section:
type: object
properties:
overview_description:
type: string
example: 'Living Home, officially registered as Living Home Short Vacation Rental L.L.C...'
banner_image:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/about-banner.jpg'
alt:
type: string
example: 'Living Home team in Downtown Dubai'
core_values:
type: object
properties:
trust:
type: string
example: 'Your trust, our foundation.'
luxury:
type: string
example: 'Premium stays, stunning views.'
comfort:
type: string
example: 'Rest well, wake refreshed.'
hospitality:
type: string
example: 'Warm smiles, genuine care.'
mission_vision:
type: object
properties:
subtitle:
type: string
example: 'About Us'
title:
type: string
example: 'Mission & Vision'
mission:
type: string
example: 'To provide exceptional holiday home experiences...'
vision:
type: string
example: "To become one of Dubai's most trusted..."
image_primary:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/living-room.jpg'
alt:
type: string
example: 'Luxury living room'
image_secondary:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/apartment-view.jpg'
alt:
type: string
example: 'Apartment view'
services_section:
type: object
properties:
subtitle:
type: string
example: 'Our services'
title:
type: string
example: 'Everything, taken care of'
blocks:
type: array
example:
-
paragraphs:
- 'At Living Home Short Vacation Rental L.L.C...'
features:
- 'Prime Locations in Downtown Dubai'
image_main:
url: /images/dummy.jpg
alt: 'Service overview'
image_badge:
url: /images/dummy.jpg
alt: 'Detail badge'
items:
type: object
properties:
paragraphs:
type: array
example:
- 'At Living Home Short Vacation Rental L.L.C...'
items:
type: string
features:
type: array
example:
- 'Prime Locations in Downtown Dubai'
items:
type: string
image_main:
type: object
properties:
url:
type: string
example: /images/dummy.jpg
alt:
type: string
example: 'Service overview'
image_badge:
type: object
properties:
url:
type: string
example: /images/dummy.jpg
alt:
type: string
example: 'Detail badge'
process_section:
type: object
properties:
step_1:
type: string
example: 'Browse our curated list and pick the perfect apartment for your stay.'
step_2:
type: string
example: 'Quickly verify if your preferred apartment is open for your desired dates.'
step_3:
type: string
example: 'Choose your check-in and check-out dates with our easy-to-use calendar.'
step_4:
type: string
example: 'Confirm your booking, complete payment securely, and get instant confirmation.'
trusted_globally:
type: object
properties:
subtitle:
type: string
example: 'WHY CHOOSE US'
title:
type: string
example: 'Trusted Globally'
logos:
type: array
example:
- name: 'Partner 1'
logo_url: /images/logo-dummy.png
items:
type: object
properties:
name:
type: string
example: 'Partner 1'
logo_url:
type: string
example: /images/logo-dummy.png
tags:
- 'CMS (Public)'
security: []
/api/v1/apartment-page:
get:
summary: 'Get apartments page content'
operationId: getApartmentsPageContent
description: 'Returns the hero title and banner image for the apartments listing page.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
hero:
title: 'Find Your Perfect Stay in Dubai'
banner_image:
url: 'http://localhost:8000/storage/media/apartment-banner.jpg'
alt: 'Luxury apartments in Downtown Dubai'
properties:
hero:
type: object
properties:
title:
type: string
example: 'Find Your Perfect Stay in Dubai'
banner_image:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/apartment-banner.jpg'
alt:
type: string
example: 'Luxury apartments in Downtown Dubai'
tags:
- 'CMS (Public)'
security: []
/api/v1/contact-page:
get:
summary: 'Get contact page content'
operationId: getContactPageContent
description: 'Returns contact information, concierge hero description, partnership info, map coordinates, and social links.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
hero:
description: 'Our concierge team is here around the clock to help you plan a comfortable stay, answer your questions, and make every moment in Dubai feel effortless.'
banner_image:
url: 'http://localhost:8000/storage/media/contact-banner.jpg'
alt: 'Concierge desk'
contact_info:
address: 'Room 1004, B2B Tower, Business Bay, Dubai, United Arab Emirates'
phone_numbers:
- '+971 528199289'
- '+971 588438715'
email: holidayhome@happylivinghome.com
working_hours: '24/7 concierge & guest support'
social_links:
facebook: 'https://facebook.com/livinghome'
instagram: 'https://instagram.com/livinghome'
tiktok: 'https://tiktok.com/@livinghome'
linkedin: 'https://linkedin.com/company/livinghome'
partnership:
image: 'http://localhost:8000/storage/media/partner.jpg'
description: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...'
phone_numbers:
- '+971 123456789'
- '+971 987654321'
email: mypartnership@gmail.com
map:
latitude: 25.2355
longitude: 55.3003
properties:
hero:
type: object
properties:
description:
type: string
example: 'Our concierge team is here around the clock to help you plan a comfortable stay, answer your questions, and make every moment in Dubai feel effortless.'
banner_image:
type: object
properties:
url:
type: string
example: 'http://localhost:8000/storage/media/contact-banner.jpg'
alt:
type: string
example: 'Concierge desk'
contact_info:
type: object
properties:
address:
type: string
example: 'Room 1004, B2B Tower, Business Bay, Dubai, United Arab Emirates'
phone_numbers:
type: array
example:
- '+971 528199289'
- '+971 588438715'
items:
type: string
email:
type: string
example: holidayhome@happylivinghome.com
working_hours:
type: string
example: '24/7 concierge & guest support'
social_links:
type: object
properties:
facebook:
type: string
example: 'https://facebook.com/livinghome'
instagram:
type: string
example: 'https://instagram.com/livinghome'
tiktok:
type: string
example: 'https://tiktok.com/@livinghome'
linkedin:
type: string
example: 'https://linkedin.com/company/livinghome'
partnership:
type: object
properties:
image:
type: string
example: 'http://localhost:8000/storage/media/partner.jpg'
description:
type: string
example: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...'
phone_numbers:
type: array
example:
- '+971 123456789'
- '+971 987654321'
items:
type: string
email:
type: string
example: mypartnership@gmail.com
map:
type: object
properties:
latitude:
type: number
example: 25.2355
longitude:
type: number
example: 55.3003
tags:
- 'CMS (Public)'
security: []
/api/v1/privacy-policy:
get:
summary: 'Get privacy policy content'
operationId: getPrivacyPolicyContent
description: 'Returns rich text content for privacy policy, information sharing, and cookies & tracking.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
privacy_policy: '
Our commitment to privacy...
' share_information: 'We do not sell personal data...
' cookies_tracking: 'We use essential cookies...
' properties: data: type: object properties: privacy_policy: type: string example: 'Our commitment to privacy...
' share_information: type: string example: 'We do not sell personal data...
' cookies_tracking: type: string example: 'We use essential cookies...
' tags: - 'CMS (Public)' security: [] /api/v1/cancellation-policy: get: summary: 'Get cancellation policy list' operationId: getCancellationPolicyList description: 'Returns public cancellation policy rules and details for guests.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - title: 'Refundable booking policy' details: - 'The guests can cancel free of charge until 1 day before arrival. The guest will be charged the total price of the reservation if they cancel within 1 day before arrival.' - title: 'Non-refundable booking policy' details: - 'The guest will be charged the total price of the reservation if they cancel at any time.' - title: 'Applicable refund amounts or cancellation charges' details: - 'A full refund for the guest book with a refundable option' - 'No cancellation charges' properties: data: type: array example: - title: 'Refundable booking policy' details: - 'The guests can cancel free of charge until 1 day before arrival. The guest will be charged the total price of the reservation if they cancel within 1 day before arrival.' - title: 'Non-refundable booking policy' details: - 'The guest will be charged the total price of the reservation if they cancel at any time.' - title: 'Applicable refund amounts or cancellation charges' details: - 'A full refund for the guest book with a refundable option' - 'No cancellation charges' items: type: object properties: title: type: string example: 'Refundable booking policy' details: type: array example: - 'The guests can cancel free of charge until 1 day before arrival. The guest will be charged the total price of the reservation if they cancel within 1 day before arrival.' items: type: string tags: - 'CMS (Public)' security: [] /api/v1/contact: post: summary: 'Submit Contact Form' operationId: submitContactForm description: 'Store a guest inquiry submitted from the website contact page.' parameters: [] responses: 201: description: '' content: application/json: schema: type: object example: message: 'Thank you for reaching out! Your message has been received.' id: 1 properties: message: type: string example: 'Thank you for reaching out! Your message has been received.' id: type: integer example: 1 422: description: '' content: application/json: schema: type: object example: message: 'The full name field is required.' errors: full_name: - 'The full name field is required.' properties: message: type: string example: 'The full name field is required.' errors: type: object properties: full_name: type: array example: - 'The full name field is required.' items: type: string tags: - 'Contact (Public)' requestBody: required: true content: application/json: schema: type: object properties: full_name: type: string description: 'The full name of the person submitting the inquiry. Must not be greater than 100 characters.' example: 'John Doe' email: type: string description: 'Valid email address for reply. Must be a valid email address. Must not be greater than 150 characters.' example: john.doe@example.com phone: type: string description: 'Optional contact phone number. Must not be greater than 30 characters.' example: '+971 50 123 4567' nullable: true message: type: string description: 'The inquiry or feedback message text. Must not be greater than 5000 characters.' example: 'Hi, I would like to inquire about monthly stay rates for 2-bedroom apartments.' required: - full_name - email - message security: [] /api/v1/customer/profile: get: summary: 'Get Customer Profile' operationId: getCustomerProfile description: "Retrieve the authenticated customer's profile details." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: user: id: 203 name: 'Dr. Darrel DuBuque' email: cody01@example.org phone: null role: guest status: active avatar_url: '' email_verified_at: '2026-11-13T09:24:53.000000Z' created_at: '2026-11-13T09:24:53.000000Z' updated_at: '2026-11-13T09:24:53.000000Z' properties: user: type: object properties: id: type: integer example: 203 name: type: string example: 'Dr. Darrel DuBuque' email: type: string example: cody01@example.org phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active avatar_url: type: string example: '' email_verified_at: type: string example: '2026-11-13T09:24:53.000000Z' created_at: type: string example: '2026-11-13T09:24:53.000000Z' updated_at: type: string example: '2026-11-13T09:24:53.000000Z' tags: - 'Customer Profile' put: summary: 'Update Customer Profile' operationId: updateCustomerProfile description: "Update the customer's name, email, phone number, and/or password." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: user: id: 204 name: 'Ms. Audra Crooks II' email: gulgowski.asia@example.com phone: null role: guest status: active avatar_url: '' email_verified_at: '2026-11-13T09:24:53.000000Z' created_at: '2026-11-13T09:24:53.000000Z' updated_at: '2026-11-13T09:24:53.000000Z' properties: user: type: object properties: id: type: integer example: 204 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: gulgowski.asia@example.com phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active avatar_url: type: string example: '' email_verified_at: type: string example: '2026-11-13T09:24:53.000000Z' created_at: type: string example: '2026-11-13T09:24:53.000000Z' updated_at: type: string example: '2026-11-13T09:24:53.000000Z' tags: - 'Customer Profile' requestBody: required: false content: application/json: schema: type: object properties: name: type: string description: 'Customer full name. Must not be greater than 255 characters.' example: 'John Doe' email: type: string description: 'Customer unique email address. Must be a valid email address. Must not be greater than 255 characters.' example: john.doe@example.com phone: type: string description: 'Customer contact phone number. Must not be greater than 20 characters.' example: '+1234567890' nullable: true current_password: type: string description: 'Current password of the customer (required if setting a new password).' example: oldPassword123 nullable: true password: type: string description: 'New password (minimum 8 characters, requires password_confirmation). Must be at least 8 characters.' example: newSecretPassword123 password_confirmation: type: string description: 'Confirmation of the new password. This field is required whenpassword is present.'
example: newSecretPassword123
/api/v1/customer/profile/avatar:
post:
summary: 'Upload Customer Avatar'
operationId: uploadCustomerAvatar
description: "Upload or update the customer's avatar directly via multipart/form-data."
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
user:
id: 205
name: 'Ms. Audra Crooks II'
email: idickens@example.org
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:53.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
properties:
user:
type: object
properties:
id:
type: integer
example: 205
name:
type: string
example: 'Ms. Audra Crooks II'
email:
type: string
example: idickens@example.org
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
tags:
- 'Customer Profile'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
avatar:
type: string
format: binary
description: 'The image file for the avatar (max 5MB, format: jpeg, png, jpg, webp, avif). Must be a file. Must be an image. Must not be greater than 5120 kilobytes.'
required:
- avatar
delete:
summary: 'Delete Customer Avatar'
operationId: deleteCustomerAvatar
description: "Delete the authenticated customer's current avatar."
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
user:
id: 206
name: 'Morgan Hirthe'
email: imclaughlin@example.org
phone: null
role: guest
status: active
avatar_url: ''
email_verified_at: '2026-11-13T09:24:53.000000Z'
created_at: '2026-11-13T09:24:53.000000Z'
updated_at: '2026-11-13T09:24:53.000000Z'
properties:
user:
type: object
properties:
id:
type: integer
example: 206
name:
type: string
example: 'Morgan Hirthe'
email:
type: string
example: imclaughlin@example.org
phone:
type: string
example: null
nullable: true
role:
type: string
example: guest
status:
type: string
example: active
avatar_url:
type: string
example: ''
email_verified_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
updated_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
tags:
- 'Customer Profile'
/api/broadcasting/auth:
get:
summary: 'Authenticate the request for channel access.'
operationId: authenticateTheRequestForChannelAccess
description: ''
parameters: []
responses:
401:
description: ''
content:
application/json:
schema:
type: object
example:
message: Unauthenticated.
properties:
message:
type: string
example: Unauthenticated.
tags:
- Endpoints
security: []
/api/v1/apartments:
get:
summary: 'Search apartments'
operationId: searchApartments
description: "Returns apartments using the home apartment card format. When dates are\nprovided, only apartments with open inventory for each requested night\nare returned, with the lowest nightly rate summed across the stay."
parameters:
-
in: query
name: check_in
description: 'This field is required when check_out is present. Must be a valid date.'
example: '2026-11-13T09:24:53'
required: false
schema:
type: string
description: 'This field is required when check_out is present. Must be a valid date.'
example: '2026-11-13T09:24:53'
nullable: true
-
in: query
name: check_out
description: 'This field is required when check_in is present. Must be a valid date. Must be a date after check_in.'
example: '2052-12-06'
required: false
schema:
type: string
description: 'This field is required when check_in is present. Must be a valid date. Must be a date after check_in.'
example: '2052-12-06'
nullable: true
-
in: query
name: adults
description: 'Must be at least 1.'
example: 22
required: false
schema:
type: integer
description: 'Must be at least 1.'
example: 22
nullable: true
-
in: query
name: children
description: 'Must be at least 0.'
example: 84
required: false
schema:
type: integer
description: 'Must be at least 0.'
example: 84
nullable: true
-
in: query
name: min_price
description: 'Must be at least 0.'
example: 12
required: false
schema:
type: integer
description: 'Must be at least 0.'
example: 12
nullable: true
-
in: query
name: max_price
description: 'Must be at least 0.'
example: 77
required: false
schema:
type: integer
description: 'Must be at least 0.'
example: 77
nullable: true
-
in: query
name: bedrooms
description: 'Must be at least 0.'
example: 8
required: false
schema:
type: integer
description: 'Must be at least 0.'
example: 8
nullable: true
-
in: query
name: bathrooms
description: 'Must be at least 0.'
example: 76
required: false
schema:
type: integer
description: 'Must be at least 0.'
example: 76
nullable: true
-
in: query
name: extra_bed_allowed
description: ''
example: true
required: false
schema:
type: boolean
description: ''
example: true
nullable: true
-
in: query
name: amenities
description: 'Must match an existing stored value.'
example:
- 16
required: false
schema:
type: array
description: 'Must match an existing stored value.'
example:
- 16
items:
type: integer
-
in: query
name: limit
description: 'Must be at least 1. Must not be greater than 50.'
example: 22
required: false
schema:
type: integer
description: 'Must be at least 1. Must not be greater than 50.'
example: 22
nullable: true
-
in: query
name: cursor
description: ''
example: architecto
required: false
schema:
type: string
description: ''
example: architecto
nullable: true
responses:
200:
description: 'Apartments found'
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
name: 'Standard Apartment'
image:
url: null
alt: 'Standard Apartment'
price: '45,000'
discounted_price: null
promotions: []
specs:
bedroom: '2 BR'
bathroom: '1 BA'
guest: '2 GS'
description: ''
rating: null
pagination:
limit: 12
next_cursor: null
has_more: false
properties:
data:
type: array
example:
-
id: 1
name: 'Standard Apartment'
image:
url: null
alt: 'Standard Apartment'
price: '45,000'
discounted_price: null
promotions: []
specs:
bedroom: '2 BR'
bathroom: '1 BA'
guest: '2 GS'
description: ''
rating: null
items:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: 'Standard Apartment'
image:
type: object
properties:
url:
type: string
example: null
nullable: true
alt:
type: string
example: 'Standard Apartment'
price:
type: string
example: '45,000'
discounted_price:
type: string
example: null
nullable: true
promotions:
type: array
example: []
specs:
type: object
properties:
bedroom:
type: string
example: '2 BR'
bathroom:
type: string
example: '1 BA'
guest:
type: string
example: '2 GS'
description:
type: string
example: ''
rating:
type: string
example: null
nullable: true
pagination:
type: object
properties:
limit:
type: integer
example: 12
next_cursor:
type: string
example: null
nullable: true
has_more:
type: boolean
example: false
tags:
- Inventory
security: []
'/api/v1/apartments/{id}':
get:
summary: 'Get apartment details'
operationId: getApartmentDetails
description: ''
parameters: []
responses:
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'No query results for model [App\Models\Apartment] 1'
properties:
message:
type: string
example: 'No query results for model [App\Models\Apartment] 1'
tags:
- Inventory
security: []
parameters:
-
in: path
name: id
description: 'The apartment ID.'
example: 1
required: true
schema:
type: integer
'/api/v1/apartments/{id}/availability':
get:
summary: 'Get apartment availability'
operationId: getApartmentAvailability
description: "Returns per-day availability and lowest available price for the next\n90 days by default. `available` is true when at least one rate plan\nhas open inventory that date; `price` is the cheapest open plan's price.\n`is_held` is true when the date is unavailable due to an active hold.\n`hold_expires_at` is the ISO 8601 timestamp when the hold expires, or null."
parameters:
-
in: query
name: from
description: 'Must be a valid date.'
example: '2026-11-13T09:24:53'
required: false
schema:
type: string
description: 'Must be a valid date.'
example: '2026-11-13T09:24:53'
nullable: true
-
in: query
name: to
description: 'Must be a valid date. Must be a date after or equal to from.'
example: '2052-12-06'
required: false
schema:
type: string
description: 'Must be a valid date. Must be a date after or equal to from.'
example: '2052-12-06'
nullable: true
responses:
200:
description: 'Availability (truncated to one day)'
content:
application/json:
schema:
type: object
example:
dates:
-
date: '2026-08-10'
available: true
is_held: false
hold_expires_at: null
price: 42000
properties:
dates:
type: array
example:
- date: '2026-08-10'
available: true
is_held: false
hold_expires_at: null
price: 42000
items:
type: object
properties:
date:
type: string
example: '2026-08-10'
available:
type: boolean
example: true
is_held:
type: boolean
example: false
hold_expires_at:
type: string
example: null
nullable: true
price:
type: integer
example: 42000
tags:
- Inventory
security: []
parameters:
-
in: path
name: id
description: 'The apartment ID.'
example: 1
required: true
schema:
type: integer
'/api/v1/apartments/{id}/gallery':
get:
summary: 'Get apartment gallery'
operationId: getApartmentGallery
description: 'Returns the gallery images for the specified apartment with cursor pagination.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
url: 'http://localhost/storage/1/living.jpg'
alt_text: 'Living Room'
sort_order: 1
pagination:
limit: 12
next_cursor: null
has_more: false
properties:
data:
type: array
example:
- id: 1
url: 'http://localhost/storage/1/living.jpg'
alt_text: 'Living Room'
sort_order: 1
items:
type: object
properties:
id:
type: integer
example: 1
url:
type: string
example: 'http://localhost/storage/1/living.jpg'
alt_text:
type: string
example: 'Living Room'
sort_order:
type: integer
example: 1
pagination:
type: object
properties:
limit:
type: integer
example: 12
next_cursor:
type: string
example: null
nullable: true
has_more:
type: boolean
example: false
tags:
- Inventory
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
limit:
type: integer
description: 'Must be at least 1. Must not be greater than 50.'
example: 1
nullable: true
cursor:
type: string
description: ''
example: architecto
nullable: true
security: []
parameters:
-
in: path
name: id
description: 'The apartment ID.'
example: 1
required: true
schema:
type: integer
'/api/v1/apartments/{id}/reviews':
get:
summary: 'Get apartment reviews'
operationId: getApartmentReviews
description: 'Returns approved guest reviews for the specified apartment with cursor pagination.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
rating: 5
text: 'Very clean and comfortable.'
guest_name: 'Jane Doe'
avatar:
url: 'https://cdn.example.com/images/avatars/jane.webp'
alt: 'Jane Doe'
admin_reply: null
replied_at: null
created_at: '2026-08-20T10:00:00.000000Z'
pagination:
limit: 10
next_cursor: null
has_more: false
properties:
data:
type: array
example:
-
id: 1
rating: 5
text: 'Very clean and comfortable.'
guest_name: 'Jane Doe'
avatar:
url: 'https://cdn.example.com/images/avatars/jane.webp'
alt: 'Jane Doe'
admin_reply: null
replied_at: null
created_at: '2026-08-20T10:00:00.000000Z'
items:
type: object
properties:
id:
type: integer
example: 1
rating:
type: integer
example: 5
text:
type: string
example: 'Very clean and comfortable.'
guest_name:
type: string
example: 'Jane Doe'
avatar:
type: object
properties:
url:
type: string
example: 'https://cdn.example.com/images/avatars/jane.webp'
alt:
type: string
example: 'Jane Doe'
admin_reply:
type: string
example: null
nullable: true
replied_at:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-08-20T10:00:00.000000Z'
pagination:
type: object
properties:
limit:
type: integer
example: 10
next_cursor:
type: string
example: null
nullable: true
has_more:
type: boolean
example: false
tags:
- Inventory
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
limit:
type: integer
description: 'Must be at least 1. Must not be greater than 50.'
example: 1
nullable: true
cursor:
type: string
description: ''
example: architecto
nullable: true
security: []
parameters:
-
in: path
name: id
description: 'The apartment ID.'
example: 1
required: true
schema:
type: integer
/api/v1/amenities:
get:
summary: 'List amenities'
operationId: listAmenities
description: 'Returns the global catalog of amenities available for filtering apartments.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
-
id: 1
name: Wi-Fi
icon: wifi
-
id: 2
name: 'Swimming Pool'
icon: pool
properties:
data:
type: array
example:
- id: 1
name: Wi-Fi
icon: wifi
- id: 2
name: 'Swimming Pool'
icon: pool
items:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: Wi-Fi
icon:
type: string
example: wifi
tags:
- Inventory
security: []
/api/v1/media/intent:
post:
summary: 'Request Upload Intent'
operationId: requestUploadIntent
description: 'Request a URL to upload a file to. Depending on the server configuration, this will return either a local server URL or a direct-to-cloud presigned URL (e.g., AWS S3).'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
strategy: local
upload_url: 'http://api.example.com/api/v1/media/local-upload?path=tmp/1234-uuid.jpg'
method: POST
temp_path: tmp/1234-uuid.jpg
headers: {}
properties:
strategy:
type: string
example: local
upload_url:
type: string
example: 'http://api.example.com/api/v1/media/local-upload?path=tmp/1234-uuid.jpg'
method:
type: string
example: POST
temp_path:
type: string
example: tmp/1234-uuid.jpg
headers:
type: object
properties: {}
tags:
- Media
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filename:
type: string
description: 'The original filename of the upload.'
example: avatar.jpg
content_type:
type: string
description: 'The MIME type of the file.'
example: image/jpeg
required:
- filename
- content_type
/api/v1/media/local-upload:
post:
summary: 'Upload File (Local Strategy)'
operationId: uploadFileLocalStrategy
description: 'This endpoint is only used when the server''s upload strategy is set to "local". The frontend should send the multipart file here using the exact URL returned by the Intent endpoint.'
parameters:
-
in: query
name: path
description: 'The temporary path generated by the intent endpoint.'
example: tmp/1234-uuid.jpg
required: true
schema:
type: string
description: 'The temporary path generated by the intent endpoint.'
example: tmp/1234-uuid.jpg
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'File uploaded successfully'
path: tmp/1234-uuid.jpg
properties:
message:
type: string
example: 'File uploaded successfully'
path:
type: string
example: tmp/1234-uuid.jpg
tags:
- Media
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
path:
type: string
description: 'Must start with one of tmp/.'
example: tmp/bngz
file:
type: string
format: binary
description: 'The raw file to upload.'
required:
- path
- file
/api/v1/payments/intention:
post:
summary: 'Create a payment intention (G5)'
operationId: createAPaymentIntentionG5
description: "Returns the hosted Unified Checkout URL to redirect the guest to. Idempotent:\nwhile the booking is still held and unpaid the same intention (and therefore\nthe same URL) is returned, so a guest who abandons the Paymob tab and retries\nis never handed a second payment link. When `already_paid` is true the guest\nalready completed payment — do not redirect, go to the receipt instead."
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
oneOf:
-
description: 'Intention created'
type: object
example:
data:
payment_id: 1
client_secret: cs_test
checkout_url: 'https://uae.paymob.com/unifiedcheckout/?publicKey=pk&clientSecret=cs_test'
amount: 200000
currency: AED
already_paid: false
booking_status: held
properties:
data:
type: object
properties:
payment_id:
type: integer
example: 1
client_secret:
type: string
example: cs_test
checkout_url:
type: string
example: 'https://uae.paymob.com/unifiedcheckout/?publicKey=pk&clientSecret=cs_test'
amount:
type: integer
example: 200000
currency:
type: string
example: AED
already_paid:
type: boolean
example: false
booking_status:
type: string
example: held
-
description: 'Already paid'
type: object
example:
data:
payment_id: 1
client_secret: ''
checkout_url: ''
amount: 200000
currency: AED
already_paid: true
booking_status: confirmed
properties:
data:
type: object
properties:
payment_id:
type: integer
example: 1
client_secret:
type: string
example: ''
checkout_url:
type: string
example: ''
amount:
type: integer
example: 200000
currency:
type: string
example: AED
already_paid:
type: boolean
example: true
booking_status:
type: string
example: confirmed
tags:
- Payments
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
booking_code:
type: string
description: "The held booking's code."
example: BK-20260815-AB12
required:
- booking_code
/api/v1/payments/callback:
post:
summary: 'Paymob transaction callback'
operationId: paymobTransactionCallback
description: "Webhook target (Processed POST). HMAC-verified, idempotent by Paymob\ntransaction id; confirms the booking on success. Source of truth for\npayment state."
parameters: []
responses:
200:
description: Acknowledged
content:
application/json:
schema:
type: object
example:
data:
received: true
properties:
data:
type: object
properties:
received:
type: boolean
example: true
403:
description: 'Bad HMAC'
content:
application/json:
schema:
type: object
example:
error:
code: invalid_hmac
message: 'HMAC verification failed.'
properties:
error:
type: object
properties:
code:
type: string
example: invalid_hmac
message:
type: string
example: 'HMAC verification failed.'
tags:
- Payments
security: []
'/api/v1/payments/{code}/status':
get:
summary: 'Get payment and booking status (Polling / Verification)'
operationId: getPaymentAndBookingStatusPollingVerification
description: "Returns the current confirmation and payment status for a booking. Used by\nthe frontend checkout screen for polling when WebSockets are unavailable or stale.\nOptionally queries Paymob gateway to reconcile if still pending."
parameters:
-
in: query
name: booking_code
description: 'The booking code to check.'
example: BK-20260815-AB12
required: false
schema:
type: string
description: 'The booking code to check.'
example: BK-20260815-AB12
-
in: query
name: verify
description: 'Optional. Set true to actively verify status with Paymob gateway.'
example: false
required: false
schema:
type: boolean
description: 'Optional. Set true to actively verify status with Paymob gateway.'
example: false
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
booking_code: BK-20260815-AB12
status: confirmed
payment_status: paid
is_confirmed: true
is_paid: true
hold_expires_at: null
paid_amount: 2000.0
total: 2000.0
currency: AED
receipt_url: 'http://localhost/receipts/BK-20260815-AB12.pdf'
properties:
data:
type: object
properties:
booking_code:
type: string
example: BK-20260815-AB12
status:
type: string
example: confirmed
payment_status:
type: string
example: paid
is_confirmed:
type: boolean
example: true
is_paid:
type: boolean
example: true
hold_expires_at:
type: string
example: null
nullable: true
paid_amount:
type: number
example: 2000.0
total:
type: number
example: 2000.0
currency:
type: string
example: AED
receipt_url:
type: string
example: 'http://localhost/receipts/BK-20260815-AB12.pdf'
tags:
- Payments
security: []
parameters:
-
in: path
name: code
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/reviews/token/{token}':
get:
summary: 'Validate a review token'
operationId: validateAReviewToken
description: 'Returns the booking summary for a valid, unexpired, unconsumed token.'
parameters: []
responses:
200:
description: 'Valid token'
content:
application/json:
schema:
type: object
example:
booking:
code: BK-A1B2C3
check_in: '2026-09-01'
check_out: '2026-09-05'
room_name: 'Standard Room'
expires_at: '2026-09-12T00:00:00.000000Z'
properties:
booking:
type: object
properties:
code:
type: string
example: BK-A1B2C3
check_in:
type: string
example: '2026-09-01'
check_out:
type: string
example: '2026-09-05'
room_name:
type: string
example: 'Standard Room'
expires_at:
type: string
example: '2026-09-12T00:00:00.000000Z'
tags:
- Reviews
security: []
parameters:
-
in: path
name: token
description: 'The token.'
example: architecto
required: true
schema:
type: string
/api/v1/reviews:
post:
summary: 'Submit a review'
operationId: submitAReview
description: 'Consumes the token so it cannot be reused.'
parameters: []
responses:
201:
description: 'Review submitted'
content:
application/json:
schema:
type: object
example:
review:
id: 13
booking_id: 129
guest_id: 210
rating: 2
title: null
text: 'Fugiat sunt nihil accusantium harum mollitia. Deserunt aut ab provident perspiciatis quo omnis nostrum. Adipisci quidem nostrum qui commodi incidunt iure.'
status: pending
created_at: '2026-11-13T09:24:53.000000Z'
properties:
review:
type: object
properties:
id:
type: integer
example: 13
booking_id:
type: integer
example: 129
guest_id:
type: integer
example: 210
rating:
type: integer
example: 2
title:
type: string
example: null
nullable: true
text:
type: string
example: 'Fugiat sunt nihil accusantium harum mollitia. Deserunt aut ab provident perspiciatis quo omnis nostrum. Adipisci quidem nostrum qui commodi incidunt iure.'
status:
type: string
example: pending
created_at:
type: string
example: '2026-11-13T09:24:53.000000Z'
tags:
- Reviews
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: ''
example: architecto
rating:
type: integer
description: 'Must be at least 1. Must not be greater than 5.'
example: 2
title:
type: string
description: 'Must not be greater than 100 characters.'
example: g
nullable: true
text:
type: string
description: 'Must not be greater than 2000 characters.'
example: z
nullable: true
required:
- token
- rating
security: []
/api/v1/services:
get:
summary: 'List services'
operationId: listServices
description: 'Returns active additional services (e.g. airport pickup) available at checkout.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
services:
-
id: 51
code: SVC-706
name: 'animi quos'
description: 'Et fugiat sunt nihil accusantium.'
price: 50
per_night: false
sort_order: 0
-
id: 52
code: SVC-641
name: 'mollitia modi'
description: 'Aut ab provident perspiciatis quo omnis nostrum aut.'
price: 50
per_night: false
sort_order: 0
properties:
services:
type: array
example:
- id: 51
code: SVC-706
name: 'animi quos'
description: 'Et fugiat sunt nihil accusantium.'
price: 50
per_night: false
sort_order: 0
- id: 52
code: SVC-641
name: 'mollitia modi'
description: 'Aut ab provident perspiciatis quo omnis nostrum aut.'
price: 50
per_night: false
sort_order: 0
items:
type: object
properties:
id:
type: integer
example: 51
code:
type: string
example: SVC-706
name:
type: string
example: 'animi quos'
description:
type: string
example: 'Et fugiat sunt nihil accusantium.'
price:
type: integer
example: 50
per_night:
type: boolean
example: false
sort_order:
type: integer
example: 0
tags:
- Services
security: []
/api/v1/settings:
get:
summary: 'Get public settings'
operationId: getPublicSettings
description: 'Returns public policies, timings, and configuration needed by frontend booking and checkout flows.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
check_in_time: '14:00'
check_out_time: '12:00'
cancellation_threshold_hours: 24
booking_hold_minutes: 15
vat_rate: 500
payment_processing_fee: 20
default_currency: AED
min_stay_nights_default: 1
max_advance_booking_days: 365
hotel_categories:
-
code: four_star
name: '4-Star / Superior'
fee_per_bedroom: 15
-
code: five_star
name: '5-Star / Deluxe'
fee_per_bedroom: 20
-
code: standard
name: 'Standard / 3-Star'
fee_per_bedroom: 10
security_deposit_rates:
-
bedrooms: 1
amount: 100
-
bedrooms: 2
amount: 200
-
bedrooms: 3
amount: 400
properties:
check_in_time:
type: string
example: '14:00'
check_out_time:
type: string
example: '12:00'
cancellation_threshold_hours:
type: integer
example: 24
booking_hold_minutes:
type: integer
example: 15
vat_rate:
type: integer
example: 500
payment_processing_fee:
type: integer
example: 20
default_currency:
type: string
example: AED
min_stay_nights_default:
type: integer
example: 1
max_advance_booking_days:
type: integer
example: 365
hotel_categories:
type: array
example:
- code: four_star
name: '4-Star / Superior'
fee_per_bedroom: 15
- code: five_star
name: '5-Star / Deluxe'
fee_per_bedroom: 20
- code: standard
name: 'Standard / 3-Star'
fee_per_bedroom: 10
items:
type: object
properties:
code:
type: string
example: four_star
name:
type: string
example: '4-Star / Superior'
fee_per_bedroom:
type: integer
example: 15
security_deposit_rates:
type: array
example:
- bedrooms: 1
amount: 100
- bedrooms: 2
amount: 200
- bedrooms: 3
amount: 400
items:
type: object
properties:
bedrooms:
type: integer
example: 1
amount:
type: integer
example: 100
tags:
- 'Settings (Public)'
security: []
'/api/v1/settings/{key}':
get:
summary: 'Get a specific public setting'
operationId: getASpecificPublicSetting
description: 'Returns the value of an allowlisted public setting by its key.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
key: cancellation_threshold_hours
value: 24
properties:
key:
type: string
example: cancellation_threshold_hours
value:
type: integer
example: 24
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Setting not found or not public.'
properties:
message:
type: string
example: 'Setting not found or not public.'
tags:
- 'Settings (Public)'
security: []
parameters:
-
in: path
name: key
description: 'The setting key.'
example: cancellation_threshold_hours
required: true
schema:
type: string