openapi: 3.0.3 info: title: 'Living Home Admin Dashboard API Documentation' description: 'REST API for the Living Home Admin Dashboard: admin auth, booking management, payments, rooms, allocations, and user management.' version: 1.0.0 servers: - url: 'http://living-home-api.test' tags: - name: Authentication description: '' - name: 'Booking Management' description: '' - name: 'Amenity Management' description: '' - name: 'Inventory Allocations' description: '' - name: 'User Management' description: '' - name: 'Staff Notifications' description: "\nAPIs for managing in-app notifications for authenticated staff members (Viewer, Admin, Owner)." - name: 'Admin - Promotions' description: "\nAPIs for managing promotional campaigns, discounts, and tracking booking redemptions." - name: 'Admin / Reviews' description: "\nAPIs for managing guest reviews, status visibility, and admin responses." - name: 'Apartment Management' description: "\nAPIs for managing apartment listings, pricing, amenities, and associated media assets." - name: 'Audit Logs' description: "\nAPIs for querying and inspecting administrative audit logs." - name: 'CMS Management' description: '' - name: 'Contact Inquiry Management' description: "\nAPIs for managing contact form submissions in the admin dashboard." - name: 'Customer Management' description: "\nAPIs for managing guest (customer) accounts in the admin dashboard." - name: Endpoints description: '' - name: Media description: "\nAPIs for handling file uploads." - name: 'Payment Dashboard' description: '' - name: 'Service Management' description: '' - name: 'Settings Management' description: '' components: securitySchemes: default: type: http scheme: bearer description: 'Sign in via `POST /api/v1/admin/login` using your admin/owner credentials.' security: - default: [] paths: /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: 89 name: 'Morgan Hirthe' email: dare.emelie@example.com phone: null role: guest status: active avatar_url: '' email_verified_at: '2026-11-03T02:36:17.000000Z' created_at: '2026-11-03T02:36:17.000000Z' updated_at: '2026-11-03T02:36:17.000000Z' properties: user: type: object properties: id: type: integer example: 89 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-03T02:36:17.000000Z' created_at: type: string example: '2026-11-03T02:36:17.000000Z' updated_at: type: string example: '2026-11-03T02:36:17.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/admin/login: post: summary: 'Admin Login' operationId: adminLogin description: 'Authenticate an admin or owner user with email and password, returning an admin Sanctum bearer token.' parameters: [] responses: 200: description: 'Authenticated successfully' content: application/json: schema: type: object example: user: id: 90 name: 'Mrs. Justina Gaylord' email: lafayette.considine@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' token: 1|abcdef1234567890 properties: user: type: object properties: id: type: integer example: 90 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 google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:17+00:00' updated_at: type: string example: '2026-11-03T02:36:17+00:00' token: type: string example: 1|abcdef1234567890 403: description: 'Insufficient permissions' content: application/json: schema: type: object example: message: 'Access denied. Admin privileges required.' properties: message: type: string example: 'Access denied. Admin privileges required.' 422: description: 'Invalid credentials' content: application/json: schema: type: object example: message: 'Invalid credentials.' properties: message: type: string example: 'Invalid credentials.' tags: - Authentication requestBody: required: true content: application/json: schema: type: object properties: email: type: string description: 'Admin email address.' example: admin@example.com password: type: string description: 'Account password.' example: password123 required: - email - password security: [] /api/v1/admin/forgot-password: post: summary: 'Admin Forgot Password' operationId: adminForgotPassword description: 'Request a password reset link for an admin 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 as an admin, a password reset link has been sent.' properties: message: type: string example: 'If your email is registered as an admin, a password reset link has been sent.' tags: - Authentication requestBody: required: true content: application/json: schema: type: object properties: email: type: string description: 'Admin email address.' example: admin@example.com required: - email security: [] /api/v1/admin/reset-password: post: summary: 'Admin Reset Password' operationId: adminResetPassword description: 'Reset the admin 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: 'Admin email address.' example: admin@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/admin/logout: post: summary: 'Admin Logout' operationId: adminLogout description: "Revoke the current authenticated admin user's Sanctum bearer token." parameters: [] responses: 200: description: Success content: application/json: schema: type: object example: message: 'Successfully logged out.' properties: message: type: string example: 'Successfully logged out.' tags: - Authentication /api/v1/admin/bookings: get: summary: 'List bookings' operationId: listBookings description: 'Retrieve a paginated list of bookings with filtering options for status, date range, and search.' parameters: - in: query name: apartment_id description: 'Filter by apartments. Must match an existing stored value.' example: 3 required: false schema: type: integer description: 'Filter by apartments. Must match an existing stored value.' example: 3 nullable: true - in: query name: status description: 'Filter by booking status (e.g. held, confirmed, checked_in, checked_out, cancelled, no_show).' example: confirmed required: false schema: type: string description: 'Filter by booking status (e.g. held, confirmed, checked_in, checked_out, cancelled, no_show).' example: confirmed enum: - held - confirmed - checked_in - checked_out - no_show - cancelled - expired - non_refundable_forfeit nullable: true - in: query name: from description: 'Filter bookings checking in on or after this date (YYYY-MM-DD). Must be a valid date.' example: '2026-08-01' required: false schema: type: string description: 'Filter bookings checking in on or after this date (YYYY-MM-DD). Must be a valid date.' example: '2026-08-01' nullable: true - in: query name: to description: 'Filter bookings checking in on or before this date (YYYY-MM-DD). Must be a valid date. Must be a date after or equal to from.' example: '2026-08-31' required: false schema: type: string description: 'Filter bookings checking in on or before this date (YYYY-MM-DD). Must be a valid date. Must be a date after or equal to from.' example: '2026-08-31' nullable: true - in: query name: search description: 'Search matching booking code, guest name, or email. Must not be greater than 100 characters.' example: BK-2026 required: false schema: type: string description: 'Search matching booking code, guest name, or email. Must not be greater than 100 characters.' example: BK-2026 nullable: true - in: query name: refund_eligibility description: 'Filter by refund eligibility: can_refund (cancelled with paid payment), cannot_refund (all others), or all (default).' example: can_refund required: false schema: type: string description: 'Filter by refund eligibility: can_refund (cancelled with paid payment), cannot_refund (all others), or all (default).' example: can_refund enum: - can_refund - cannot_refund - all nullable: true - in: query name: refund_state description: 'Filter by refund state: cancelled_not_refunded (cancelled but not yet refunded), refunded (fully refunded).' example: cancelled_not_refunded required: false schema: type: string description: 'Filter by refund state: cancelled_not_refunded (cancelled but not yet refunded), refunded (fully refunded).' example: cancelled_not_refunded enum: - cancelled_not_refunded - refunded nullable: true - in: query name: page description: 'Page number for pagination. Must be at least 1.' example: 1 required: false schema: type: integer description: 'Page number for pagination. Must be at least 1.' example: 1 nullable: true - in: query name: per_page description: 'Items per page (max 100). Must be at least 1. Must not be greater than 100.' example: 20 required: false schema: type: integer description: 'Items per page (max 100). Must be at least 1. Must not be greater than 100.' example: 20 nullable: true responses: 200: description: 'Paginated list of bookings' content: application/json: schema: type: object example: data: - id: 84 code: BK-20261103-6AHL status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 guests_count: 2 extra_bed: false total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED created_at: '2026-11-03T02:36:17.000000Z' cancelled_at: null can_refund: false guest: id: 91 name: 'Adelle Ernser' email: lloyd83@example.net phone: null apartment: id: 36 code: APT-999 name: 'aspernatur libero Apartment' plan: id: 21 code: reprehenderit-dolorem-quidem name: 'ut et' refundable: true - id: 85 code: BK-20261103-EFN6 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 guests_count: 2 extra_bed: false total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED created_at: '2026-11-03T02:36:17.000000Z' cancelled_at: null can_refund: false guest: id: 92 name: 'Alexandro Ritchie' email: lora.batz@example.com phone: null apartment: id: 37 code: APT-508 name: 'ea qui Apartment' plan: id: 22 code: rerum-soluta-consequatur name: 'molestias dolorem' refundable: true links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' page: null active: false - url: '/?page=1' label: '1' page: 1 active: true - url: null label: 'Next »' page: null active: false path: / per_page: 20 to: 2 total: 2 properties: data: type: array example: - id: 84 code: BK-20261103-6AHL status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 guests_count: 2 extra_bed: false total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED created_at: '2026-11-03T02:36:17.000000Z' cancelled_at: null can_refund: false guest: id: 91 name: 'Adelle Ernser' email: lloyd83@example.net phone: null apartment: id: 36 code: APT-999 name: 'aspernatur libero Apartment' plan: id: 21 code: reprehenderit-dolorem-quidem name: 'ut et' refundable: true - id: 85 code: BK-20261103-EFN6 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 guests_count: 2 extra_bed: false total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED created_at: '2026-11-03T02:36:17.000000Z' cancelled_at: null can_refund: false guest: id: 92 name: 'Alexandro Ritchie' email: lora.batz@example.com phone: null apartment: id: 37 code: APT-508 name: 'ea qui Apartment' plan: id: 22 code: rerum-soluta-consequatur name: 'molestias dolorem' refundable: true items: type: object properties: id: type: integer example: 84 code: type: string example: BK-20261103-6AHL status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 guests_count: type: integer example: 2 extra_bed: type: boolean example: false total: type: integer example: 1000 paid_amount: type: integer example: 0 remaining_balance: type: integer example: 1000 currency: type: string example: AED created_at: type: string example: '2026-11-03T02:36:17.000000Z' cancelled_at: type: string example: null nullable: true can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 91 name: type: string example: 'Adelle Ernser' email: type: string example: lloyd83@example.net phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 36 code: type: string example: APT-999 name: type: string example: 'aspernatur libero Apartment' plan: type: object properties: id: type: integer example: 21 code: type: string example: reprehenderit-dolorem-quidem name: type: string example: 'ut et' refundable: type: boolean example: true links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null nullable: true next: type: string example: null nullable: true meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Previous' page: null active: false - url: '/?page=1' label: '1' page: 1 active: true - url: null label: 'Next »' page: null active: false items: type: object properties: url: type: string example: null nullable: true label: type: string example: '« Previous' page: type: string example: null nullable: true active: type: boolean example: false path: type: string example: / per_page: type: integer example: 20 to: type: integer example: 2 total: type: integer example: 2 tags: - 'Booking Management' post: summary: 'Create a booking' operationId: createABooking description: 'Allows an admin to create a new booking for a guest, optionally specifying status and payment status.' parameters: [] responses: 201: description: 'Booking created successfully' content: application/json: schema: type: object example: data: id: 87 code: BK-20261103-Q6PB status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 1000 remaining_balance: 0 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 96 name: 'Ramiro Okuneva' email: idickens@example.org phone: null apartment: id: 41 code: APT-163 name: 'aut ab Apartment' plan: id: 24 code: incidunt-iure-odit name: 'et et' refundable: true line_items: - id: 38 service_id: 22 service: id: 22 name: 'ipsum nostrum' price: 50 qty: 1 unit_price: 500 total: 500 payments: - id: 70 booking_id: 87 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' properties: data: type: object properties: id: type: integer example: 87 code: type: string example: BK-20261103-Q6PB status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 1000 remaining_balance: type: integer example: 0 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 96 name: type: string example: 'Ramiro Okuneva' email: type: string example: idickens@example.org phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 41 code: type: string example: APT-163 name: type: string example: 'aut ab Apartment' plan: type: object properties: id: type: integer example: 24 code: type: string example: incidunt-iure-odit name: type: string example: 'et et' refundable: type: boolean example: true line_items: type: array example: - id: 38 service_id: 22 service: id: 22 name: 'ipsum nostrum' price: 50 qty: 1 unit_price: 500 total: 500 items: type: object properties: id: type: integer example: 38 service_id: type: integer example: 22 service: type: object properties: id: type: integer example: 22 name: type: string example: 'ipsum nostrum' price: type: integer example: 50 qty: type: integer example: 1 unit_price: type: integer example: 500 total: type: integer example: 500 payments: type: array example: - id: 70 booking_id: 87 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' items: type: object properties: id: type: integer example: 70 booking_id: type: integer example: 87 provider: type: string example: paymob amount: type: integer example: 1000 currency: type: string example: AED status: type: string example: succeeded paymob_tx_id: type: integer example: 12345678 refunded_amount: type: integer example: 0 refund_reason: type: string example: null nullable: true paid_at: type: string example: '2026-11-03T02:36:18.000000Z' created_at: type: string example: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: type: string example: 'https://uae.paymob.com/portal2/en/transactions/12345678' tags: - 'Booking Management' requestBody: required: true content: application/json: schema: type: object properties: guest_id: type: integer description: 'The ID of the guest user. Must match an existing stored value.' example: 1 room_id: type: integer description: 'The ID of the apartment/room. Must match an existing stored value.' example: 1 plan_id: type: integer description: 'The ID of the rate plan. Must match an existing stored value.' example: 1 promo_ids: type: array description: 'Must match an existing stored value.' example: - 16 items: type: integer discount_amount: type: integer description: '' example: 16 nullable: true check_in: type: string description: 'Check-in date (YYYY-MM-DD). Must be a valid date.' example: '2026-08-20' check_out: type: string description: 'Check-out date (YYYY-MM-DD). Must be after check_in. Must be a valid date. Must be a date after check_in.' example: '2026-08-25' adults: type: integer description: 'Number of adult guests staying. Must not exceed room capacity. Must be at least 1.' example: 2 children: type: integer description: 'Number of children staying. Must be at least 0.' example: 0 nullable: true extra_bed: type: boolean description: 'Whether an extra bed is requested.' example: false special_requests: type: string description: 'Special requests or notes for the booking. Must not be greater than 1000 characters.' example: 'Late check-in requested.' nullable: true services: type: array description: '' example: null items: type: object properties: service_id: type: integer description: 'This field is required when services is present. Must match an existing stored value.' example: 16 qty: type: integer description: 'Must be at least 1.' example: 22 status: type: string description: 'Booking status. Defaults to confirmed.' example: confirmed enum: - held - confirmed - checked_in - checked_out - no_show - cancelled - expired - non_refundable_forfeit payment: type: object description: 'Optional payment details if payment is received during booking creation. Amount is in AED (e.g., 500.00). If amount is omitted, defaults to the booking total. If payment is provided, payment_status is automatically set to paid.' example: amount: 500.0 currency: AED provider: cash properties: amount: type: number description: 'Must be at least 0.01.' example: 500.0 currency: type: string description: 'Must be 3 characters.' example: AED provider: type: string description: 'Must not be greater than 20 characters.' example: cash created_at: type: string description: 'Must be a valid date.' example: '2026-11-03T02:36:18' nullable: true required: - guest_id - room_id - plan_id - check_in - check_out - adults /api/v1/admin/bookings/calendar: get: summary: 'Booking calendar' operationId: bookingCalendar description: 'Occupancy grid for housekeeping/staffing: every room with its bookings overlapping the window.' parameters: - in: query name: from description: 'Window start date inclusive (YYYY-MM-DD). Must be a valid date.' example: '2026-08-01' required: true schema: type: string description: 'Window start date inclusive (YYYY-MM-DD). Must be a valid date.' example: '2026-08-01' - in: query name: to description: 'Window end date exclusive (YYYY-MM-DD). Must be a valid date. Must be a date after from.' example: '2026-08-31' required: true schema: type: string description: 'Window end date exclusive (YYYY-MM-DD). Must be a valid date. Must be a date after from.' example: '2026-08-31' responses: 200: description: 'Room booking calendar and occupancy grid' content: application/json: schema: type: object example: data: - room: id: 1 code: APT-101 name: 'Deluxe Suite Ocean View' status: available bookings: - id: 10 code: BK-20260801-001 check_in: '2026-08-01' check_out: '2026-08-05' status: confirmed adults: 2 children: 0 guest_name: 'John Doe' properties: data: type: array example: - room: id: 1 code: APT-101 name: 'Deluxe Suite Ocean View' status: available bookings: - id: 10 code: BK-20260801-001 check_in: '2026-08-01' check_out: '2026-08-05' status: confirmed adults: 2 children: 0 guest_name: 'John Doe' items: type: object properties: room: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Suite Ocean View' status: type: string example: available bookings: type: array example: - id: 10 code: BK-20260801-001 check_in: '2026-08-01' check_out: '2026-08-05' status: confirmed adults: 2 children: 0 guest_name: 'John Doe' items: type: object properties: id: type: integer example: 10 code: type: string example: BK-20260801-001 check_in: type: string example: '2026-08-01' check_out: type: string example: '2026-08-05' status: type: string example: confirmed adults: type: integer example: 2 children: type: integer example: 0 guest_name: type: string example: 'John Doe' tags: - 'Booking Management' '/api/v1/admin/bookings/{id}': get: summary: 'Get booking detail' operationId: getBookingDetail description: 'Retrieve complete booking details including guest, apartment, rate plan, add-on services, and payments.' parameters: [] responses: 200: description: 'Detailed booking information' content: application/json: schema: type: object example: data: id: 86 code: BK-20261103-YXX8 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 1000 remaining_balance: 0 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:17.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:17.000000Z' updated_at: '2026-11-03T02:36:17.000000Z' can_refund: false guest: id: 93 name: 'Morgan Hirthe' email: imclaughlin@example.org phone: null apartment: id: 38 code: APT-652 name: 'nostrum omnis Apartment' plan: id: 23 code: facere-tempora name: 'ex voluptatem' refundable: true line_items: - id: 37 service_id: 18 service: id: 18 name: 'praesentium quis' price: 50 qty: 1 unit_price: 500 total: 500 payments: - id: 69 booking_id: 86 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:17.000000Z' created_at: '2026-11-03T02:36:17.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' properties: data: type: object properties: id: type: integer example: 86 code: type: string example: BK-20261103-YXX8 status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 1000 remaining_balance: type: integer example: 0 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:17.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:17.000000Z' updated_at: type: string example: '2026-11-03T02:36:17.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 93 name: type: string example: 'Morgan Hirthe' email: type: string example: imclaughlin@example.org phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 38 code: type: string example: APT-652 name: type: string example: 'nostrum omnis Apartment' plan: type: object properties: id: type: integer example: 23 code: type: string example: facere-tempora name: type: string example: 'ex voluptatem' refundable: type: boolean example: true line_items: type: array example: - id: 37 service_id: 18 service: id: 18 name: 'praesentium quis' price: 50 qty: 1 unit_price: 500 total: 500 items: type: object properties: id: type: integer example: 37 service_id: type: integer example: 18 service: type: object properties: id: type: integer example: 18 name: type: string example: 'praesentium quis' price: type: integer example: 50 qty: type: integer example: 1 unit_price: type: integer example: 500 total: type: integer example: 500 payments: type: array example: - id: 69 booking_id: 86 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:17.000000Z' created_at: '2026-11-03T02:36:17.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' items: type: object properties: id: type: integer example: 69 booking_id: type: integer example: 86 provider: type: string example: paymob amount: type: integer example: 1000 currency: type: string example: AED status: type: string example: succeeded paymob_tx_id: type: integer example: 12345678 refunded_amount: type: integer example: 0 refund_reason: type: string example: null nullable: true paid_at: type: string example: '2026-11-03T02:36:17.000000Z' created_at: type: string example: '2026-11-03T02:36:17.000000Z' paymob_dashboard_url: type: string example: 'https://uae.paymob.com/portal2/en/transactions/12345678' tags: - 'Booking Management' patch: summary: 'Edit a booking' operationId: editABooking description: 'Date changes re-validate availability, restock the old nights, and re-price the room subtotal at current allocation prices.' parameters: [] responses: 200: description: 'Booking updated successfully' content: application/json: schema: type: object example: data: id: 88 code: BK-20261103-RZVO status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 1000 remaining_balance: 0 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 97 name: 'Ms. Elisabeth Okuneva' email: aschuster@example.com phone: null apartment: id: 42 code: APT-442 name: 'quo omnis Apartment' plan: id: 25 code: et-et name: 'modi ipsum' refundable: true line_items: - id: 39 service_id: 23 service: id: 23 name: 'omnis autem' price: 50 qty: 1 unit_price: 500 total: 500 payments: - id: 71 booking_id: 88 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' properties: data: type: object properties: id: type: integer example: 88 code: type: string example: BK-20261103-RZVO status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 1000 remaining_balance: type: integer example: 0 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 97 name: type: string example: 'Ms. Elisabeth Okuneva' email: type: string example: aschuster@example.com phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 42 code: type: string example: APT-442 name: type: string example: 'quo omnis Apartment' plan: type: object properties: id: type: integer example: 25 code: type: string example: et-et name: type: string example: 'modi ipsum' refundable: type: boolean example: true line_items: type: array example: - id: 39 service_id: 23 service: id: 23 name: 'omnis autem' price: 50 qty: 1 unit_price: 500 total: 500 items: type: object properties: id: type: integer example: 39 service_id: type: integer example: 23 service: type: object properties: id: type: integer example: 23 name: type: string example: 'omnis autem' price: type: integer example: 50 qty: type: integer example: 1 unit_price: type: integer example: 500 total: type: integer example: 500 payments: type: array example: - id: 71 booking_id: 88 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' items: type: object properties: id: type: integer example: 71 booking_id: type: integer example: 88 provider: type: string example: paymob amount: type: integer example: 1000 currency: type: string example: AED status: type: string example: succeeded paymob_tx_id: type: integer example: 12345678 refunded_amount: type: integer example: 0 refund_reason: type: string example: null nullable: true paid_at: type: string example: '2026-11-03T02:36:18.000000Z' created_at: type: string example: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: type: string example: 'https://uae.paymob.com/portal2/en/transactions/12345678' tags: - 'Booking Management' requestBody: required: false content: application/json: schema: type: object properties: check_in: type: string description: 'New check-in date (YYYY-MM-DD). Re-validates availability and re-prices stay. This field is required when check_out is present. Must be a valid date.' example: '2026-08-20' check_out: type: string description: 'New check-out date (YYYY-MM-DD). Must be after check_in. This field is required when check_in is present. Must be a valid date. Must be a date after check_in.' example: '2026-08-25' promo_ids: type: array description: 'Must match an existing stored value.' example: - 16 items: type: integer discount_amount: type: integer description: '' example: 16 nullable: true adults: type: integer description: 'Number of adult guests staying. Must not exceed room capacity. Must be at least 1.' example: 2 children: type: integer description: 'Number of children staying. Must be at least 0.' example: 0 extra_bed: type: boolean description: 'Whether an extra bed is requested.' example: false special_requests: type: string description: 'Special requests or notes for the booking. Must not be greater than 1000 characters.' example: 'Late check-in requested.' nullable: true created_at: type: string description: 'Must be a valid date.' example: '2026-11-03T02:36:18' nullable: true parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer /api/v1/admin/bookings/quote: post: summary: 'Get a price quote' operationId: getAPriceQuote description: "Calculates the authoritative price for a stay without creating a booking.\nUseful for showing the cost breakdown in the admin booking creation form before submitting." parameters: [] responses: 200: description: Quote content: application/json: schema: type: object example: quote: room_id: 1 plan: id: 1 code: refundable name: Refundable refundable: true check_in: '2026-08-20' check_out: '2026-08-22' nights: 2 nightly_rates: - date: '2026-08-20' price: 1000 - date: '2026-08-21' price: 1000 room_subtotal: 2000 services: - service_id: 1 qty: 1 unit_price: 150 total: 150 - service_id: 2 qty: 2 unit_price: 60 total: 120 services_total: 270 cleaning_fee: 0 extra_bed_fee: 0 payment_processing_fee: 0 tax: 0 security_deposit: 100 city_tourism_tax: 0 total: 2270 currency: AED discount_amount: 100 quoted_promotions: - promo_id: 1 discounted_amount: 100 properties: quote: type: object properties: room_id: type: integer example: 1 plan: type: object properties: id: type: integer example: 1 code: type: string example: refundable name: type: string example: Refundable refundable: type: boolean example: true check_in: type: string example: '2026-08-20' check_out: type: string example: '2026-08-22' nights: type: integer example: 2 nightly_rates: type: array example: - date: '2026-08-20' price: 1000 - date: '2026-08-21' price: 1000 items: type: object properties: date: type: string example: '2026-08-20' price: type: integer example: 1000 room_subtotal: type: integer example: 2000 services: type: array example: - service_id: 1 qty: 1 unit_price: 150 total: 150 - service_id: 2 qty: 2 unit_price: 60 total: 120 items: type: object properties: service_id: type: integer example: 1 qty: type: integer example: 1 unit_price: type: integer example: 150 total: type: integer example: 150 services_total: type: integer example: 270 cleaning_fee: type: integer example: 0 extra_bed_fee: type: integer example: 0 payment_processing_fee: type: integer example: 0 tax: type: integer example: 0 security_deposit: type: integer example: 100 city_tourism_tax: type: integer example: 0 total: type: integer example: 2270 currency: type: string example: AED discount_amount: type: integer example: 100 quoted_promotions: type: array example: - promo_id: 1 discounted_amount: 100 items: type: object properties: promo_id: type: integer example: 1 discounted_amount: type: integer example: 100 409: description: 'Dates unavailable' content: application/json: schema: type: object example: message: 'Room is no longer available for the selected dates.' properties: message: type: string example: 'Room is no longer available for the selected dates.' 422: description: 'Guest count exceeds capacity' content: application/json: schema: type: object example: message: 'Guest count exceeds room capacity.' errors: adults: - 'Guest count exceeds room capacity.' properties: message: type: string example: 'Guest count exceeds room capacity.' errors: type: object properties: adults: type: array example: - 'Guest count exceeds room capacity.' items: type: string tags: - 'Booking Management' requestBody: required: true content: application/json: schema: type: object properties: room_id: type: integer description: 'The ID of the room/apartment to quote. Must match an existing stored value.' example: 1 plan_id: type: integer description: 'The ID of the rate plan to use. Must match an existing stored value.' example: 1 promo_ids: type: array description: 'Must match an existing stored value.' example: - 16 items: type: integer discount_amount: type: integer description: 'Must be at least 0.' example: 39 nullable: true check_in: type: string description: 'Check-in date (YYYY-MM-DD). Must be a valid date.' example: '2026-08-20' check_out: type: string description: 'Check-out date (YYYY-MM-DD). Must be after check_in. Must be a valid date. Must be a date after check_in.' example: '2026-08-22' adults: type: integer description: 'Number of adult guests staying. Must not exceed room capacity. Must be at least 1.' example: 2 children: type: integer description: 'Number of children staying. Must be at least 0.' example: 0 nullable: true services: type: array description: 'Optional add-on services requested.' example: - service_id: 1 qty: 1 items: type: object nullable: true properties: service_id: type: integer description: 'This field is required when services is present. Must match an existing stored value.' example: 16 qty: type: integer description: 'Must be at least 1.' example: 22 nullable: true extra_bed: type: boolean description: '' example: true nullable: true required: - room_id - plan_id - check_in - check_out - adults '/api/v1/admin/bookings/{id}/cancel': post: summary: 'Cancel a booking' operationId: cancelABooking description: 'Cancels any held/confirmed booking (no deadline check) and optionally flags a refund.' parameters: [] responses: 200: description: 'Booking cancelled successfully' content: application/json: schema: type: object example: data: id: 89 code: BK-20261103-SCG2 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 98 name: 'Ms. Audra Crooks II' email: gilbert32@example.com phone: null apartment: id: 43 code: APT-249 name: 'nostrum qui Apartment' plan: id: 26 code: omnis-autem name: 'et consequatur' refundable: true refund_issued: true properties: data: type: object properties: id: type: integer example: 89 code: type: string example: BK-20261103-SCG2 status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 0 remaining_balance: type: integer example: 1000 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 98 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: gilbert32@example.com phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 43 code: type: string example: APT-249 name: type: string example: 'nostrum qui Apartment' plan: type: object properties: id: type: integer example: 26 code: type: string example: omnis-autem name: type: string example: 'et consequatur' refundable: type: boolean example: true refund_issued: type: boolean example: true tags: - 'Booking Management' requestBody: required: false content: application/json: schema: type: object properties: refund: type: boolean description: 'Whether to issue a refund for this cancellation.' example: true nullable: true reason: type: string description: 'Reason for the cancellation. Must not be greater than 500 characters.' example: 'Guest requested cancellation due to travel plan changes.' nullable: true parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer '/api/v1/admin/bookings/{id}/check-in': post: summary: 'Check in a booking' operationId: checkInABooking description: 'Transitions a confirmed booking to checked-in status.' parameters: [] responses: 200: description: 'Booking checked in successfully' content: application/json: schema: type: object example: data: id: 90 code: BK-20261103-WE50 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 99 name: 'Morgan Hirthe' email: okeefe.isidro@example.org phone: null apartment: id: 44 code: APT-167 name: 'aut dolores Apartment' plan: id: 27 code: adipisci-molestias-fugit name: 'deleniti distinctio' refundable: true properties: data: type: object properties: id: type: integer example: 90 code: type: string example: BK-20261103-WE50 status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 0 remaining_balance: type: integer example: 1000 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 99 name: type: string example: 'Morgan Hirthe' email: type: string example: okeefe.isidro@example.org phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 44 code: type: string example: APT-167 name: type: string example: 'aut dolores Apartment' plan: type: object properties: id: type: integer example: 27 code: type: string example: adipisci-molestias-fugit name: type: string example: 'deleniti distinctio' refundable: type: boolean example: true tags: - 'Booking Management' parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer '/api/v1/admin/bookings/{id}/check-out': post: summary: 'Check out a booking' operationId: checkOutABooking description: 'Transitions a checked-in booking to checked-out status.' parameters: [] responses: 200: description: 'Booking checked out successfully' content: application/json: schema: type: object example: data: id: 91 code: BK-20261103-NQTC status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 100 name: 'Morgan Hirthe' email: ztromp@example.org phone: null apartment: id: 45 code: APT-461 name: 'facere tempora Apartment' plan: id: 28 code: fugit-deleniti-distinctio name: 'eum doloremque' refundable: true properties: data: type: object properties: id: type: integer example: 91 code: type: string example: BK-20261103-NQTC status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 0 remaining_balance: type: integer example: 1000 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 100 name: type: string example: 'Morgan Hirthe' email: type: string example: ztromp@example.org phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 45 code: type: string example: APT-461 name: type: string example: 'facere tempora Apartment' plan: type: object properties: id: type: integer example: 28 code: type: string example: fugit-deleniti-distinctio name: type: string example: 'eum doloremque' refundable: type: boolean example: true tags: - 'Booking Management' parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer '/api/v1/admin/bookings/{id}/no-show': post: summary: 'Mark a booking as no-show' operationId: markABookingAsNoShow description: 'Transitions a confirmed booking to no-show status.' parameters: [] responses: 200: description: 'Booking marked as no-show successfully' content: application/json: schema: type: object example: data: id: 92 code: BK-20261103-QYO0 status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 0 remaining_balance: 1000 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 101 name: 'Maiya Boyer PhD' email: alycia37@example.net phone: null apartment: id: 46 code: APT-450 name: 'consectetur et Apartment' plan: id: 29 code: hic-quis name: 'odio temporibus' refundable: true properties: data: type: object properties: id: type: integer example: 92 code: type: string example: BK-20261103-QYO0 status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 0 remaining_balance: type: integer example: 1000 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 101 name: type: string example: 'Maiya Boyer PhD' email: type: string example: alycia37@example.net phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 46 code: type: string example: APT-450 name: type: string example: 'consectetur et Apartment' plan: type: object properties: id: type: integer example: 29 code: type: string example: hic-quis name: type: string example: 'odio temporibus' refundable: type: boolean example: true tags: - 'Booking Management' parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer '/api/v1/admin/bookings/{id}/refund': post: summary: 'Refund a booking' operationId: refundABooking description: "Issues a refund for the booking's succeeded payment(s)." parameters: [] responses: 200: description: 'Booking refunded successfully' content: application/json: schema: type: object example: data: id: 93 code: BK-20261103-3TEM status: confirmed payment_status: pending check_in: '2026-11-13' check_out: '2026-11-15' adults: 2 children: 0 extra_bed: false subtotal: 1000 services_total: 0 cleaning_fee: 0 security_deposit: 0 processing_fee: 0 discount_amount: 0 tax_amount: 0 city_tourism_tax: 0 total: 1000 paid_amount: 1000 remaining_balance: 0 currency: AED promo_ids: [] special_requests: null cancellation_deadline: '2026-11-12T02:36:18.000000Z' cancelled_at: null cancellation_reason: null hold_expires_at: null created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' can_refund: false guest: id: 102 name: 'Ms. Audra Crooks II' email: hirthe.theo@example.com phone: null apartment: id: 47 code: APT-502 name: 'iure odit Apartment' plan: id: 30 code: dolores-enim name: 'non facere' refundable: true payments: - id: 72 booking_id: 93 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' properties: data: type: object properties: id: type: integer example: 93 code: type: string example: BK-20261103-3TEM status: type: string example: confirmed payment_status: type: string example: pending check_in: type: string example: '2026-11-13' check_out: type: string example: '2026-11-15' adults: type: integer example: 2 children: type: integer example: 0 extra_bed: type: boolean example: false subtotal: type: integer example: 1000 services_total: type: integer example: 0 cleaning_fee: type: integer example: 0 security_deposit: type: integer example: 0 processing_fee: type: integer example: 0 discount_amount: type: integer example: 0 tax_amount: type: integer example: 0 city_tourism_tax: type: integer example: 0 total: type: integer example: 1000 paid_amount: type: integer example: 1000 remaining_balance: type: integer example: 0 currency: type: string example: AED promo_ids: type: array example: [] special_requests: type: string example: null nullable: true cancellation_deadline: type: string example: '2026-11-12T02:36:18.000000Z' cancelled_at: type: string example: null nullable: true cancellation_reason: type: string example: null nullable: true hold_expires_at: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' can_refund: type: boolean example: false guest: type: object properties: id: type: integer example: 102 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: hirthe.theo@example.com phone: type: string example: null nullable: true apartment: type: object properties: id: type: integer example: 47 code: type: string example: APT-502 name: type: string example: 'iure odit Apartment' plan: type: object properties: id: type: integer example: 30 code: type: string example: dolores-enim name: type: string example: 'non facere' refundable: type: boolean example: true payments: type: array example: - id: 72 booking_id: 93 provider: paymob amount: 1000 currency: AED status: succeeded paymob_tx_id: 12345678 refunded_amount: 0 refund_reason: null paid_at: '2026-11-03T02:36:18.000000Z' created_at: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: 'https://uae.paymob.com/portal2/en/transactions/12345678' items: type: object properties: id: type: integer example: 72 booking_id: type: integer example: 93 provider: type: string example: paymob amount: type: integer example: 1000 currency: type: string example: AED status: type: string example: succeeded paymob_tx_id: type: integer example: 12345678 refunded_amount: type: integer example: 0 refund_reason: type: string example: null nullable: true paid_at: type: string example: '2026-11-03T02:36:18.000000Z' created_at: type: string example: '2026-11-03T02:36:18.000000Z' paymob_dashboard_url: type: string example: 'https://uae.paymob.com/portal2/en/transactions/12345678' tags: - 'Booking Management' requestBody: required: false content: application/json: schema: type: object properties: payment_id: type: integer description: 'Optional specific payment ID to refund. If omitted, the latest succeeded payment is refunded. Must match an existing stored value.' example: 1 nullable: true reason: type: string description: 'Reason for the refund. Must not be greater than 500 characters.' example: 'Guest requested refund.' nullable: true parameters: - in: path name: id description: 'The unique numeric ID of the booking.' example: 1 required: true schema: type: integer /api/v1/admin/amenities: get: summary: 'List amenities' operationId: listAmenities description: 'Retrieve the amenity catalog used by apartment and apartment details.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1 name: Wi-Fi icon: wifi - id: 1 name: Wi-Fi icon: wifi properties: data: type: array example: - id: 1 name: Wi-Fi icon: wifi - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi tags: - 'Amenity Management' post: summary: 'Create amenity' operationId: createAmenity description: 'Create a new amenity entry for use in apartment assignments.' parameters: [] responses: 201: description: 'Amenity created' content: application/json: schema: type: object example: data: id: 1 name: Wi-Fi icon: wifi message: 'Amenity created successfully!' properties: data: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi message: type: string example: 'Amenity created successfully!' tags: - 'Amenity Management' requestBody: required: true content: application/json: schema: type: object properties: name: type: string description: 'The amenity name shown in the admin dashboard and room details. Must not be greater than 100 characters.' example: Wi-Fi icon: type: string description: 'Icon identifier used by the frontend. Must not be greater than 50 characters.' example: wifi nullable: true required: - name '/api/v1/admin/amenities/{id}': put: summary: 'Update amenity' operationId: updateAmenity description: "Update an existing amenity's name or icon." parameters: [] responses: 200: description: 'Amenity updated' content: application/json: schema: type: object example: data: id: 1 name: Wi-Fi icon: wifi message: 'Amenity updated successfully!' properties: data: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi message: type: string example: 'Amenity updated successfully!' tags: - 'Amenity Management' requestBody: required: true content: application/json: schema: type: object properties: name: type: string description: 'Updated amenity name. Must not be greater than 100 characters.' example: 'Free Wi-Fi' icon: type: string description: 'Updated icon identifier. . Must not be greater than 50 characters.' example: wifi nullable: true required: - name delete: summary: 'Delete amenity' operationId: deleteAmenity description: 'Delete an amenity unless it is currently assigned to apartments.' parameters: [] responses: 200: description: 'Amenity deleted' content: application/json: schema: type: object example: message: 'Amenity deleted successfully!' properties: message: type: string example: 'Amenity deleted successfully!' 409: description: 'Amenity in use' content: application/json: schema: type: object example: message: 'Amenity cannot be deleted while it is assigned to apartments.' properties: message: type: string example: 'Amenity cannot be deleted while it is assigned to apartments.' tags: - 'Amenity Management' parameters: - in: path name: id description: 'The ID of the amenity.' example: 1 required: true schema: type: integer /api/v1/admin/allocations: get: summary: 'List price/availability allocations' operationId: listPriceavailabilityAllocations description: '' parameters: - in: query name: apartment_id description: 'Filter by apartment id.' example: 1 required: false schema: type: integer description: 'Filter by apartment id.' example: 1 nullable: true - in: query name: from description: 'date Filter to allocations on or after this date.' example: '2026-08-01' required: false schema: type: string description: 'date Filter to allocations on or after this date.' example: '2026-08-01' nullable: true - in: query name: to description: 'date Filter to allocations on or before this date.' example: '2026-08-31' required: false schema: type: string description: 'date Filter to allocations on or before this date.' example: '2026-08-31' nullable: true responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1090 apartment_id: 39 date: '2026-12-01T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null - id: 1091 apartment_id: 40 date: '2026-11-19T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null properties: data: type: array example: - id: 1090 apartment_id: 39 date: '2026-12-01T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null - id: 1091 apartment_id: 40 date: '2026-11-19T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null items: type: object properties: id: type: integer example: 1090 apartment_id: type: integer example: 39 date: type: string example: '2026-12-01T00:00:00.000000Z' available_qty: type: integer example: 1 refundable_price: type: string example: null nullable: true non_refundable_price: type: string example: null nullable: true min_stay: type: integer example: 1 max_stay: type: string example: null nullable: true closed: type: boolean example: false tourism_dirham_fee: type: string example: null nullable: true tags: - 'Inventory Allocations' /api/v1/admin/allocations/calendar: get: summary: 'Get rate and restriction calendar matrix' operationId: getRateAndRestrictionCalendarMatrix description: "Returns a full calendar grid of apartments and daily rates/restrictions for the requested date window.\nUnallocated dates are populated with the apartment's base price and standard defaults." parameters: - in: query name: from description: 'date Inclusive start date (YYYY-MM-DD).' example: '2026-10-01' required: true schema: type: string description: 'date Inclusive start date (YYYY-MM-DD).' example: '2026-10-01' - in: query name: to description: 'date Inclusive end date (YYYY-MM-DD, >= from).' example: '2026-10-31' required: true schema: type: string description: 'date Inclusive end date (YYYY-MM-DD, >= from).' example: '2026-10-31' - in: query name: apartment_id description: 'Filter to a single apartment ID.' example: 1 required: false schema: type: integer description: 'Filter to a single apartment ID.' example: 1 nullable: true - in: query name: apartment_ids description: 'Filter to multiple apartment IDs.' example: - 1 - 2 required: false schema: type: array description: 'Filter to multiple apartment IDs.' example: - 1 - 2 items: type: integer responses: 200: description: 'Rates and restrictions calendar matrix' content: application/json: schema: type: object example: data: - apartment: id: 1 code: APT-101 name: 'Deluxe Suite Ocean View' bedrooms: 2 bathrooms: 1 capacity: 4 status: active base_price: 1000 dates: - id: 10 date: '2026-10-01' available_qty: 1 refundable_price: 1150 non_refundable_price: 1035 min_stay: 2 max_stay: 14 closed: false tourism_dirham_fee: 15 is_override: true - id: null date: '2026-10-02' available_qty: 1 refundable_price: 1000 non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null is_override: false properties: data: type: array example: - apartment: id: 1 code: APT-101 name: 'Deluxe Suite Ocean View' bedrooms: 2 bathrooms: 1 capacity: 4 status: active base_price: 1000 dates: - id: 10 date: '2026-10-01' available_qty: 1 refundable_price: 1150 non_refundable_price: 1035 min_stay: 2 max_stay: 14 closed: false tourism_dirham_fee: 15 is_override: true - id: null date: '2026-10-02' available_qty: 1 refundable_price: 1000 non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null is_override: false items: type: object properties: apartment: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Suite Ocean View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 capacity: type: integer example: 4 status: type: string example: active base_price: type: integer example: 1000 dates: type: array example: - id: 10 date: '2026-10-01' available_qty: 1 refundable_price: 1150 non_refundable_price: 1035 min_stay: 2 max_stay: 14 closed: false tourism_dirham_fee: 15 is_override: true - id: null date: '2026-10-02' available_qty: 1 refundable_price: 1000 non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null is_override: false items: type: object properties: id: type: integer example: 10 date: type: string example: '2026-10-01' available_qty: type: integer example: 1 refundable_price: type: integer example: 1150 non_refundable_price: type: integer example: 1035 min_stay: type: integer example: 2 max_stay: type: integer example: 14 closed: type: boolean example: false tourism_dirham_fee: type: integer example: 15 is_override: type: boolean example: true tags: - 'Inventory Allocations' /api/v1/admin/allocations/bulk: post: summary: 'Bulk upsert price/availability allocations' operationId: bulkUpsertPriceavailabilityAllocations description: "Configures rates, inventory, stay limits, and DTCM fees across multiple\napartments and a date window with optional day-of-week filters and\noverwrite protection. Broadcasts each change over the real-time stream (ADR-014)." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1092 apartment_id: 49 date: '2026-11-09T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null - id: 1093 apartment_id: 50 date: '2026-11-07T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null properties: data: type: array example: - id: 1092 apartment_id: 49 date: '2026-11-09T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null - id: 1093 apartment_id: 50 date: '2026-11-07T00:00:00.000000Z' available_qty: 1 refundable_price: null non_refundable_price: null min_stay: 1 max_stay: null closed: false tourism_dirham_fee: null items: type: object properties: id: type: integer example: 1092 apartment_id: type: integer example: 49 date: type: string example: '2026-11-09T00:00:00.000000Z' available_qty: type: integer example: 1 refundable_price: type: string example: null nullable: true non_refundable_price: type: string example: null nullable: true min_stay: type: integer example: 1 max_stay: type: string example: null nullable: true closed: type: boolean example: false tourism_dirham_fee: type: string example: null nullable: true tags: - 'Inventory Allocations' requestBody: required: true content: application/json: schema: type: object properties: apartment_ids: type: array description: 'Target apartment IDs.' example: - 1 - 2 items: type: integer start_date: type: date description: 'Inclusive start date (YYYY-MM-DD).' example: '2026-08-01' end_date: type: date description: 'Inclusive end date (YYYY-MM-DD, >= start_date).' example: '2026-08-31' days_of_week: type: array description: 'Day filter using ISO-8601 (1=Mon ... 7=Sun).' example: - 1 - 2 - 3 - 4 items: type: integer refundable_price: type: number description: 'Primary flexible nightly rate in AED.' example: 1150.0 nullable: true non_refundable_price: type: number description: 'Discounted nightly rate in AED.' example: 1035.0 nullable: true tourism_dirham_fee: type: number description: 'Mandatory Dubai DTCM tourist tax in AED per night.' example: 15.0 nullable: true available_qty: type: integer description: 'Available inventory count for sale. Default: 1.' example: 1 nullable: true closed: type: boolean description: 'Stop-sell / Block switch. Default: false.' example: false nullable: true min_stay: type: integer description: 'Minimum nights restriction. Default: 1.' example: 2 nullable: true max_stay: type: integer description: 'Maximum consecutive nights allowed.' example: 30 nullable: true overwrite_existing: type: boolean description: 'Force overwrite matching dates (true) or protect existing overrides (false). Default: true.' example: true nullable: true required: - apartment_ids - start_date - end_date /api/v1/admin/users: get: summary: 'List users' operationId: listUsers description: 'Retrieve all system users (excluding guest customers) for client-side table rendering.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 108 name: 'Morgan Hirthe' email: matilda.feeney@example.net phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' - id: 109 name: 'Janick Schultz DDS' email: kconsidine@example.net phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' properties: data: type: array example: - id: 108 name: 'Morgan Hirthe' email: matilda.feeney@example.net phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' - id: 109 name: 'Janick Schultz DDS' email: kconsidine@example.net phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' items: type: object properties: id: type: integer example: 108 name: type: string example: 'Morgan Hirthe' email: type: string example: matilda.feeney@example.net phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:19+00:00' updated_at: type: string example: '2026-11-03T02:36:19+00:00' tags: - 'User Management' post: summary: 'Create user' operationId: createUser description: 'Create a new user account.' parameters: [] responses: 201: description: '' content: application/json: schema: type: object example: user: id: 110 name: 'Ms. Audra Crooks II' email: mitchell.matilda@example.org phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' properties: user: type: object properties: id: type: integer example: 110 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: mitchell.matilda@example.org phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:19+00:00' updated_at: type: string example: '2026-11-03T02:36:19+00:00' tags: - 'User Management' requestBody: required: true content: application/json: schema: type: object properties: name: type: string description: 'The full name of the user. Must not be greater than 255 characters.' example: 'Jane Doe' email: type: string description: 'Unique email address for authentication. Must be a valid email address. Must not be greater than 255 characters.' example: jane@example.com password: type: string description: 'Account password (minimum 8 characters). Must be at least 8 characters.' example: secretPassword123 phone: type: string description: 'Optional contact phone number. Must not be greater than 20 characters.' example: '+1234567890' nullable: true role: type: string description: 'User role (viewer, admin, owner).' example: admin enum: - viewer - admin - owner status: type: string description: 'Account status (active, inactive, suspended). Defaults to active.' example: active enum: - active - inactive - suspended avatar_temp_path: type: string description: 'Optional temporary path for the uploaded avatar. Must start with one of tmp/.' example: tmp/1234-uuid.jpg nullable: true required: - name - email - password - role '/api/v1/admin/users/{id}': get: summary: 'Show user details' operationId: showUserDetails description: 'Retrieve full details of a specific user.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: user: id: 111 name: 'Morgan Hirthe' email: vraynor@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' properties: user: type: object properties: id: type: integer example: 111 name: type: string example: 'Morgan Hirthe' email: type: string example: vraynor@example.com phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:19+00:00' updated_at: type: string example: '2026-11-03T02:36:19+00:00' tags: - 'User Management' put: summary: 'Update user' operationId: updateUser description: "Update an existing user's information, credentials, role, or status." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: user: id: 112 name: 'Ms. Audra Crooks II' email: pauline09@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:19+00:00' updated_at: '2026-11-03T02:36:19+00:00' properties: user: type: object properties: id: type: integer example: 112 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: pauline09@example.com phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:19+00:00' updated_at: type: string example: '2026-11-03T02:36:19+00:00' tags: - 'User Management' requestBody: required: false content: application/json: schema: type: object properties: name: type: string description: 'Updated name of the user. Must not be greater than 255 characters.' example: 'Jane Doe' email: type: string description: 'Updated email address. Must be a valid email address. Must not be greater than 255 characters.' example: jane.updated@example.com password: type: string description: 'Optional new password (minimum 8 characters). Must be at least 8 characters.' example: newSecret123 nullable: true phone: type: string description: 'Updated contact phone number. Must not be greater than 20 characters.' example: '+1234567890' nullable: true role: type: string description: 'Updated user role (viewer, admin, owner).' example: owner enum: - viewer - admin - owner status: type: string description: 'Updated account status (active, inactive, suspended).' example: inactive enum: - active - inactive - suspended avatar_temp_path: type: string description: 'Optional temporary path for the updated avatar. Set to null to clear/delete the existing avatar. Omit to leave it unchanged. Must start with one of tmp/.' example: tmp/1234-uuid.jpg nullable: true delete: summary: 'Delete user' operationId: deleteUser description: 'Delete a specific user account. Owners cannot delete their own account.' parameters: [] responses: {} tags: - 'User Management' parameters: - in: path name: id description: 'The ID of the user.' example: 1 required: true schema: type: integer /api/v1/admin/notifications: get: summary: 'List notifications' operationId: listNotifications description: "Retrieve paginated notifications for the authenticated staff member.\nSupports filtering by unread status and event type." parameters: - in: query name: unread_only description: 'Filter only unread notifications (true or 1). Omit or set to false to retrieve all.' example: true required: false schema: type: boolean description: 'Filter only unread notifications (true or 1). Omit or set to false to retrieve all.' example: true - in: query name: type description: 'Filter notifications by specific event type code matching NotificationType enum.' example: booking_confirmed required: false schema: type: string description: 'Filter notifications by specific event type code matching NotificationType enum.' example: booking_confirmed - in: query name: page description: 'Page number for pagination.' example: 1 required: false schema: type: integer description: 'Page number for pagination.' example: 1 - in: query name: per_page description: 'Items per page (1-100). Defaults to 20.' example: 20 required: false schema: type: integer description: 'Items per page (1-100). Defaults to 20.' example: 20 responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d type: booking_confirmed data: type: booking_confirmed booking_id: 42 booking_reference: BK-2026-0042 guest_name: 'Jane Doe' message: 'Booking BK-2026-0042 confirmed for Jane Doe' read_at: null is_read: false created_at: '2026-09-22T14:30:00+07:00' links: first: 'http://living-home-api.test/api/v1/admin/notifications?page=1' last: 'http://living-home-api.test/api/v1/admin/notifications?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 per_page: 20 to: 1 total: 1 properties: data: type: array example: - id: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d type: booking_confirmed data: type: booking_confirmed booking_id: 42 booking_reference: BK-2026-0042 guest_name: 'Jane Doe' message: 'Booking BK-2026-0042 confirmed for Jane Doe' read_at: null is_read: false created_at: '2026-09-22T14:30:00+07:00' items: type: object properties: id: type: string example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d type: type: string example: booking_confirmed data: type: object properties: type: type: string example: booking_confirmed booking_id: type: integer example: 42 booking_reference: type: string example: BK-2026-0042 guest_name: type: string example: 'Jane Doe' message: type: string example: 'Booking BK-2026-0042 confirmed for Jane Doe' read_at: type: string example: null nullable: true is_read: type: boolean example: false created_at: type: string example: '2026-09-22T14:30:00+07:00' links: type: object properties: first: type: string example: 'http://living-home-api.test/api/v1/admin/notifications?page=1' description: 'URL to the first page. Example: http://living-home-api.test/api/v1/admin/notifications?page=1' last: type: string example: 'http://living-home-api.test/api/v1/admin/notifications?page=1' description: 'URL to the last page. Example: http://living-home-api.test/api/v1/admin/notifications?page=1' prev: type: string example: null description: 'URL to the previous page. Example: null' next: type: string example: null description: 'URL to the next page. Example: null' description: 'Pagination navigation links.' meta: type: object properties: current_page: type: integer example: 1 description: 'Current page number. Example: 1' from: type: integer example: 1 description: 'Index of first record in page. Example: 1' last_page: type: integer example: 1 description: 'Total number of pages. Example: 1' per_page: type: integer example: 20 description: 'Items per page. Example: 20' to: type: integer example: 1 description: 'Index of last record in page. Example: 1' total: type: integer example: 1 description: 'Total number of matching records. Example: 1' description: 'Pagination metadata.' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. 422: description: '' content: application/json: schema: type: object example: message: 'The selected type is invalid.' errors: type: - 'The selected type is invalid.' properties: message: type: string example: 'The selected type is invalid.' errors: type: object properties: type: type: array example: - 'The selected type is invalid.' items: type: string tags: - 'Staff Notifications' /api/v1/admin/notifications/unread-count: get: summary: 'Get unread count' operationId: getUnreadCount description: 'Retrieve the count of unread notifications for bell badge indicators in the admin dashboard navigation bar.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: unread_count: 3 properties: unread_count: type: integer example: 3 description: 'Total number of unread notifications for the authenticated user. Example: 3' - description: '' type: object example: unread_count: 3 properties: unread_count: type: integer example: 3 description: 'Total number of unread notifications for the authenticated user. Example: 3' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. tags: - 'Staff Notifications' '/api/v1/admin/notifications/{id}/read': patch: summary: 'Mark notification as read' operationId: markNotificationAsRead description: 'Mark a single unread notification belonging to the authenticated staff member as read.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: notification: id: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d type: booking_confirmed data: type: booking_confirmed booking_id: 42 booking_reference: BK-2026-0042 guest_name: 'Jane Doe' message: 'Booking BK-2026-0042 confirmed for Jane Doe' read_at: '2026-09-22T14:35:00+07:00' is_read: true created_at: '2026-09-22T14:30:00+07:00' properties: notification: type: object properties: id: type: string example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d description: 'UUID identifier of the notification. Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' type: type: string example: booking_confirmed description: 'Event type identifier matching NotificationType enum. Example: booking_confirmed' data: type: object properties: type: type: string example: booking_confirmed booking_id: type: integer example: 42 booking_reference: type: string example: BK-2026-0042 guest_name: type: string example: 'Jane Doe' message: type: string example: 'Booking BK-2026-0042 confirmed for Jane Doe' description: 'Structured notification payload.' read_at: type: string example: '2026-09-22T14:35:00+07:00' description: 'ISO 8601 timestamp when marked as read. Example: 2026-09-22T14:35:00+07:00' is_read: type: boolean example: true description: 'Set to true once marked as read. Example: true' created_at: type: string example: '2026-09-22T14:30:00+07:00' description: 'ISO 8601 creation timestamp. Example: 2026-09-22T14:30:00+07:00' description: 'The updated notification entity.' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. 404: description: '' content: application/json: schema: type: object example: error: code: not_found message: 'Notification not found.' properties: error: type: object properties: code: type: string example: not_found message: type: string example: 'Notification not found.' tags: - 'Staff Notifications' parameters: - in: path name: id description: 'The UUID of the notification.' example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d required: true schema: type: string /api/v1/admin/notifications/mark-all-read: post: summary: 'Mark all as read' operationId: markAllAsRead description: 'Mark all unread notifications for the authenticated staff member as read in a single batch operation.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: message: 'All notifications marked as read.' updated_count: 5 properties: message: type: string example: 'All notifications marked as read.' description: 'Success confirmation message. Example: All notifications marked as read.' updated_count: type: integer example: 5 description: 'Total number of notifications updated from unread to read. Example: 5' - description: '' type: object example: message: 'All notifications marked as read.' updated_count: 5 properties: message: type: string example: 'All notifications marked as read.' description: 'Success confirmation message. Example: All notifications marked as read.' updated_count: type: integer example: 5 description: 'Total number of notifications updated from unread to read. Example: 5' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. tags: - 'Staff Notifications' '/api/v1/admin/notifications/{id}': delete: summary: 'Delete notification' operationId: deleteNotification description: 'Delete or dismiss a single notification belonging to the authenticated staff member.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: message: 'Notification deleted successfully.' properties: message: type: string example: 'Notification deleted successfully.' description: 'Success confirmation message. Example: Notification deleted successfully.' - description: '' type: object example: message: 'Notification deleted successfully.' properties: message: type: string example: 'Notification deleted successfully.' description: 'Success confirmation message. Example: Notification deleted successfully.' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. 404: description: '' content: application/json: schema: type: object example: error: code: not_found message: 'Notification not found.' properties: error: type: object properties: code: type: string example: not_found message: type: string example: 'Notification not found.' tags: - 'Staff Notifications' parameters: - in: path name: id description: 'The UUID of the notification.' example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d required: true schema: type: string /api/v1/admin/promotions: get: summary: 'Display a listing of promotions.' operationId: displayAListingOfPromotions description: 'Fetch a full list of all promotions, optionally filtering for active ones using the frontend parameter.' parameters: - in: query name: frontend description: 'Filter to return only active promotions intended for public display.' example: true required: false schema: type: boolean description: 'Filter to return only active promotions intended for public display.' example: true responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 12 active: true properties: data: type: array example: - id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 12 active: true items: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Summer Discount' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 15 max_discount: type: string example: '50.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-08-31' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 2 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 100 used_count: type: integer example: 12 active: type: boolean example: true tags: - 'Admin - Promotions' security: [] post: summary: 'Store a newly created promotion.' operationId: storeANewlyCreatedPromotion description: 'Create a new promotion record with specific rules, type conditions, and plan scope.' parameters: [] responses: 201: description: '' content: application/json: schema: type: object example: message: 'Promotion created successfully' data: id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 0 active: true properties: message: type: string example: 'Promotion created successfully' data: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Summer Discount' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 15 max_discount: type: string example: '50.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-08-31' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 2 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 100 used_count: type: integer example: 0 active: type: boolean example: true tags: - 'Admin - Promotions' requestBody: required: true content: application/json: schema: type: object properties: code: type: string description: 'Optional unique promo code.' example: SUMMER2026 nullable: true name: type: string description: 'Descriptive name of the promotion.' example: 'Summer Discount' nullable: true discount_type: type: string description: 'Type of discount (`percentage` or `fixed`).' example: percentage type: type: string description: 'Promotion category (`campaign`, `early_bird`, `last_minute`, `minimum_stay`).' example: campaign value: type: numeric description: 'Discount value (amount in minor units or percentage value).' example: '15' max_discount: type: numeric description: 'Maximum discount limit for percentage promotions (prohibited if fixed).' example: '50.00' nullable: true validity: type: object description: 'Nested object containing validity dates for campaign promotions.' example: [] properties: from: type: string description: 'Start date for promo validity (`Y-m-d`). Required if type is `campaign`.' example: '2026-06-01' to: type: string description: 'End date for promo validity (`Y-m-d`). Required if type is `campaign`.' example: '2026-08-31' min_lead_days: type: integer description: 'Minimum days before check-in. Required if type is `early_bird`.' example: 14 nullable: true max_lead_days: type: integer description: 'Maximum days before check-in. Required if type is `last_minute`.' example: 3 nullable: true min_nights: type: integer description: 'Minimum stay requirement in nights.' example: 2 nullable: true plan_scope: type: string description: 'Applicable rate plan scope (`all`, `standard`, `non_refundable`).' example: all apartment_ids: type: array description: 'Optional apartment IDs to limit this promotion to. Omit or send an empty array to apply to all apartments.' example: - 1 - 2 items: type: integer max_uses: type: integer description: 'Total usage cap for this promotion.' example: 100 nullable: true required: - name - discount_type - type - value - plan_scope security: [] '/api/v1/admin/promotions/{promotion_id}': get: summary: 'Display the specified promotion.' operationId: displayTheSpecifiedPromotion description: 'Retrieve details of a single promotion along with its associated booking redemptions.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 1 active: true redemptions: - id: 10 code: BK-2026-001 guest_id: 4 apartment_id: 2 check_in: '2026-07-01' check_out: '2026-07-05' status: confirmed subtotal: '500.00' total: '450.00' currency: USD redemption: discount_amount: '50.00' redeemed_at: '2026-06-15T14:30:00.000000Z' properties: data: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Summer Discount' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 15 max_discount: type: string example: '50.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-08-31' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 2 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 100 used_count: type: integer example: 1 active: type: boolean example: true redemptions: type: array example: - id: 10 code: BK-2026-001 guest_id: 4 apartment_id: 2 check_in: '2026-07-01' check_out: '2026-07-05' status: confirmed subtotal: '500.00' total: '450.00' currency: USD redemption: discount_amount: '50.00' redeemed_at: '2026-06-15T14:30:00.000000Z' items: type: object properties: id: type: integer example: 10 code: type: string example: BK-2026-001 guest_id: type: integer example: 4 apartment_id: type: integer example: 2 check_in: type: string example: '2026-07-01' check_out: type: string example: '2026-07-05' status: type: string example: confirmed subtotal: type: string example: '500.00' total: type: string example: '450.00' currency: type: string example: USD redemption: type: object properties: discount_amount: type: string example: '50.00' redeemed_at: type: string example: '2026-06-15T14:30:00.000000Z' tags: - 'Admin - Promotions' security: [] parameters: - in: path name: promotion_id description: 'The ID of the promotion.' example: 1 required: true schema: type: integer - in: path name: promotion description: 'The ID of the promotion.' example: 1 required: true schema: type: integer '/api/v1/admin/promotions/{id}': put: summary: 'Update the specified promotion.' operationId: updateTheSpecifiedPromotion description: 'Update configuration and parameters for an existing promotion campaign.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: message: 'Promotion updated successfully' data: id: 1 code: SUMMER2026 name: 'Late Summer Sale' type: campaign discount_type: percentage value: 20 max_discount: '100.00' valid_from: '2026-06-01' valid_to: '2026-09-15' min_lead_days: null max_lead_days: null min_nights: 3 max_nights: null plan_scope: all max_uses: 150 used_count: 1 active: true properties: message: type: string example: 'Promotion updated successfully' data: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Late Summer Sale' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 20 max_discount: type: string example: '100.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-09-15' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 3 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 150 used_count: type: integer example: 1 active: type: boolean example: true tags: - 'Admin - Promotions' requestBody: required: true content: application/json: schema: type: object properties: code: type: string description: 'Optional unique promo code.' example: SUMMER2026 nullable: true name: type: string description: 'Descriptive name of the promotion.' example: 'Late Summer Sale' nullable: true discount_type: type: string description: 'Type of discount (`percentage` or `fixed`).' example: percentage type: type: string description: 'Promotion category (`campaign`, `early_bird`, `last_minute`, `minimum_stay`).' example: campaign value: type: numeric description: 'Discount value.' example: '20' max_discount: type: numeric description: 'Maximum discount limit for percentage promotions (prohibited if fixed).' example: '100.00' nullable: true validity: type: object description: 'Nested object containing validity dates for campaign promotions.' example: [] properties: from: type: string description: 'Start date for promo validity (`Y-m-d`). Required if type is `campaign`.' example: '2026-06-01' to: type: string description: 'End date for promo validity (`Y-m-d`). Required if type is `campaign`.' example: '2026-09-15' min_lead_days: type: integer description: 'Minimum days before check-in. Required if type is `early_bird`.' example: 14 nullable: true max_lead_days: type: integer description: 'Maximum days before check-in. Required if type is `last_minute`.' example: 3 nullable: true min_nights: type: integer description: 'Minimum stay requirement in nights.' example: 3 nullable: true plan_scope: type: string description: 'Applicable rate plan scope (`all`, `standard`, `non_refundable`).' example: all apartment_ids: type: array description: 'Optional apartment IDs to limit this promotion to. Omit or send an empty array to apply to all apartments.' example: - 1 - 2 items: type: integer max_uses: type: integer description: 'Total usage cap for this promotion.' example: 150 nullable: true required: - name - discount_type - type - value - plan_scope security: [] delete: summary: 'Remove the specified promotion.' operationId: removeTheSpecifiedPromotion description: 'Delete a promotion record from storage if it has not been used in any bookings.' parameters: [] responses: 204: description: 'Successfully deleted' content: application/json: schema: type: object example: {} properties: {} 409: description: 'Conflict / Active Bookings Exist' content: application/json: schema: type: object example: message: 'Cannot delete this promotion because it is linked to existing bookings.' properties: message: type: string example: 'Cannot delete this promotion because it is linked to existing bookings.' tags: - 'Admin - Promotions' security: [] parameters: - in: path name: id description: 'The ID of the promotion.' example: 1 required: true schema: type: integer - in: path name: promotion description: 'The ID of the promotion to update.' example: 1 required: true schema: type: integer '/api/v1/admin/promotions/{promotion_id}/payload': get: summary: 'Fetch promotion payload details.' operationId: fetchPromotionPayloadDetails description: 'Retrieve payload information for a target promotion.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 1 active: true properties: data: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Summer Discount' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 15 max_discount: type: string example: '50.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-08-31' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 2 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 100 used_count: type: integer example: 1 active: type: boolean example: true tags: - 'Admin - Promotions' security: [] parameters: - in: path name: promotion_id description: 'The ID of the promotion.' example: 1 required: true schema: type: integer - in: path name: promotion description: 'The ID of the promotion.' example: 1 required: true schema: type: integer '/api/v1/admin/promotions/{promotion_id}/status': patch: summary: 'Update the active/inactive status of a promotion.' operationId: updateTheActiveinactiveStatusOfAPromotion description: 'Toggle the current state of a promotion campaign without altering its pricing or validity rules.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true message: 'Promotion activated successfully.' data: id: 1 code: SUMMER2026 name: 'Summer Discount' type: campaign discount_type: percentage value: 15 max_discount: '50.00' valid_from: '2026-06-01' valid_to: '2026-08-31' min_lead_days: null max_lead_days: null min_nights: 2 max_nights: null plan_scope: all max_uses: 100 used_count: 12 active: true properties: success: type: boolean example: true message: type: string example: 'Promotion activated successfully.' data: type: object properties: id: type: integer example: 1 code: type: string example: SUMMER2026 name: type: string example: 'Summer Discount' type: type: string example: campaign discount_type: type: string example: percentage value: type: integer example: 15 max_discount: type: string example: '50.00' valid_from: type: string example: '2026-06-01' valid_to: type: string example: '2026-08-31' min_lead_days: type: string example: null nullable: true max_lead_days: type: string example: null nullable: true min_nights: type: integer example: 2 max_nights: type: string example: null nullable: true plan_scope: type: string example: all max_uses: type: integer example: 100 used_count: type: integer example: 12 active: type: boolean example: true tags: - 'Admin - Promotions' requestBody: required: true content: application/json: schema: type: object properties: status: type: string description: 'Promotion status. Must be either `active` or `inactive`.' example: active required: - status security: [] parameters: - in: path name: promotion_id description: 'The ID of the promotion.' example: 1 required: true schema: type: integer - in: path name: promotion description: 'The ID of the promotion to update.' example: 1 required: true schema: type: integer /api/v1/admin/reviews: get: summary: 'List published reviews' operationId: listPublishedReviews description: "Fetch a paginated or full list of published guest reviews along with brief guest and booking details.\nNote: The `admin_reply` field is omitted in the index payload." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1 rating: 5 text: 'Absolutely loved our stay! The apartment was spotless.' status: PUBLISHED is_replied: true replied_at: '2026-09-04T12:00:00+00:00' guest: id: 10 name: 'John Doe' booking: id: 101 code: BK-2026-9081 apartment_name: 'Seaside Suite 3A' properties: data: type: array example: - id: 1 rating: 5 text: 'Absolutely loved our stay! The apartment was spotless.' status: PUBLISHED is_replied: true replied_at: '2026-09-04T12:00:00+00:00' guest: id: 10 name: 'John Doe' booking: id: 101 code: BK-2026-9081 apartment_name: 'Seaside Suite 3A' items: type: object properties: id: type: integer example: 1 rating: type: integer example: 5 text: type: string example: 'Absolutely loved our stay! The apartment was spotless.' status: type: string example: PUBLISHED is_replied: type: boolean example: true replied_at: type: string example: '2026-09-04T12:00:00+00:00' guest: type: object properties: id: type: integer example: 10 name: type: string example: 'John Doe' booking: type: object properties: id: type: integer example: 101 code: type: string example: BK-2026-9081 apartment_name: type: string example: 'Seaside Suite 3A' tags: - 'Admin / Reviews' security: [] '/api/v1/admin/reviews/{review_id}': get: summary: 'Get review details' operationId: getReviewDetails description: 'Retrieve full information for a specific review, including the `admin_reply` if one exists.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 1 rating: 5 text: 'Absolutely loved our stay! The apartment was spotless.' status: PUBLISHED is_replied: true admin_reply: 'Thank you so much for the kind words! We hope to host you again.' replied_at: '2026-09-04T12:00:00+00:00' guest: id: 10 name: 'John Doe' booking: id: 101 code: BK-2026-9081 apartment_name: 'Seaside Suite 3A' properties: data: type: object properties: id: type: integer example: 1 rating: type: integer example: 5 text: type: string example: 'Absolutely loved our stay! The apartment was spotless.' status: type: string example: PUBLISHED is_replied: type: boolean example: true admin_reply: type: string example: 'Thank you so much for the kind words! We hope to host you again.' replied_at: type: string example: '2026-09-04T12:00:00+00:00' guest: type: object properties: id: type: integer example: 10 name: type: string example: 'John Doe' booking: type: object properties: id: type: integer example: 101 code: type: string example: BK-2026-9081 apartment_name: type: string example: 'Seaside Suite 3A' 404: description: '' content: application/json: schema: type: object example: message: 'No query results for model [App\Models\Review] 1' properties: message: type: string example: 'No query results for model [App\Models\Review] 1' tags: - 'Admin / Reviews' security: [] delete: summary: 'Delete a review' operationId: deleteAReview description: 'Permanently remove a review from the database. Returns an empty 204 response on success.' parameters: [] responses: 204: description: 'Successfully deleted' content: application/json: schema: type: object example: {} properties: {} tags: - 'Admin / Reviews' security: [] patch: summary: 'Reply to a review' operationId: replyToAReview description: 'Add or update an official admin response for a guest review and automatically update `replied_at`.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: message: 'Reply added successfully.' properties: message: type: string example: 'Reply added successfully.' 422: description: '' content: application/json: schema: type: object example: message: 'The admin reply field is required.' errors: admin_reply: - 'The admin reply field is required.' properties: message: type: string example: 'The admin reply field is required.' errors: type: object properties: admin_reply: type: array example: - 'The admin reply field is required.' items: type: string tags: - 'Admin / Reviews' requestBody: required: true content: application/json: schema: type: object properties: admin_reply: type: string description: 'The text response from the admin.' example: 'Thank you so much for the kind words!' required: - admin_reply security: [] parameters: - in: path name: review_id description: 'The ID of the review.' example: 1 required: true schema: type: integer - in: path name: review description: 'The ID of the review.' example: 1 required: true schema: type: integer '/api/v1/admin/reviews/{review_id}/hide': patch: summary: 'Hide a review' operationId: hideAReview description: 'Update the review status to `HIDDEN` so it is not displayed on public listings.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: message: 'Review hidden successfully.' properties: message: type: string example: 'Review hidden successfully.' tags: - 'Admin / Reviews' security: [] parameters: - in: path name: review_id description: 'The ID of the review.' example: 1 required: true schema: type: integer - in: path name: review description: 'The ID of the review to hide.' example: 1 required: true schema: type: integer '/api/v1/admin/reviews/{review_id}/reveal': patch: summary: 'Reveal a review' operationId: revealAReview description: 'Update the review status to `PUBLISHED` so it appears on public listings.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: message: 'Review published successfully.' properties: message: type: string example: 'Review published successfully.' tags: - 'Admin / Reviews' security: [] parameters: - in: path name: review_id description: 'The ID of the review.' example: 1 required: true schema: type: integer - in: path name: review description: 'The ID of the review to reveal.' example: 1 required: true schema: type: integer /api/v1/admin/apartments: get: summary: 'List all apartments' operationId: listAllApartments description: "Retrieves the complete collection of apartments with associated media and amenities.\nDesigned for client-side filtering, sorting, and pagination." parameters: - in: query name: status description: 'Filter by apartment status (active, inactive, maintenance).' example: active required: false schema: type: string description: 'Filter by apartment status (active, inactive, maintenance).' example: active enum: - active - inactive - maintenance nullable: true - in: query name: search description: 'Match apartment code or name.' example: Deluxe required: false schema: type: string description: 'Match apartment code or name.' example: Deluxe nullable: true - in: query name: page description: 'Page number.' example: 1 required: false schema: type: integer description: 'Page number.' example: 1 nullable: true - in: query name: per_page description: 'Items per page (max 100).' example: 20 required: false schema: type: integer description: 'Items per page (max 100).' example: 20 nullable: true responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: - id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 - id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 properties: data: type: array example: - id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 - id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 items: type: object properties: id: type: integer example: 1 code: type: string example: 'Apartment 6511' name: type: string example: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 2 description: type: string example: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 100 base_price: type: integer example: 1200 cleaning_fee: type: integer example: 300 size_sqm: type: integer example: 120 status: type: string example: active sort_order: type: integer example: 5 created_at: type: string example: '2026-10-08T16:45:45.000000Z' updated_at: type: string example: '2026-10-19T12:32:00.000000Z' features: type: array example: [] amenities: type: array example: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer items: type: object properties: id: type: integer example: 2 name: type: string example: 'Air Conditioning' icon: type: string example: air-con images: type: array example: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null items: type: object properties: id: type: integer example: 78 url: type: string example: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: type: string example: null nullable: true house_rules: type: array example: [] additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1945662 longitude: type: number example: 55.2716858 - description: '' type: object example: data: - id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: active sort_order: 1 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 properties: data: type: array example: - id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: active sort_order: 1 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 items: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Ocean View Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Spacious apartment with ocean view and king bed.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 2500 base_price: type: integer example: 15000 cleaning_fee: type: integer example: 3000 size_sqm: type: integer example: 45 status: type: string example: active sort_order: type: integer example: 1 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T10:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Apartment Management' post: summary: 'Create an apartment' operationId: createAnApartment description: 'Create a new apartment record along with its amenities and optional media.' parameters: [] responses: 201: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: 'Apartment 6511' name: type: string example: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 2 description: type: string example: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 100 base_price: type: integer example: 1200 cleaning_fee: type: integer example: 300 size_sqm: type: integer example: 120 status: type: string example: active sort_order: type: integer example: 5 created_at: type: string example: '2026-10-08T16:45:45.000000Z' updated_at: type: string example: '2026-10-19T12:32:00.000000Z' features: type: array example: [] amenities: type: array example: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer items: type: object properties: id: type: integer example: 2 name: type: string example: 'Air Conditioning' icon: type: string example: air-con images: type: array example: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null items: type: object properties: id: type: integer example: 78 url: type: string example: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: type: string example: null nullable: true house_rules: type: array example: [] additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1945662 longitude: type: number example: 55.2716858 - description: '' type: object example: data: id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: active sort_order: 1 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Ocean View Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Spacious apartment with ocean view and king bed.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 2500 base_price: type: integer example: 15000 cleaning_fee: type: integer example: 3000 size_sqm: type: integer example: 45 status: type: string example: active sort_order: type: integer example: 1 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T10:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. 422: description: '' content: application/json: schema: type: object example: message: 'The code field is required.' errors: code: - 'The code field is required.' properties: message: type: string example: 'The code field is required.' errors: type: object properties: code: type: array example: - 'The code field is required.' items: type: string tags: - 'Apartment Management' requestBody: required: true content: application/json: schema: type: object properties: code: type: string description: 'Unique code for the apartment.' example: APT-101 name: type: string description: 'Apartment title.' example: 'Deluxe Ocean View Suite' bedrooms: type: integer description: 'Number of bedrooms.' example: 2 nullable: true bathrooms: type: integer description: 'Number of bathrooms.' example: 1 nullable: true description: type: string description: 'Extended details and features.' example: 'Spacious apartment with ocean view and king bed.' nullable: true capacity: type: integer description: 'Maximum guest capacity.' example: 4 extra_bed_allowed: type: boolean description: 'Indicates whether extra beds can be requested.' example: true extra_bed_price: type: integer description: 'Cost per extra bed.' example: 2500 nullable: true base_price: type: integer description: 'Base nightly rate.' example: 15000 cleaning_fee: type: integer description: 'Additional fee for cleaning.' example: 3000 nullable: true size_sqm: type: integer description: 'Total room area in square meters.' example: 45 nullable: true status: type: string description: 'Current operational status (active, inactive, maintenance).' example: active sort_order: type: integer description: 'Manual display order index.' example: 1 amenity_ids: type: array description: 'List of amenity record IDs.' example: - 1 - 2 - 5 items: type: integer apartment_images: type: array description: 'List of image metadata objects to attach or upload.' example: - [] items: type: object nullable: true properties: id: type: integer description: 'ID of existing media to keep/update.' example: 10 nullable: true temp_path: type: string description: 'Path to temporarily stored uploaded image.' example: tmp/uploads/img_12345.jpg nullable: true alt: type: string description: 'Alt text for image accessibility.' example: 'Living room view' nullable: true features: type: array description: '' example: - architecto items: type: string house_rules: type: array description: '' example: null items: type: object nullable: true properties: key: type: string description: '' example: architecto value: type: string description: '' example: architecto required: - key - value additional_rules: type: string description: '' example: architecto nullable: true latitude: type: number description: 'Geographical latitude coordinate (-90 to 90).' example: 25.197197 nullable: true longitude: type: number description: 'Geographical longitude coordinate (-180 to 180).' example: 55.274386 nullable: true required: - code - name - capacity - base_price '/api/v1/admin/apartments/{id}': get: summary: 'Show apartment details' operationId: showApartmentDetails description: 'Retrieve details of a specific apartment by its ID, including media and amenities.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: 'Apartment 6511' name: type: string example: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 2 description: type: string example: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 100 base_price: type: integer example: 1200 cleaning_fee: type: integer example: 300 size_sqm: type: integer example: 120 status: type: string example: active sort_order: type: integer example: 5 created_at: type: string example: '2026-10-08T16:45:45.000000Z' updated_at: type: string example: '2026-10-19T12:32:00.000000Z' features: type: array example: [] amenities: type: array example: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer items: type: object properties: id: type: integer example: 2 name: type: string example: 'Air Conditioning' icon: type: string example: air-con images: type: array example: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null items: type: object properties: id: type: integer example: 78 url: type: string example: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: type: string example: null nullable: true house_rules: type: array example: [] additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1945662 longitude: type: number example: 55.2716858 - description: '' type: object example: data: id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: active sort_order: 1 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Ocean View Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Spacious apartment with ocean view and king bed.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 2500 base_price: type: integer example: 15000 cleaning_fee: type: integer example: 3000 size_sqm: type: integer example: 45 status: type: string example: active sort_order: type: integer example: 1 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T10:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. 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: - 'Apartment Management' patch: summary: 'Update an apartment' operationId: updateAnApartment description: 'Update specific attributes, amenities, or media items for an existing apartment.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: 'Apartment 6511' name: type: string example: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 2 description: type: string example: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 100 base_price: type: integer example: 1200 cleaning_fee: type: integer example: 300 size_sqm: type: integer example: 120 status: type: string example: active sort_order: type: integer example: 5 created_at: type: string example: '2026-10-08T16:45:45.000000Z' updated_at: type: string example: '2026-10-19T12:32:00.000000Z' features: type: array example: [] amenities: type: array example: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer items: type: object properties: id: type: integer example: 2 name: type: string example: 'Air Conditioning' icon: type: string example: air-con images: type: array example: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null items: type: object properties: id: type: integer example: 78 url: type: string example: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: type: string example: null nullable: true house_rules: type: array example: [] additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1945662 longitude: type: number example: 55.2716858 - description: '' type: object example: data: id: 1 code: APT-101 name: 'Executive Deluxe Suite' bedrooms: 2 bathrooms: 1 description: 'Updated description details.' capacity: 4 extra_bed_allowed: true extra_bed_price: 3000 base_price: 18000 cleaning_fee: 3500 size_sqm: 50 status: active sort_order: 2 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T12:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi - id: 3 name: 'Air Conditioning' icon: snowflake images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Executive Deluxe Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Updated description details.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 3000 base_price: type: integer example: 18000 cleaning_fee: type: integer example: 3500 size_sqm: type: integer example: 50 status: type: string example: active sort_order: type: integer example: 2 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T12:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi - id: 3 name: 'Air Conditioning' icon: snowflake items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. 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: - 'Apartment Management' requestBody: required: false content: application/json: schema: type: object properties: code: type: string description: 'Unique code for the apartment.' example: APT-101 name: type: string description: 'Apartment title.' example: 'Executive Deluxe Suite' bedrooms: type: integer description: 'Number of bedrooms.' example: 2 nullable: true bathrooms: type: integer description: 'Number of bathrooms.' example: 1 nullable: true description: type: string description: 'Extended details and features.' example: 'Updated description details.' nullable: true capacity: type: integer description: 'Maximum guest capacity.' example: 4 extra_bed_allowed: type: boolean description: 'Indicates whether extra beds can be requested.' example: true extra_bed_price: type: integer description: 'Cost per extra bed.' example: 3000 nullable: true base_price: type: integer description: 'Base nightly rate.' example: 18000 cleaning_fee: type: integer description: 'Additional fee for cleaning.' example: 3500 nullable: true size_sqm: type: integer description: 'Total room area in square meters.' example: 50 nullable: true status: type: string description: 'Operational status (active, inactive, maintenance).' example: active sort_order: type: integer description: 'Manual display order index.' example: 2 amenity_ids: type: array description: 'Updated array of amenity record IDs.' example: - 1 - 3 items: type: integer apartment_images: type: array description: 'List of image metadata objects.' example: - [] items: type: object nullable: true properties: id: type: integer description: 'Must match an existing stored value.' example: 16 nullable: true temp_path: type: string description: 'Must start with one of tmp/.' example: tmp/bngz nullable: true alt: type: string description: 'Must not be greater than 255 characters.' example: m nullable: true features: type: array description: '' example: - architecto items: type: string house_rules: type: array description: '' example: null items: type: object nullable: true properties: key: type: string description: '' example: architecto value: type: string description: '' example: architecto required: - key - value additional_rules: type: string description: '' example: architecto nullable: true latitude: type: number description: 'Geographical latitude coordinate (-90 to 90).' example: 25.197197 nullable: true longitude: type: number description: 'Geographical longitude coordinate (-180 to 180).' example: 55.274386 nullable: true delete: summary: 'Deactivate an apartment' operationId: deactivateAnApartment description: 'Sets the status of the apartment to `inactive`. (Preserves booking history).' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: id: 1 code: 'Apartment 6511' name: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: 2 bathrooms: 2 description: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: 4 extra_bed_allowed: true extra_bed_price: 100 base_price: 1200 cleaning_fee: 300 size_sqm: 120 status: active sort_order: 5 created_at: '2026-10-08T16:45:45.000000Z' updated_at: '2026-10-19T12:32:00.000000Z' features: [] amenities: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer images: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null house_rules: [] additional_rules: null latitude: 25.1945662 longitude: 55.2716858 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: 'Apartment 6511' name: type: string example: 'Luxury 2BR | City Skyline & Sunset View' bedrooms: type: integer example: 2 bathrooms: type: integer example: 2 description: type: string example: '

This modern luxury suite offers stunning views of the city skyline and sunset and is within walking distance of Dubai Mall and the Dubai Fountain, combining comfort and convenience.

Located on the 65th floor, this 2-bedroom, 2-bathroom apartment features a balcony with skyline and sunset views and easy access to Downtown Dubai Boulevard and key attractions, offering a vibrant city lifestyle.


' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 100 base_price: type: integer example: 1200 cleaning_fee: type: integer example: 300 size_sqm: type: integer example: 120 status: type: string example: active sort_order: type: integer example: 5 created_at: type: string example: '2026-10-08T16:45:45.000000Z' updated_at: type: string example: '2026-10-19T12:32:00.000000Z' features: type: array example: [] amenities: type: array example: - id: 2 name: 'Air Conditioning' icon: air-con - id: 4 name: 'Hair Dryer' icon: hair-dryer items: type: object properties: id: type: integer example: 2 name: type: string example: 'Air Conditioning' icon: type: string example: air-con images: type: array example: - id: 78 url: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: null - id: 69 url: 'http://living-home-api.test/storage/69/a7303bb5-93f1-4d82-88a1-13e5395e15bd.jpg' alt: null - id: 70 url: 'http://living-home-api.test/storage/70/f926c444-909e-40f1-afdd-8aeab6e66228.jpg' alt: null - id: 71 url: 'http://living-home-api.test/storage/71/5b94aaf2-bb27-4d57-b325-fe21d9338bbf.jpg' alt: null - id: 72 url: 'http://living-home-api.test/storage/72/b69d4c6d-af71-4734-86b5-8af23a8baead.jpg' alt: null - id: 73 url: 'http://living-home-api.test/storage/73/11f3f769-875f-4d49-bf8f-1c6ffe40a6b0.jpg' alt: null - id: 74 url: 'http://living-home-api.test/storage/74/458106ae-7eec-4370-9aa0-4178d6cea53e.jpg' alt: null - id: 75 url: 'http://living-home-api.test/storage/75/1afe778b-a959-49d1-8ee1-394279089a0b.jpg' alt: null - id: 76 url: 'http://living-home-api.test/storage/76/bbdf3815-7894-4f3d-8272-2ff47c028ef8.jpg' alt: null - id: 77 url: 'http://living-home-api.test/storage/77/62db6b9f-fe63-4990-95c3-324ded00057b.jpg' alt: null items: type: object properties: id: type: integer example: 78 url: type: string example: 'http://living-home-api.test/storage/78/93432d7c-ca1d-47f4-a386-83a64c5c8e04.jpg' alt: type: string example: null nullable: true house_rules: type: array example: [] additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1945662 longitude: type: number example: 55.2716858 - description: '' type: object example: data: id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: inactive sort_order: 1 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 properties: data: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Ocean View Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Spacious apartment with ocean view and king bed.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 2500 base_price: type: integer example: 15000 cleaning_fee: type: integer example: 3000 size_sqm: type: integer example: 45 status: type: string example: inactive sort_order: type: integer example: 1 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T10:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. 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: - 'Apartment Management' parameters: - in: path name: id description: 'The ID of the apartment.' example: 1 required: true schema: type: integer /api/v1/admin/apartment-features: get: summary: 'List apartment features' operationId: listApartmentFeatures description: 'Retrieve all available apartment features as a simple string array.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - 'Ocean View' - Kitchenette - Balcony properties: data: type: array example: - 'Ocean View' - Kitchenette - Balcony items: type: string tags: - 'Apartment Management' '/api/v1/admin/apartments/{id}/update-sort-order': post: summary: 'Update apartment sort order' operationId: updateApartmentSortOrder description: 'Change the display order of an apartment in the admin catalog.' parameters: [] responses: 200: description: '' content: application/json: schema: oneOf: - description: 'Sort order updated' type: object example: data: id: 48 code: APT-216 name: 'velit et Apartment' bedrooms: null bathrooms: null description: 'Sunt nihil accusantium harum mollitia.' capacity: 2 extra_bed_allowed: false extra_bed_price: null base_price: 1000 cleaning_fee: null size_sqm: 50 status: active sort_order: 0 created_at: '2026-11-03T02:36:18.000000Z' updated_at: '2026-11-03T02:36:18.000000Z' features: - Wi-Fi - 'Air Conditioning' house_rules: null additional_rules: null latitude: 25.1972 longitude: 55.2744 message: 'Sort order updated successfully' properties: data: type: object properties: id: type: integer example: 48 code: type: string example: APT-216 name: type: string example: 'velit et Apartment' bedrooms: type: string example: null nullable: true bathrooms: type: string example: null nullable: true description: type: string example: 'Sunt nihil accusantium harum mollitia.' capacity: type: integer example: 2 extra_bed_allowed: type: boolean example: false extra_bed_price: type: string example: null nullable: true base_price: type: integer example: 1000 cleaning_fee: type: string example: null nullable: true size_sqm: type: integer example: 50 status: type: string example: active sort_order: type: integer example: 0 created_at: type: string example: '2026-11-03T02:36:18.000000Z' updated_at: type: string example: '2026-11-03T02:36:18.000000Z' features: type: array example: - Wi-Fi - 'Air Conditioning' items: type: string house_rules: type: string example: null nullable: true additional_rules: type: string example: null nullable: true latitude: type: number example: 25.1972 longitude: type: number example: 55.2744 message: type: string example: 'Sort order updated successfully' - description: '' type: object example: data: id: 1 code: APT-101 name: 'Deluxe Ocean View Suite' bedrooms: 2 bathrooms: 1 description: 'Spacious apartment with ocean view and king bed.' capacity: 4 extra_bed_allowed: true extra_bed_price: 2500 base_price: 15000 cleaning_fee: 3000 size_sqm: 45 status: active sort_order: 2 created_at: '2026-09-03T10:00:00.000000Z' updated_at: '2026-09-03T10:00:00.000000Z' features: - 'Ocean View' - Kitchenette amenities: - id: 1 name: Wi-Fi icon: wifi images: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' house_rules: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' additional_rules: - 'Check-in from 3:00 PM' - 'Late checkout available on request' latitude: 25.197197 longitude: 55.274386 message: 'Sort order updated successfully' properties: data: type: object properties: id: type: integer example: 1 code: type: string example: APT-101 name: type: string example: 'Deluxe Ocean View Suite' bedrooms: type: integer example: 2 bathrooms: type: integer example: 1 description: type: string example: 'Spacious apartment with ocean view and king bed.' capacity: type: integer example: 4 extra_bed_allowed: type: boolean example: true extra_bed_price: type: integer example: 2500 base_price: type: integer example: 15000 cleaning_fee: type: integer example: 3000 size_sqm: type: integer example: 45 status: type: string example: active sort_order: type: integer example: 2 created_at: type: string example: '2026-09-03T10:00:00.000000Z' updated_at: type: string example: '2026-09-03T10:00:00.000000Z' features: type: array example: - 'Ocean View' - Kitchenette items: type: string amenities: type: array example: - id: 1 name: Wi-Fi icon: wifi items: type: object properties: id: type: integer example: 1 name: type: string example: Wi-Fi icon: type: string example: wifi images: type: array example: - id: 11 url: 'https://example.com/storage/apartment/1.jpg' alt: 'Living room view' items: type: object properties: id: type: integer example: 11 url: type: string example: 'https://example.com/storage/apartment/1.jpg' alt: type: string example: 'Living room view' house_rules: type: array example: - 'No smoking' - 'Quiet hours from 10 PM to 7 AM' items: type: string additional_rules: type: array example: - 'Check-in from 3:00 PM' - 'Late checkout available on request' items: type: string latitude: type: number example: 25.197197 longitude: type: number example: 55.274386 message: type: string example: 'Sort order updated successfully' tags: - 'Apartment Management' requestBody: required: true content: application/json: schema: type: object properties: sort_order: type: numeric description: 'Display position.' example: '2' required: - sort_order parameters: - in: path name: id description: 'The apartment ID.' example: 1 required: true schema: type: integer /api/v1/admin/audit-logs: get: summary: 'List audit logs' operationId: listAuditLogs description: 'Retrieve a paginated and filterable activity trail of state-changing administrative actions.' parameters: - in: query name: page description: 'Page number for pagination. Must be at least 1.' example: 1 required: false schema: type: integer description: 'Page number for pagination. Must be at least 1.' example: 1 nullable: true - in: query name: per_page description: 'Number of items per page (max 100). Must be at least 1. Must not be greater than 100.' example: 20 required: false schema: type: integer description: 'Number of items per page (max 100). Must be at least 1. Must not be greater than 100.' example: 20 nullable: true - in: query name: entity_type description: 'Filter by entity type (e.g. Booking, Payment, Apartment, Setting, User, ContactInquiry). Must not be greater than 50 characters.' example: Booking required: false schema: type: string description: 'Filter by entity type (e.g. Booking, Payment, Apartment, Setting, User, ContactInquiry). Must not be greater than 50 characters.' example: Booking nullable: true - in: query name: entity_id description: 'Filter by target entity primary key ID. Must be at least 1.' example: 42 required: false schema: type: integer description: 'Filter by target entity primary key ID. Must be at least 1.' example: 42 nullable: true - in: query name: action description: 'Filter by action name in dot notation (e.g. booking.created, booking.cancelled, payment.refunded). Must not be greater than 50 characters.' example: booking.cancelled required: false schema: type: string description: 'Filter by action name in dot notation (e.g. booking.created, booking.cancelled, payment.refunded). Must not be greater than 50 characters.' example: booking.cancelled nullable: true - in: query name: user_id description: 'Filter by ID of the staff user who triggered the action. Must match an existing stored value.' example: 1 required: false schema: type: integer description: 'Filter by ID of the staff user who triggered the action. Must match an existing stored value.' example: 1 nullable: true - in: query name: from description: 'Filter logs created on or after this date (YYYY-MM-DD). Must be a valid date.' example: '2026-09-01' required: false schema: type: string description: 'Filter logs created on or after this date (YYYY-MM-DD). Must be a valid date.' example: '2026-09-01' nullable: true - in: query name: to description: 'Filter logs created on or before this date (YYYY-MM-DD). Must be a valid date. Must be a date after or equal to from.' example: '2026-09-30' required: false schema: type: string description: 'Filter logs created on or before this date (YYYY-MM-DD). Must be a valid date. Must be a date after or equal to from.' example: '2026-09-30' nullable: true responses: 200: description: 'Paginated list of audit logs' content: application/json: schema: type: object example: data: - id: 125 action: apartment.updated entity_type: Booking entity_id: 172 payload: note: 'Animi quos velit et fugiat.' status: confirmed ip_address: 94.84.218.177 user_agent: 'Opera/8.70 (X11; Linux x86_64; sl-SI) Presto/2.10.335 Version/10.00' created_at: '2026-11-03T02:36:18+00:00' user: id: 105 name: 'Miss Pearl Hauck' email: christian51@example.com role: guest - id: 126 action: payment.refunded entity_type: Booking entity_id: 162 payload: note: 'Tempora ex voluptatem laboriosam praesentium quis.' status: confirmed ip_address: 229.175.17.115 user_agent: 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/5332 (KHTML, like Gecko) Chrome/37.0.803.0 Mobile Safari/5332' created_at: '2026-11-03T02:36:18+00:00' user: id: 106 name: 'Creola Torp DDS' email: ashtyn.oconnell@example.com role: guest links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' page: null active: false - url: '/?page=1' label: '1' page: 1 active: true - url: null label: 'Next »' page: null active: false path: / per_page: 20 to: 2 total: 2 properties: data: type: array example: - id: 125 action: apartment.updated entity_type: Booking entity_id: 172 payload: note: 'Animi quos velit et fugiat.' status: confirmed ip_address: 94.84.218.177 user_agent: 'Opera/8.70 (X11; Linux x86_64; sl-SI) Presto/2.10.335 Version/10.00' created_at: '2026-11-03T02:36:18+00:00' user: id: 105 name: 'Miss Pearl Hauck' email: christian51@example.com role: guest - id: 126 action: payment.refunded entity_type: Booking entity_id: 162 payload: note: 'Tempora ex voluptatem laboriosam praesentium quis.' status: confirmed ip_address: 229.175.17.115 user_agent: 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/5332 (KHTML, like Gecko) Chrome/37.0.803.0 Mobile Safari/5332' created_at: '2026-11-03T02:36:18+00:00' user: id: 106 name: 'Creola Torp DDS' email: ashtyn.oconnell@example.com role: guest items: type: object properties: id: type: integer example: 125 action: type: string example: apartment.updated entity_type: type: string example: Booking entity_id: type: integer example: 172 payload: type: object properties: note: type: string example: 'Animi quos velit et fugiat.' status: type: string example: confirmed ip_address: type: string example: 94.84.218.177 user_agent: type: string example: 'Opera/8.70 (X11; Linux x86_64; sl-SI) Presto/2.10.335 Version/10.00' created_at: type: string example: '2026-11-03T02:36:18+00:00' user: type: object properties: id: type: integer example: 105 name: type: string example: 'Miss Pearl Hauck' email: type: string example: christian51@example.com role: type: string example: guest links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null nullable: true next: type: string example: null nullable: true meta: type: object properties: current_page: type: integer example: 1 description: 'Current page number. Example: 1' from: type: integer example: 1 last_page: type: integer example: 1 description: 'Total available pages. Example: 5' links: type: array example: - url: null label: '« Previous' page: null active: false - url: '/?page=1' label: '1' page: 1 active: true - url: null label: 'Next »' page: null active: false items: type: object properties: url: type: string example: null nullable: true label: type: string example: '« Previous' page: type: string example: null nullable: true active: type: boolean example: false path: type: string example: / per_page: type: integer example: 20 description: 'Items per page. Example: 20' to: type: integer example: 2 total: type: integer example: 2 description: 'Total number of matching records. Example: 98' 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. tags: - 'Audit Logs' '/api/v1/admin/audit-logs/{id}': get: summary: 'Show audit log' operationId: showAuditLog description: 'Retrieve full details of a specific audit log entry including its JSON payload and actor.' parameters: [] responses: 200: description: 'Audit log details' content: application/json: schema: type: object example: data: id: 127 action: booking.created entity_type: Booking entity_id: 225 payload: note: 'Nostrum qui commodi incidunt iure.' status: confirmed ip_address: 15.85.150.50 user_agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/3.0)' created_at: '2026-11-03T02:36:19+00:00' user: id: 107 name: 'Carey Smitham' email: sleffler@example.org role: guest properties: data: type: object properties: id: type: integer example: 127 action: type: string example: booking.created entity_type: type: string example: Booking entity_id: type: integer example: 225 payload: type: object properties: note: type: string example: 'Nostrum qui commodi incidunt iure.' status: type: string example: confirmed ip_address: type: string example: 15.85.150.50 user_agent: type: string example: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/3.0)' created_at: type: string example: '2026-11-03T02:36:19+00:00' user: type: object properties: id: type: integer example: 107 name: type: string example: 'Carey Smitham' email: type: string example: sleffler@example.org role: type: string example: guest 401: description: '' content: application/json: schema: type: object example: error: code: unauthenticated message: Unauthenticated. properties: error: type: object properties: code: type: string example: unauthenticated message: type: string example: Unauthenticated. 403: description: '' content: application/json: schema: type: object example: error: code: forbidden message: Forbidden. properties: error: type: object properties: code: type: string example: forbidden message: type: string example: Forbidden. 404: description: '' content: application/json: schema: type: object example: error: code: not_found message: 'No query results for model [App\Models\AuditLog] 999' properties: error: type: object properties: code: type: string example: not_found message: type: string example: 'No query results for model [App\Models\AuditLog] 999' tags: - 'Audit Logs' parameters: - in: path name: id description: 'The unique numeric ID of the audit log.' example: 1 required: true schema: type: integer /api/v1/admin/home: get: summary: 'Show homepage configuration' operationId: showHomepageConfiguration description: 'Returns raw database columns and currently attached media details (ID, URL, alt) for populating dashboard forms.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 hero_eyebrow: 'Downtown Dubai · Luxury Apartments' hero_booking_note: 'By booking, you agree to our terms.' banner_image: id: 11 url: 'http://localhost:8000/storage/media/home-banner.jpg' alt: 'Downtown Dubai skyline at sunset' about_title: "Dubai's Most Trusted Holiday Home Experience" about_description: 'Living Home is a newly established company specializing in holiday home businesses.' about_features: - title: 'Prime Locations' description: "Every residence is handpicked in Dubai's most sought-after neighborhoods." icon_name: pin about_image: id: 12 url: 'http://localhost:8000/storage/media/about.jpg' alt: 'Burj Khalifa in Dubai' commitment_title: 'Discover The Heart Of Destination' commitment_happy_customer_count: 30k commitment_items: - 'Simple & Safe Reservations' commitment_primary_image: id: 13 url: 'http://localhost:8000/storage/media/c1.jpg' alt: 'Living Home apartment' commitment_secondary_image: id: 14 url: 'http://localhost:8000/storage/media/c2.jpg' alt: 'Living Home bedroom' promotions_eyebrow: 'Seasonal Promotions' promotions_title: 'Check the Promotions' promotions_description: 'Every season at our property brings a unique charm...' promotions_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' promotions_banner_image: id: 15 url: 'http://localhost:8000/storage/media/banner.webp' alt: 'Seasonal Promotions in Dubai' amenities_quote: 'Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.' amenities_items: - amenity_id: 1 id: 1 icon: pool title: 'Infinity Pool' text: 'Endless pool, skyline views.' cta_title: 'Book your dream stay in Downtown Dubai today' cta_description: 'Reserve your stay with instant confirmation.' properties: id: type: integer example: 1 hero_eyebrow: type: string example: 'Downtown Dubai · Luxury Apartments' hero_booking_note: type: string example: 'By booking, you agree to our terms.' banner_image: type: object properties: id: type: integer example: 11 url: type: string example: 'http://localhost:8000/storage/media/home-banner.jpg' alt: type: string example: 'Downtown Dubai skyline at sunset' about_title: type: string example: "Dubai's Most Trusted Holiday Home Experience" about_description: type: string example: 'Living Home is a newly established company specializing in holiday home businesses.' about_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 about_image: type: object properties: id: type: integer example: 12 url: type: string example: 'http://localhost:8000/storage/media/about.jpg' alt: type: string example: 'Burj Khalifa in Dubai' commitment_title: type: string example: 'Discover The Heart Of Destination' commitment_happy_customer_count: type: string example: 30k commitment_items: type: array example: - 'Simple & Safe Reservations' items: type: string commitment_primary_image: type: object properties: id: type: integer example: 13 url: type: string example: 'http://localhost:8000/storage/media/c1.jpg' alt: type: string example: 'Living Home apartment' commitment_secondary_image: type: object properties: id: type: integer example: 14 url: type: string example: 'http://localhost:8000/storage/media/c2.jpg' alt: type: string example: 'Living Home bedroom' promotions_eyebrow: type: string example: 'Seasonal Promotions' promotions_title: type: string example: 'Check the Promotions' promotions_description: type: string example: 'Every season at our property brings a unique charm...' promotions_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' promotions_banner_image: type: object properties: id: type: integer example: 15 url: type: string example: 'http://localhost:8000/storage/media/banner.webp' alt: type: string example: 'Seasonal Promotions in Dubai' amenities_quote: type: string example: 'Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.' amenities_items: type: array example: - amenity_id: 1 id: 1 icon: pool title: 'Infinity Pool' text: 'Endless pool, skyline views.' items: type: object properties: amenity_id: type: integer example: 1 id: type: integer example: 1 icon: type: string example: pool title: type: string example: 'Infinity Pool' text: type: string example: 'Endless pool, skyline views.' cta_title: type: string example: 'Book your dream stay in Downtown Dubai today' cta_description: type: string example: 'Reserve your stay with instant confirmation.' tags: - 'CMS Management' post: summary: 'Update homepage configuration' operationId: updateHomepageConfiguration description: "Validates and updates the homepage CMS content. Supports text/JSON parameters,\nabout us image file replacement, primary/secondary commitment images, and seasonal promotions." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 hero_eyebrow: 'Updated Eyebrow' hero_booking_note: 'Updated Note' banner_image: id: 11 url: 'http://localhost:8000/storage/media/home-banner.jpg' alt: 'Downtown Dubai skyline at sunset' about_title: 'Updated About Title' about_description: 'Updated About Description' about_features: - title: 'Prime Locations' description: 'Every residence is handpicked...' icon_name: pin about_image: id: 12 url: 'http://localhost:8000/storage/media/about.jpg' alt: 'Burj Khalifa in Dubai' commitment_title: 'Updated Commitment Title' commitment_happy_customer_count: 50k commitment_items: - 'Simple & Safe Reservations' commitment_primary_image: id: 13 url: 'http://localhost:8000/storage/media/c1.jpg' alt: 'Living Home apartment' commitment_secondary_image: id: 14 url: 'http://localhost:8000/storage/media/c2.jpg' alt: 'Living Home bedroom' promotions_eyebrow: 'Seasonal Promotions' promotions_title: 'Check the Promotions' promotions_description: 'Every season at our property brings a unique charm...' promotions_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' promotions_banner_image: id: 15 url: 'http://localhost:8000/storage/media/banner.webp' alt: 'Seasonal Promotions in Dubai' amenities_quote: 'Updated Amenities Quote' amenities_items: - amenity_id: 1 id: 1 icon: pool title: 'Infinity Pool' text: 'Endless pool, skyline views.' cta_title: 'Updated CTA Title' cta_description: 'Updated CTA Description' properties: id: type: integer example: 1 hero_eyebrow: type: string example: 'Updated Eyebrow' hero_booking_note: type: string example: 'Updated Note' banner_image: type: object properties: id: type: integer example: 11 url: type: string example: 'http://localhost:8000/storage/media/home-banner.jpg' alt: type: string example: 'Downtown Dubai skyline at sunset' about_title: type: string example: 'Updated About Title' about_description: type: string example: 'Updated About Description' about_features: type: array example: - title: 'Prime Locations' description: 'Every residence is handpicked...' icon_name: pin items: type: object properties: title: type: string example: 'Prime Locations' description: type: string example: 'Every residence is handpicked...' icon_name: type: string example: pin about_image: type: object properties: id: type: integer example: 12 url: type: string example: 'http://localhost:8000/storage/media/about.jpg' alt: type: string example: 'Burj Khalifa in Dubai' commitment_title: type: string example: 'Updated Commitment Title' commitment_happy_customer_count: type: string example: 50k commitment_items: type: array example: - 'Simple & Safe Reservations' items: type: string commitment_primary_image: type: object properties: id: type: integer example: 13 url: type: string example: 'http://localhost:8000/storage/media/c1.jpg' alt: type: string example: 'Living Home apartment' commitment_secondary_image: type: object properties: id: type: integer example: 14 url: type: string example: 'http://localhost:8000/storage/media/c2.jpg' alt: type: string example: 'Living Home bedroom' promotions_eyebrow: type: string example: 'Seasonal Promotions' promotions_title: type: string example: 'Check the Promotions' promotions_description: type: string example: 'Every season at our property brings a unique charm...' promotions_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' promotions_banner_image: type: object properties: id: type: integer example: 15 url: type: string example: 'http://localhost:8000/storage/media/banner.webp' alt: type: string example: 'Seasonal Promotions in Dubai' amenities_quote: type: string example: 'Updated Amenities Quote' amenities_items: type: array example: - amenity_id: 1 id: 1 icon: pool title: 'Infinity Pool' text: 'Endless pool, skyline views.' items: type: object properties: amenity_id: type: integer example: 1 id: type: integer example: 1 icon: type: string example: pool title: type: string example: 'Infinity Pool' text: type: string example: 'Endless pool, skyline views.' cta_title: type: string example: 'Updated CTA Title' cta_description: type: string example: 'Updated CTA Description' tags: - 'CMS Management' requestBody: required: false content: application/json: schema: type: object properties: hero_eyebrow: type: string description: 'Eyebrow title text for the hero section.' example: 'Downtown Dubai · Luxury Apartments' nullable: true hero_booking_note: type: string description: 'Footer text shown below the reservation form.' example: 'By booking, you agree to our terms.' nullable: true banner_image: type: object description: 'Details of the hero banner image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 11 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/home-banner.jpg nullable: true alt: type: string description: 'Alt text for the banner image.' example: 'Downtown Dubai skyline at sunset' nullable: true nullable: true about_title: type: string description: 'Primary header for the About Us section.' example: "Dubai's Most Trusted Holiday Home Experience" about_description: type: string description: 'Descriptive body copy for the About Us section.' example: 'Living Home is a newly established company...' about_features: type: array description: 'List of feature highlights with titles, descriptions, and icon class names.' example: - architecto items: type: string commitment_title: type: string description: 'Header for the Our Commitment section.' example: 'Discover The Heart Of Destination' commitment_happy_customer_count: type: string description: 'Counter string for customer satisfaction.' example: 30k commitment_items: type: array description: 'List of bullet point text lines.' example: - 'Simple & Safe Reservations' items: type: string promotions_eyebrow: type: string description: 'Seasonal promotions eyebrow text.' example: 'Seasonal Promotions' nullable: true promotions_title: type: string description: 'Seasonal promotions title.' example: 'Check the Promotions' nullable: true promotions_description: type: string description: 'Seasonal promotions description.' example: 'Every season at our property brings a unique charm...' nullable: true promotions_items: type: array description: 'List of exactly 3 seasonal promotion cards.' example: - architecto items: type: string amenities_quote: type: string description: 'Inspirational quote or highlight text for the amenities section.' example: 'Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.' nullable: true amenities_items: type: array description: 'List of selected amenities with custom promotional copy referencing existing amenity IDs.' example: - architecto items: type: string nullable: true cta_title: type: string description: 'CTA block header.' example: 'Book your dream stay in Downtown Dubai today' cta_description: type: string description: 'CTA block sub-text.' example: 'Reserve your stay with instant confirmation.' about_image: type: object description: 'Details of the about image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 12 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/1234-uuid.png nullable: true alt: type: string description: 'Alt text for the image.' example: 'Burj Khalifa in Dubai' nullable: true nullable: true commitment_primary_image: type: object description: 'Details of the primary commitment image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 13 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/5678-uuid.jpg nullable: true alt: type: string description: 'Alt text for the image.' example: 'Living Home apartment' nullable: true nullable: true commitment_secondary_image: type: object description: 'Details of the secondary commitment image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 14 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/9012-uuid.jpg nullable: true alt: type: string description: 'Alt text for the image.' example: 'Living Home bedroom' nullable: true nullable: true promotions_banner_image: type: object description: 'Details of the seasonal promotions banner image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 15 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/banner-uuid.webp nullable: true alt: type: string description: 'Alt text for the banner image.' example: 'Seasonal Promotions in Dubai' nullable: true nullable: true /api/v1/admin/about-page: get: summary: 'Show about us page configuration' operationId: showAboutUsPageConfiguration description: 'Returns raw database columns and attached media details for dashboard forms.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 hero_overview_description: 'Living Home, officially registered as Living Home Short Vacation Rental L.L.C...' banner_image: id: 50 url: 'http://localhost:8000/storage/media/about-banner.jpg' alt: 'Living Home team in Downtown Dubai' core_value_trust: 'Your trust, our foundation.' core_value_luxury: 'Premium stays, stunning views.' core_value_comfort: 'Rest well, wake refreshed.' core_value_hospitality: 'Warm smiles, genuine care.' mission_vision_subtitle: 'About Us' mission_vision_title: 'Mission & Vision' mission: 'To provide exceptional holiday home experiences...' vision: 'To become one of Dubai’s most trusted...' mission_vision_primary_image: id: 51 url: 'http://localhost:8000/storage/media/living.jpg' alt: 'Luxury living room' mission_vision_secondary_image: id: 52 url: 'http://localhost:8000/storage/media/view.jpg' alt: 'Apartment view' services_subtitle: 'Our services' services_title: 'Everything, taken care of' services_blocks: [] process_step_1: 'Browse our curated list...' process_step_2: 'Quickly verify...' process_step_3: 'Choose your check-in...' process_step_4: 'Confirm your booking...' trusted_subtitle: 'WHY CHOOSE US' trusted_title: 'Trusted Globally' trusted_logos: [] created_at: '2026-09-04T10:00:00.000000Z' updated_at: '2026-09-04T10:00:00.000000Z' properties: id: type: integer example: 1 hero_overview_description: type: string example: 'Living Home, officially registered as Living Home Short Vacation Rental L.L.C...' banner_image: type: object properties: id: type: integer example: 50 url: type: string example: 'http://localhost:8000/storage/media/about-banner.jpg' alt: type: string example: 'Living Home team in Downtown Dubai' core_value_trust: type: string example: 'Your trust, our foundation.' core_value_luxury: type: string example: 'Premium stays, stunning views.' core_value_comfort: type: string example: 'Rest well, wake refreshed.' core_value_hospitality: type: string example: 'Warm smiles, genuine care.' mission_vision_subtitle: type: string example: 'About Us' mission_vision_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...' mission_vision_primary_image: type: object properties: id: type: integer example: 51 url: type: string example: 'http://localhost:8000/storage/media/living.jpg' alt: type: string example: 'Luxury living room' mission_vision_secondary_image: type: object properties: id: type: integer example: 52 url: type: string example: 'http://localhost:8000/storage/media/view.jpg' alt: type: string example: 'Apartment view' services_subtitle: type: string example: 'Our services' services_title: type: string example: 'Everything, taken care of' services_blocks: type: array example: [] process_step_1: type: string example: 'Browse our curated list...' process_step_2: type: string example: 'Quickly verify...' process_step_3: type: string example: 'Choose your check-in...' process_step_4: type: string example: 'Confirm your booking...' trusted_subtitle: type: string example: 'WHY CHOOSE US' trusted_title: type: string example: 'Trusted Globally' trusted_logos: type: array example: [] created_at: type: string example: '2026-09-04T10:00:00.000000Z' updated_at: type: string example: '2026-09-04T10:00:00.000000Z' tags: - 'CMS Management' post: summary: 'Update about us page configuration' operationId: updateAboutUsPageConfiguration description: 'Validates and updates the about us CMS page and its media assets.' parameters: [] responses: {} tags: - 'CMS Management' requestBody: required: false content: application/json: schema: type: object properties: hero_overview_description: type: string description: 'Hero overview text.' example: 'Living Home, officially registered...' banner_image: type: object description: 'Details of the hero banner image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 50 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/about-banner.jpg nullable: true alt: type: string description: 'Alt text for the banner image.' example: 'Living Home team in Downtown Dubai' nullable: true nullable: true core_value_trust: type: string description: 'Trust value copy.' example: 'Your trust, our foundation.' core_value_luxury: type: string description: 'Luxury value copy.' example: 'Premium stays, stunning views.' core_value_comfort: type: string description: 'Comfort value copy.' example: 'Rest well, wake refreshed.' core_value_hospitality: type: string description: 'Hospitality value copy.' example: 'Warm smiles, genuine care.' mission_vision_subtitle: type: string description: 'Subtitle for mission & vision.' example: 'About Us' mission_vision_title: type: string description: 'Title for mission & vision.' example: 'Mission & Vision' mission: type: string description: 'Mission copy.' example: 'To provide exceptional holiday home experiences...' vision: type: string description: 'Vision copy.' example: 'To become one of Dubai’s most trusted...' mission_vision_primary_image: type: object description: 'Primary image upload payload. Nullable.' example: [] properties: id: type: integer description: 'Existing media ID to preserve.' example: 51 nullable: true temp_path: type: string description: 'Temp upload path.' example: tmp/uuid.jpg nullable: true alt: type: string description: 'Image alternative text.' example: 'Luxury living room' nullable: true nullable: true mission_vision_secondary_image: type: object description: 'Secondary image upload payload. Nullable.' example: [] properties: id: type: integer description: 'Existing media ID to preserve.' example: 52 nullable: true temp_path: type: string description: 'Temp upload path.' example: tmp/uuid2.jpg nullable: true alt: type: string description: 'Image alternative text.' example: 'Apartment view' nullable: true nullable: true services_subtitle: type: string description: 'Services subtitle.' example: 'Our services' services_title: type: string description: 'Services title.' example: 'Everything, taken care of' services_blocks: type: array description: 'List of service blocks.' example: [] items: type: string process_step_1: type: string description: 'Step 1 text.' example: 'Browse our curated list...' process_step_2: type: string description: 'Step 2 text.' example: 'Quickly verify...' process_step_3: type: string description: 'Step 3 text.' example: 'Choose your check-in...' process_step_4: type: string description: 'Step 4 text.' example: 'Confirm your booking...' trusted_subtitle: type: string description: 'Why choose us subtitle.' example: 'WHY CHOOSE US' trusted_title: type: string description: 'Trusted globally title.' example: 'Trusted Globally' trusted_logos: type: array description: 'List of partner logo objects to attach or update.' example: - [] items: type: object properties: name: type: string description: 'Partner name.' example: 'Partner 1' temp_path: type: string description: 'Temporary upload path from the media upload endpoint (e.g. `tmp/...`). Required when uploading a new partner logo.' example: tmp/partner_logo.png nullable: true id: type: integer description: 'ID of existing media record to preserve. Nullable.' example: 60 nullable: true logo_url: type: string description: 'Existing logo URL when preserving without re-uploading. Nullable.' example: 'http://localhost:8000/storage/media/partner.png' nullable: true required: - name /api/v1/admin/apartment-page: get: summary: 'Show apartments page configuration' operationId: showApartmentsPageConfiguration description: 'Returns the editable title and attached banner media details for the apartments listing page.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 hero_title: 'Find Your Perfect Stay in Dubai' banner_image: id: 70 url: 'http://localhost:8000/storage/media/apartment-banner.jpg' alt: 'Luxury apartments in Downtown Dubai' created_at: '2026-11-05T10:00:00.000000Z' updated_at: '2026-11-05T10:00:00.000000Z' properties: id: type: integer example: 1 hero_title: type: string example: 'Find Your Perfect Stay in Dubai' banner_image: type: object properties: id: type: integer example: 70 url: type: string example: 'http://localhost:8000/storage/media/apartment-banner.jpg' alt: type: string example: 'Luxury apartments in Downtown Dubai' created_at: type: string example: '2026-11-05T10:00:00.000000Z' updated_at: type: string example: '2026-11-05T10:00:00.000000Z' tags: - 'CMS Management' post: summary: 'Update apartments page configuration' operationId: updateApartmentsPageConfiguration description: 'Validates and updates the apartments listing page title and hero banner image.' parameters: [] responses: {} tags: - 'CMS Management' requestBody: required: false content: application/json: schema: type: object properties: hero_title: type: string description: 'Title displayed in the apartments page hero section.' example: 'Find Your Perfect Stay in Dubai' banner_image: type: object description: 'Details of the hero banner image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 70 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/apartment-banner.jpg nullable: true alt: type: string description: 'Alt text for the banner image.' example: 'Luxury apartments in Downtown Dubai' nullable: true nullable: true /api/v1/admin/contact-page: get: summary: 'Show contact page configuration' operationId: showContactPageConfiguration description: 'Returns raw database columns and currently attached partnership media details (ID, URL, alt) for dashboard forms.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 hero_description: 'Our concierge team is here around the clock...' banner_image: id: 60 url: 'http://localhost:8000/storage/media/contact-banner.jpg' alt: 'Concierge desk' contact_address: 'Room 1004, B2B Tower, Business Bay, Dubai, United Arab Emirates' contact_phone_numbers: - '+971 528199289' - '+971 588438715' contact_email: holidayhome@happylivinghome.com contact_working_hours: '24/7 concierge & guest support' contact_social_links: facebook: 'https://facebook.com/livinghome' instagram: 'https://instagram.com/livinghome' tiktok: 'https://tiktok.com/@livinghome' linkedin: 'https://linkedin.com/company/livinghome' partnership_description: 'Lorem Ipsum is simply dummy text...' partnership_phone_numbers: - '+971 123456789' - '+971 987654321' partnership_email: mypartnership@gmail.com partnership_image: id: 15 url: 'http://localhost:8000/storage/media/partner.jpg' alt: 'Partnership Hero Image' map_latitude: 25.2355 map_longitude: 55.3003 created_at: '2026-09-02T10:00:00.000000Z' updated_at: '2026-09-02T10:00:00.000000Z' properties: id: type: integer example: 1 hero_description: type: string example: 'Our concierge team is here around the clock...' banner_image: type: object properties: id: type: integer example: 60 url: type: string example: 'http://localhost:8000/storage/media/contact-banner.jpg' alt: type: string example: 'Concierge desk' contact_address: type: string example: 'Room 1004, B2B Tower, Business Bay, Dubai, United Arab Emirates' contact_phone_numbers: type: array example: - '+971 528199289' - '+971 588438715' items: type: string contact_email: type: string example: holidayhome@happylivinghome.com contact_working_hours: type: string example: '24/7 concierge & guest support' contact_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_description: type: string example: 'Lorem Ipsum is simply dummy text...' partnership_phone_numbers: type: array example: - '+971 123456789' - '+971 987654321' items: type: string partnership_email: type: string example: mypartnership@gmail.com partnership_image: type: object properties: id: type: integer example: 15 url: type: string example: 'http://localhost:8000/storage/media/partner.jpg' alt: type: string example: 'Partnership Hero Image' map_latitude: type: number example: 25.2355 map_longitude: type: number example: 55.3003 created_at: type: string example: '2026-09-02T10:00:00.000000Z' updated_at: type: string example: '2026-09-02T10:00:00.000000Z' tags: - 'CMS Management' post: summary: 'Update contact page configuration' operationId: updateContactPageConfiguration description: 'Validates and updates the contact page CMS content and partnership image.' parameters: [] responses: {} tags: - 'CMS Management' requestBody: required: false content: application/json: schema: type: object properties: hero_description: type: string description: 'Hero subtitle copy.' example: 'Our concierge team is here around the clock...' banner_image: type: object description: 'Details of the hero banner image. Nullable to clear image.' example: [] properties: id: type: integer description: 'ID of existing image to keep.' example: 60 nullable: true temp_path: type: string description: 'Temp path of newly uploaded image.' example: tmp/contact-banner.jpg nullable: true alt: type: string description: 'Alt text for the banner image.' example: 'Concierge desk' nullable: true nullable: true contact_address: type: string description: 'Physical office address.' example: 'Room 1004, B2B Tower, Business Bay, Dubai' contact_phone_numbers: type: array description: 'List of support phone numbers.' example: - '+971 528199289' items: type: string contact_email: type: string description: 'Concierge email address.' example: holidayhome@happylivinghome.com contact_working_hours: type: string description: 'Hours copy.' example: '24/7 concierge & guest support' contact_social_links: type: object description: 'Social media links.' example: facebook: 'https://facebook.com/livinghome' properties: facebook: type: string description: 'Must not be greater than 255 characters.' example: k nullable: true instagram: type: string description: 'Must not be greater than 255 characters.' example: h nullable: true tiktok: type: string description: 'Must not be greater than 255 characters.' example: w nullable: true linkedin: type: string description: 'Must not be greater than 255 characters.' example: a nullable: true nullable: true partnership_description: type: string description: 'Partnership pitch text.' example: 'Lorem Ipsum is simply dummy text...' partnership_phone_numbers: type: array description: 'Partnership phone numbers.' example: - '+971 123456789' items: type: string partnership_email: type: string description: 'Partnership email address.' example: mypartnership@gmail.com partnership_image: type: object description: 'Partnership image upload or replacement payload. Nullable.' example: [] properties: id: type: integer description: 'Existing media ID to preserve.' example: 15 nullable: true temp_path: type: string description: 'Temp upload path.' example: tmp/abcd-uuid.jpg nullable: true alt: type: string description: 'Image alternative text.' example: 'Partnership Hero Image' nullable: true nullable: true map_latitude: type: number description: 'Latitude coordinate.' example: 25.2355 map_longitude: type: number description: 'Longitude coordinate.' example: 55.3003 /api/v1/admin/privacy-policy: get: summary: 'Show privacy policy configuration' operationId: showPrivacyPolicyConfiguration description: 'Returns raw database columns for privacy policy dashboard editor.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 privacy_policy: '

Privacy Policy

...' share_information: '

Information Sharing

...' cookies_tracking: '

Cookies & Tracking

...' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' properties: id: type: integer example: 1 privacy_policy: type: string example: '

Privacy Policy

...' share_information: type: string example: '

Information Sharing

...' cookies_tracking: type: string example: '

Cookies & Tracking

...' created_at: type: string example: '2026-09-25T11:00:00.000000Z' updated_at: type: string example: '2026-09-25T11:00:00.000000Z' tags: - 'CMS Management' post: summary: 'Update privacy policy configuration' operationId: updatePrivacyPolicyConfiguration description: 'Validates and updates the rich text privacy policy sections.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 1 privacy_policy: '

Privacy Policy

...' share_information: '

Information Sharing

...' cookies_tracking: '

Cookies & Tracking

...' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' properties: id: type: integer example: 1 privacy_policy: type: string example: '

Privacy Policy

...' share_information: type: string example: '

Information Sharing

...' cookies_tracking: type: string example: '

Cookies & Tracking

...' created_at: type: string example: '2026-09-25T11:00:00.000000Z' updated_at: type: string example: '2026-09-25T11:00:00.000000Z' tags: - 'CMS Management' requestBody: required: true content: application/json: schema: type: object properties: privacy_policy: type: string description: 'Rich text HTML for privacy policy.' example: '

Privacy Policy

Our commitment...

' share_information: type: string description: 'Rich text HTML for info sharing.' example: '

Information Sharing

We do not share data...

' cookies_tracking: type: string description: 'Rich text HTML for cookies policy.' example: '

Cookies & Tracking

We use essential cookies...

' required: - privacy_policy - share_information - cookies_tracking /api/v1/admin/cancellation-policy: get: summary: 'Show cancellation policies configuration' operationId: showCancellationPoliciesConfiguration description: 'Returns all configured cancellation policies for the dashboard editor.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1 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.' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' properties: data: type: array example: - id: 1 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.' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' items: type: object properties: id: type: integer example: 1 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 created_at: type: string example: '2026-09-25T11:00:00.000000Z' updated_at: type: string example: '2026-09-25T11:00:00.000000Z' tags: - 'CMS Management' post: summary: 'Update cancellation policies configuration' operationId: updateCancellationPoliciesConfiguration description: 'Validates and replaces the cancellation policies list in the CMS.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 1 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.' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' properties: data: type: array example: - id: 1 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.' created_at: '2026-09-25T11:00:00.000000Z' updated_at: '2026-09-25T11:00:00.000000Z' items: type: object properties: id: type: integer example: 1 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 created_at: type: string example: '2026-09-25T11:00:00.000000Z' updated_at: type: string example: '2026-09-25T11:00:00.000000Z' tags: - 'CMS Management' requestBody: required: true content: application/json: schema: type: object properties: data: type: array description: 'List of cancellation policies.' example: - [] items: type: object properties: title: type: string description: 'Title of policy.' example: 'Refundable booking policy' details: type: array description: 'Array of policy conditions.' example: - 'The guests can cancel free of charge until 1 day before arrival.' items: type: string required: - title - details required: - data /api/v1/admin/inquiries: get: summary: 'List inquiries' operationId: listInquiries description: 'Retrieve all contact inquiries with pagination, searching, and status filtering.' parameters: - in: query name: page description: 'Page number.' example: 1 required: false schema: type: integer description: 'Page number.' example: 1 nullable: true - in: query name: per_page description: 'Items per page (max 100).' example: 20 required: false schema: type: integer description: 'Items per page (max 100).' example: 20 nullable: true - in: query name: search description: 'Match name, email, phone, or message content.' example: john required: false schema: type: string description: 'Match name, email, phone, or message content.' example: john nullable: true - in: query name: status description: 'Filter by status (unread, read, replied, archived).' example: unread required: false schema: type: string description: 'Filter by status (unread, read, replied, archived).' example: unread nullable: true responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 21 full_name: 'Ms. Audra Crooks II' email: gulgowski.asia@example.com phone: 334-682-8182 message: 'Aut adipisci quidem nostrum qui commodi incidunt iure. Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.' status: unread ip_address: 158.16.197.2 user_agent: 'Opera/8.56 (Windows NT 6.0; nl-NL) Presto/2.10.287 Version/10.00' created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' - id: 22 full_name: 'Mr. Madisen Schaden' email: colt.balistreri@example.net phone: +1-380-698-8637 message: 'Laboriosam est alias tenetur ratione. Voluptate accusamus ut et recusandae. Rerum ex repellendus assumenda et.' status: unread ip_address: 148.184.240.135 user_agent: 'Mozilla/5.0 (Windows NT 5.0; en-US; rv:1.9.1.20) Gecko/20210912 Firefox/35.0' created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' properties: data: type: array example: - id: 21 full_name: 'Ms. Audra Crooks II' email: gulgowski.asia@example.com phone: 334-682-8182 message: 'Aut adipisci quidem nostrum qui commodi incidunt iure. Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.' status: unread ip_address: 158.16.197.2 user_agent: 'Opera/8.56 (Windows NT 6.0; nl-NL) Presto/2.10.287 Version/10.00' created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' - id: 22 full_name: 'Mr. Madisen Schaden' email: colt.balistreri@example.net phone: +1-380-698-8637 message: 'Laboriosam est alias tenetur ratione. Voluptate accusamus ut et recusandae. Rerum ex repellendus assumenda et.' status: unread ip_address: 148.184.240.135 user_agent: 'Mozilla/5.0 (Windows NT 5.0; en-US; rv:1.9.1.20) Gecko/20210912 Firefox/35.0' created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' items: type: object properties: id: type: integer example: 21 full_name: type: string example: 'Ms. Audra Crooks II' email: type: string example: gulgowski.asia@example.com phone: type: string example: 334-682-8182 message: type: string example: 'Aut adipisci quidem nostrum qui commodi incidunt iure. Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.' status: type: string example: unread ip_address: type: string example: 158.16.197.2 user_agent: type: string example: 'Opera/8.56 (Windows NT 6.0; nl-NL) Presto/2.10.287 Version/10.00' created_at: type: string example: '2026-11-03T02:36:17+00:00' updated_at: type: string example: '2026-11-03T02:36:17+00:00' tags: - 'Contact Inquiry Management' '/api/v1/admin/inquiries/{inquiry_id}': get: summary: 'View inquiry details' operationId: viewInquiryDetails description: 'Retrieve single contact inquiry details.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: inquiry: id: 23 full_name: 'Morgan Hirthe' email: dare.emelie@example.com phone: '+14324666067' message: 'Enim non facere tempora ex voluptatem laboriosam praesentium. Adipisci molestias fugit deleniti distinctio eum doloremque id. Libero aliquam veniam corporis dolorem mollitia deleniti.' status: unread ip_address: 180.74.114.97 user_agent: 'Mozilla/5.0 (iPad; CPU OS 7_0_1 like Mac OS X; en-US) AppleWebKit/535.34.5 (KHTML, like Gecko) Version/3.0.5 Mobile/8B112 Safari/6535.34.5' created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' properties: inquiry: type: object properties: id: type: integer example: 23 full_name: type: string example: 'Morgan Hirthe' email: type: string example: dare.emelie@example.com phone: type: string example: '+14324666067' message: type: string example: 'Enim non facere tempora ex voluptatem laboriosam praesentium. Adipisci molestias fugit deleniti distinctio eum doloremque id. Libero aliquam veniam corporis dolorem mollitia deleniti.' status: type: string example: unread ip_address: type: string example: 180.74.114.97 user_agent: type: string example: 'Mozilla/5.0 (iPad; CPU OS 7_0_1 like Mac OS X; en-US) AppleWebKit/535.34.5 (KHTML, like Gecko) Version/3.0.5 Mobile/8B112 Safari/6535.34.5' created_at: type: string example: '2026-11-03T02:36:17+00:00' updated_at: type: string example: '2026-11-03T02:36:17+00:00' tags: - 'Contact Inquiry Management' delete: summary: 'Delete inquiry' operationId: deleteInquiry description: 'Remove an inquiry record permanently.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: message: 'Inquiry deleted successfully!' properties: message: type: string example: 'Inquiry deleted successfully!' tags: - 'Contact Inquiry Management' parameters: - in: path name: inquiry_id description: 'The ID of the inquiry.' example: 1 required: true schema: type: integer - in: path name: inquiry description: 'The ID of the inquiry.' example: 1 required: true schema: type: integer '/api/v1/admin/inquiries/{inquiry_id}/status': patch: summary: 'Update inquiry status' operationId: updateInquiryStatus description: 'Update the workflow status of an inquiry (e.g. unread, read, replied, archived).' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: inquiry: id: 24 full_name: 'Morgan Hirthe' email: dare.emelie@example.com phone: '+14324666067' message: 'Enim non facere tempora ex voluptatem laboriosam praesentium. Adipisci molestias fugit deleniti distinctio eum doloremque id. Libero aliquam veniam corporis dolorem mollitia deleniti.' status: unread ip_address: 180.74.114.97 user_agent: 'Mozilla/5.0 (iPad; CPU OS 7_0_1 like Mac OS X; en-US) AppleWebKit/535.34.5 (KHTML, like Gecko) Version/3.0.5 Mobile/8B112 Safari/6535.34.5' created_at: '2026-11-03T02:36:18+00:00' updated_at: '2026-11-03T02:36:18+00:00' properties: inquiry: type: object properties: id: type: integer example: 24 full_name: type: string example: 'Morgan Hirthe' email: type: string example: dare.emelie@example.com phone: type: string example: '+14324666067' message: type: string example: 'Enim non facere tempora ex voluptatem laboriosam praesentium. Adipisci molestias fugit deleniti distinctio eum doloremque id. Libero aliquam veniam corporis dolorem mollitia deleniti.' status: type: string example: unread ip_address: type: string example: 180.74.114.97 user_agent: type: string example: 'Mozilla/5.0 (iPad; CPU OS 7_0_1 like Mac OS X; en-US) AppleWebKit/535.34.5 (KHTML, like Gecko) Version/3.0.5 Mobile/8B112 Safari/6535.34.5' created_at: type: string example: '2026-11-03T02:36:18+00:00' updated_at: type: string example: '2026-11-03T02:36:18+00:00' tags: - 'Contact Inquiry Management' requestBody: required: true content: application/json: schema: type: object properties: status: type: string description: 'Workflow status of the inquiry (unread, read, replied, archived).' example: replied enum: - unread - read - replied - archived required: - status parameters: - in: path name: inquiry_id description: 'The ID of the inquiry.' example: 1 required: true schema: type: integer - in: path name: inquiry description: 'The ID of the inquiry.' example: 1 required: true schema: type: integer /api/v1/admin/customers: get: summary: 'List customers' operationId: listCustomers description: 'Retrieve all customer accounts (guests) with pagination and filtering.' parameters: - in: query name: page description: 'Page number.' example: 1 required: false schema: type: integer description: 'Page number.' example: 1 - in: query name: per_page description: 'Items per page (max 100).' example: 20 required: false schema: type: integer description: 'Items per page (max 100).' example: 20 - in: query name: search description: 'Match customer name, email, or phone.' example: john required: false schema: type: string description: 'Match customer name, email, or phone.' example: john - in: query name: status description: 'Filter by customer status (active, inactive, suspended).' example: active required: false schema: type: string description: 'Filter by customer status (active, inactive, suspended).' example: active responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 94 name: 'Ms. Elisabeth Okuneva' email: gulgowski.asia@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' - id: 95 name: 'Jermaine Tillman' email: mya96@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' properties: data: type: array example: - id: 94 name: 'Ms. Elisabeth Okuneva' email: gulgowski.asia@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' - id: 95 name: 'Jermaine Tillman' email: mya96@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:17+00:00' updated_at: '2026-11-03T02:36:17+00:00' items: type: object properties: id: type: integer example: 94 name: type: string example: 'Ms. Elisabeth Okuneva' 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 google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:17+00:00' updated_at: type: string example: '2026-11-03T02:36:17+00:00' tags: - 'Customer Management' requestBody: required: false content: application/json: schema: type: object properties: page: type: integer description: 'Must be at least 1.' example: 16 nullable: true per_page: type: integer description: 'Must be at least 1. Must not be greater than 100.' example: 22 nullable: true search: type: string description: 'Must not be greater than 100 characters.' example: g nullable: true status: type: string description: '' example: architecto enum: - active - inactive - suspended nullable: true post: summary: 'Create customer' operationId: createCustomer description: 'Create a new guest customer account.' parameters: [] responses: 201: description: '' content: application/json: schema: type: object example: user: id: 103 name: 'Ms. Audra Crooks II' email: leo34@example.net phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:18+00:00' updated_at: '2026-11-03T02:36:18+00:00' properties: user: type: object properties: id: type: integer example: 103 name: type: string example: 'Ms. Audra Crooks II' email: type: string example: leo34@example.net phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18+00:00' updated_at: type: string example: '2026-11-03T02:36:18+00:00' tags: - 'Customer Management' requestBody: required: true content: application/json: schema: type: object properties: name: type: string description: 'The full name of the customer. Must not be greater than 255 characters.' example: 'John Doe' email: type: string description: 'Unique email address of the customer. Must be a valid email address. Must not be greater than 255 characters.' example: john.doe@example.com phone: type: string description: 'Optional contact phone number in E.164 format. Must not be greater than 20 characters.' example: '+971501234567' nullable: true status: type: string description: 'Account status (active, inactive, suspended). Defaults to active.' example: active enum: - active - inactive - suspended avatar_temp_path: type: string description: 'Optional temporary path for the uploaded avatar image. Must start with one of tmp/.' example: tmp/1234-uuid.jpg nullable: true required: - name - email '/api/v1/admin/customers/{user_id}/status': patch: summary: 'Update customer status' operationId: updateCustomerStatus description: 'Update the status of a specific customer account (e.g., suspend or reactivate).' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: user: id: 104 name: 'Ms. Elisabeth Okuneva' email: pfritsch@example.com phone: null role: guest status: active google_sub: null avatar_url: null created_at: '2026-11-03T02:36:18+00:00' updated_at: '2026-11-03T02:36:18+00:00' properties: user: type: object properties: id: type: integer example: 104 name: type: string example: 'Ms. Elisabeth Okuneva' email: type: string example: pfritsch@example.com phone: type: string example: null nullable: true role: type: string example: guest status: type: string example: active google_sub: type: string example: null nullable: true avatar_url: type: string example: null nullable: true created_at: type: string example: '2026-11-03T02:36:18+00:00' updated_at: type: string example: '2026-11-03T02:36:18+00:00' tags: - 'Customer Management' requestBody: required: true content: application/json: schema: type: object properties: status: type: string description: '' example: architecto enum: - active - inactive - suspended required: - status parameters: - in: path name: user_id description: 'The ID of the user.' example: 1 required: true schema: type: integer - in: path name: user description: 'The ID of the customer.' example: 4 required: true schema: type: integer /api/v1/admin/dashboard: get: summary: 'Get dashboard summary data' operationId: getDashboardSummaryData description: '' parameters: [] responses: 200: description: '' content: text/plain: schema: type: string example: "{\n \"kpis\": {...},\n \"charts\": {...},\n \"tables\": {...}\n}" tags: - Endpoints /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/admin/payments: get: summary: 'List payments' operationId: listPayments description: "All payment records (Paymob + cash) with a Paymob dashboard link-out\nfor online transactions (A7)." parameters: - in: query name: status description: 'Filter by payment status.' example: succeeded required: false schema: type: string description: 'Filter by payment status.' example: succeeded nullable: true - in: query name: provider description: 'Filter by provider.' example: paymob required: false schema: type: string description: 'Filter by provider.' example: paymob nullable: true - in: query name: from description: 'date Payments created on or after this date.' example: '2026-08-01' required: false schema: type: string description: 'date Payments created on or after this date.' example: '2026-08-01' nullable: true - in: query name: to description: 'date Payments created on or before this date.' example: '2026-08-31' required: false schema: type: string description: 'date Payments created on or before this date.' example: '2026-08-31' nullable: true - in: query name: search description: 'Match booking code or Paymob transaction id.' example: BK-2026 required: false schema: type: string description: 'Match booking code or Paymob transaction id.' example: BK-2026 nullable: true - in: query name: page description: 'Page number.' example: 1 required: false schema: type: integer description: 'Page number.' example: 1 nullable: true - in: query name: per_page description: 'Items per page (max 100).' example: 20 required: false schema: type: integer description: 'Items per page (max 100).' example: 20 nullable: true responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Payment Dashboard' post: summary: 'Create payment' operationId: createPayment description: 'Standalone endpoint to record a manual payment for a booking.' parameters: [] responses: {} tags: - 'Payment Dashboard' requestBody: required: true content: application/json: schema: type: object properties: booking_id: type: integer description: 'The ID of the booking.' example: 1 amount: type: number description: 'Payment amount in AED (e.g. 500.00).' example: 500.0 provider: type: string description: 'Payment method/provider (e.g. cash, card, bank_transfer, pos, other).' example: cash nullable: true currency: type: string description: '3-letter currency code.' example: AED nullable: true paid_at: type: string description: 'Timestamp when payment occurred.' example: '2026-08-27 14:00:00' nullable: true notes: type: string description: 'Optional notes or transaction reference.' example: 'POS receipt #1234' nullable: true required: - booking_id - amount '/api/v1/admin/bookings/{id}/payments': post: summary: 'Record payment for a booking' operationId: recordPaymentForABooking description: "Collect cash, POS card terminal, bank transfer, or other manual payments against\nan existing booking. Handles full payment, partial deposit, or remaining balance." parameters: [] responses: {} tags: - 'Payment Dashboard' requestBody: required: true content: application/json: schema: type: object properties: booking_id: type: integer description: 'The ID of the booking (required if not specified in route URL). Must match an existing stored value.' example: 1 amount: type: number description: 'Payment amount in AED (e.g. 500.00).' example: 500.0 provider: type: string description: 'Payment method/provider (e.g. cash, card, bank_transfer, pos, other).' example: cash nullable: true currency: type: string description: '3-letter currency code.' example: AED nullable: true paid_at: type: string description: 'Timestamp when payment occurred.' example: '2026-08-27 14:00:00' nullable: true notes: type: string description: 'Optional notes or transaction reference.' example: 'POS receipt #1234' nullable: true required: - booking_id - amount parameters: - in: path name: id description: 'The ID of the booking.' example: 1 required: true schema: type: integer '/api/v1/admin/payments/{id}/refund': post: summary: 'Refund a payment' operationId: refundAPayment description: "Full refund via Paymob (A7/D11). Also the retry path when an automatic\ncancellation refund failed at the gateway." parameters: [] responses: {} tags: - 'Payment Dashboard' requestBody: required: false content: application/json: schema: type: object properties: reason: type: string description: 'Reason recorded on the refund.' example: 'Guest cancelled' parameters: - in: path name: id description: 'The ID of the payment.' example: 1 required: true schema: type: integer /api/v1/admin/payments/failed-callbacks: get: summary: 'List failed payment callback jobs' operationId: listFailedPaymentCallbackJobs description: 'Returns a list of failed Paymob callback background jobs from the failed_jobs queue table.' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Payment Dashboard' '/api/v1/admin/payments/failed-callbacks/{id}/retry': post: summary: 'Retry a failed payment callback job' operationId: retryAFailedPaymentCallbackJob description: 'Manually triggers a retry for a failed Paymob callback job by its ID.' parameters: [] responses: {} tags: - 'Payment Dashboard' parameters: - in: path name: id description: 'The ID of the failed callback.' example: architecto required: true schema: type: string /api/v1/admin/services: get: summary: 'List additional services' operationId: listAdditionalServices description: 'Retrieve all additional services ordered by their sort order.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 19 code: SVC-880 name: 'adipisci quidem' description: 'Qui commodi incidunt iure odit.' price: 50 per_night: false active: true sort_order: 0 - id: 20 code: SVC-234 name: 'et modi' description: 'Nostrum omnis autem et consequatur aut.' price: 50 per_night: false active: true sort_order: 0 properties: data: type: array example: - id: 19 code: SVC-880 name: 'adipisci quidem' description: 'Qui commodi incidunt iure odit.' price: 50 per_night: false active: true sort_order: 0 - id: 20 code: SVC-234 name: 'et modi' description: 'Nostrum omnis autem et consequatur aut.' price: 50 per_night: false active: true sort_order: 0 items: type: object properties: id: type: integer example: 19 code: type: string example: SVC-880 name: type: string example: 'adipisci quidem' description: type: string example: 'Qui commodi incidunt iure odit.' price: type: integer example: 50 per_night: type: boolean example: false active: type: boolean example: true sort_order: type: integer example: 0 tags: - 'Service Management' post: summary: 'Create an additional service' operationId: createAnAdditionalService description: '' parameters: [] responses: 201: description: 'Additional service created' content: application/json: schema: type: object example: data: id: 24 code: SVC-229 name: 'accusantium harum' description: 'Modi deserunt aut ab provident perspiciatis.' price: 50 per_night: false active: true sort_order: 0 message: 'Additional service created successfully.' properties: data: type: object properties: id: type: integer example: 24 code: type: string example: SVC-229 name: type: string example: 'accusantium harum' description: type: string example: 'Modi deserunt aut ab provident perspiciatis.' price: type: integer example: 50 per_night: type: boolean example: false active: type: boolean example: true sort_order: type: integer example: 0 message: type: string example: 'Additional service created successfully.' tags: - 'Service Management' requestBody: required: true content: application/json: schema: type: object properties: code: type: string description: 'Unique service code.' example: airport_transfer name: type: string description: 'Display name.' example: 'Airport transfer' description: type: string description: 'Description of the service.' example: 'Private airport transfer' nullable: true price: type: integer description: 'Price in the smallest currency unit.' example: 15000 per_night: type: boolean description: 'Whether the price is charged per night.' example: false active: type: boolean description: 'Whether the service is available for booking.' example: true required: - code - name - price '/api/v1/admin/services/{service_id}': get: summary: 'Get an additional service' operationId: getAnAdditionalService description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 21 code: SVC-724 name: 'quidem nostrum' description: 'Commodi incidunt iure odit.' price: 50 per_night: false active: true sort_order: 0 properties: data: type: object properties: id: type: integer example: 21 code: type: string example: SVC-724 name: type: string example: 'quidem nostrum' description: type: string example: 'Commodi incidunt iure odit.' price: type: integer example: 50 per_night: type: boolean example: false active: type: boolean example: true sort_order: type: integer example: 0 tags: - 'Service Management' parameters: - in: path name: service_id description: 'The ID of the service.' example: 1 required: true schema: type: integer - in: path name: service description: 'The service ID.' example: 1 required: true schema: type: integer '/api/v1/admin/services/{id}': put: summary: 'Update an additional service' operationId: updateAnAdditionalService description: '' parameters: [] responses: 200: description: 'Additional service updated' content: application/json: schema: type: object example: data: id: 25 code: SVC-643 name: 'harum mollitia' description: 'Deserunt aut ab provident perspiciatis quo omnis nostrum.' price: 50 per_night: false active: true sort_order: 0 message: 'Additional service updated successfully.' properties: data: type: object properties: id: type: integer example: 25 code: type: string example: SVC-643 name: type: string example: 'harum mollitia' description: type: string example: 'Deserunt aut ab provident perspiciatis quo omnis nostrum.' price: type: integer example: 50 per_night: type: boolean example: false active: type: boolean example: true sort_order: type: integer example: 0 message: type: string example: 'Additional service updated successfully.' tags: - 'Service Management' requestBody: required: false content: application/json: schema: type: object properties: code: type: string description: 'Unique service code.' example: airport_transfer name: type: string description: 'Display name.' example: 'Airport transfer' description: type: string description: 'Description of the service.' example: 'Private airport transfer' nullable: true price: type: integer description: 'Price in the smallest currency unit.' example: 15000 per_night: type: boolean description: 'Whether the price is charged per night.' example: false active: type: boolean description: 'Whether the service is available for booking.' example: true delete: summary: 'Delete an additional service' operationId: deleteAnAdditionalService description: '' parameters: [] responses: 204: description: '' content: application/json: schema: type: object example: {} properties: {} tags: - 'Service Management' parameters: - in: path name: id description: 'The ID of the service.' example: 1 required: true schema: type: integer - in: path name: service description: 'The service ID.' example: 1 required: true schema: type: integer '/api/v1/admin/services/{service_id}/update-sort-order': post: summary: 'Update service sort order' operationId: updateServiceSortOrder description: 'Change the display order of an additional service in the admin catalog.' parameters: [] responses: 200: description: 'Sort order updated' content: application/json: schema: type: object example: data: id: 26 code: SVC-232 name: 'qui commodi' description: 'Iure odit et et modi ipsum nostrum omnis.' price: 50 per_night: false active: true sort_order: 0 message: 'Sort order updated successfully' properties: data: type: object properties: id: type: integer example: 26 code: type: string example: SVC-232 name: type: string example: 'qui commodi' description: type: string example: 'Iure odit et et modi ipsum nostrum omnis.' price: type: integer example: 50 per_night: type: boolean example: false active: type: boolean example: true sort_order: type: integer example: 0 message: type: string example: 'Sort order updated successfully' tags: - 'Service Management' requestBody: required: true content: application/json: schema: type: object properties: sort_order: type: numeric description: 'Display position.' example: '2' required: - sort_order parameters: - in: path name: service_id description: 'The ID of the service.' example: 1 required: true schema: type: integer - in: path name: service description: 'The service ID.' example: 1 required: true schema: type: integer /api/v1/admin/settings: get: summary: 'Show global settings' operationId: showGlobalSettings description: 'Returns structured global configuration including financial, pricing, and stay policy rules.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: financial: vat_rate: 500 payment_processing_fee: 20 default_currency: AED 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 policies: check_in_time: '14:00' check_out_time: '12:00' cancellation_threshold_hours: 24 booking_hold_minutes: 15 min_stay_nights_default: 1 max_advance_booking_days: 365 receipt_footer_text: 'Thank you for booking with us! For any inquiries, please contact support@apartments.com.' properties: financial: type: object properties: vat_rate: type: integer example: 500 payment_processing_fee: type: integer example: 20 default_currency: type: string example: AED 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 policies: type: object 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 min_stay_nights_default: type: integer example: 1 max_advance_booking_days: type: integer example: 365 receipt_footer_text: type: string example: 'Thank you for booking with us! For any inquiries, please contact support@apartments.com.' tags: - 'Settings Management' post: summary: 'Update global settings' operationId: updateGlobalSettings description: 'Updates financial & pricing settings or booking & stay policies. Supports full or partial updates.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: financial: vat_rate: 500 payment_processing_fee: 20 default_currency: AED hotel_categories: - code: four_star name: '4-Star / Superior' fee_per_bedroom: 15 security_deposit_rates: - bedrooms: 1 amount: 100 - bedrooms: 2 amount: 200 - bedrooms: 3 amount: 400 policies: check_in_time: '14:00' check_out_time: '12:00' cancellation_threshold_hours: 24 booking_hold_minutes: 15 min_stay_nights_default: 1 max_advance_booking_days: 365 receipt_footer_text: 'Thank you for booking with us! For any inquiries, please contact support@apartments.com.' properties: financial: type: object properties: vat_rate: type: integer example: 500 payment_processing_fee: type: integer example: 20 default_currency: type: string example: AED hotel_categories: type: array example: - code: four_star name: '4-Star / Superior' fee_per_bedroom: 15 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 policies: type: object 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 min_stay_nights_default: type: integer example: 1 max_advance_booking_days: type: integer example: 365 receipt_footer_text: type: string example: 'Thank you for booking with us! For any inquiries, please contact support@apartments.com.' tags: - 'Settings Management' requestBody: required: false content: application/json: schema: type: object properties: financial: type: object description: 'Financial and pricing configuration settings.' example: [] properties: vat_rate: type: integer description: 'VAT rate in basis points (e.g. 500 = 5.00%).' example: 500 payment_processing_fee: type: number description: 'Flat payment processing fee in AED (e.g. 20.00).' example: 20.0 default_currency: type: string description: 'ISO currency code.' example: AED hotel_categories: type: array description: 'List of property categories and their Dubai Tourism Dirham fee per bedroom.' example: - architecto items: type: string security_deposit_rates: type: array description: 'List of security deposit rates by bedroom count.' example: - architecto items: type: string nullable: true policies: type: object description: 'Booking rules and stay policy settings.' example: [] properties: check_in_time: type: string description: 'Standard check-in time (HH:mm format).' example: '14:00' check_out_time: type: string description: 'Standard check-out time (HH:mm format).' example: '12:00' cancellation_threshold_hours: type: integer description: 'Hours before check-in date when free cancellation closes.' example: 24 booking_hold_minutes: type: integer description: 'Minutes inventory is held pending payment completion.' example: 15 min_stay_nights_default: type: integer description: 'Minimum stay nights fallback.' example: 1 max_advance_booking_days: type: integer description: 'Maximum days in advance a stay can be booked.' example: 365 receipt_footer_text: type: string description: 'Custom footer note displayed on customer receipts.' example: 'Thank you for booking with us!' nullable: true