MENU navbar-image

Introduction

REST API for the Living Home Admin Dashboard: admin auth, booking management, payments, rooms, allocations, and user management.

This documentation provides details for the internal Admin Dashboard API endpoints.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right.</aside>

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Sign in via POST /api/v1/admin/login using your admin/owner credentials.

Authentication

Current user

requires authentication

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/auth/me" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/auth/me"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Authenticated):


{
    "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"
    }
}
 

Request      

GET api/v1/auth/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update Profile

requires authentication

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.

Example request:
curl --request PUT \
    "http://living-home-api.test/api/v1/auth/me" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"John Doe\",
    \"phone\": \"+1234567890\",
    \"avatar_temp_path\": \"tmp\\/1234-uuid.jpg\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/auth/me"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "John Doe",
    "phone": "+1234567890",
    "avatar_temp_path": "tmp\/1234-uuid.jpg"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/auth/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string  optional    

The updated name of the user. Example: John Doe

phone   string  optional    

The updated phone number. Example: +1234567890

avatar_temp_path   string|null  optional    

The temporary path of the uploaded avatar file. Set to null to clear the existing avatar. Example: tmp/1234-uuid.jpg

Admin Login

Authenticate an admin or owner user with email and password, returning an admin Sanctum bearer token.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"admin@example.com\",
    \"password\": \"password123\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "admin@example.com",
    "password": "password123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Authenticated successfully):


{
    "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"
}
 

Example response (403, Insufficient permissions):


{
    "message": "Access denied. Admin privileges required."
}
 

Example response (422, Invalid credentials):


{
    "message": "Invalid credentials."
}
 

Request      

POST api/v1/admin/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Admin email address. Example: admin@example.com

password   string     

Account password. Example: password123

Admin Forgot Password

Request a password reset link for an admin account. Returns a generic success message to prevent user enumeration.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/forgot-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"admin@example.com\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/forgot-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "admin@example.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Success):


{
    "message": "If your email is registered as an admin, a password reset link has been sent."
}
 

Request      

POST api/v1/admin/forgot-password

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Admin email address. Example: admin@example.com

Admin Reset Password

Reset the admin password using a valid token sent via email.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/reset-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"638294a2b97c02...\",
    \"email\": \"admin@example.com\",
    \"password\": \"new-password-123\",
    \"password_confirmation\": \"new-password-123\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reset-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "638294a2b97c02...",
    "email": "admin@example.com",
    "password": "new-password-123",
    "password_confirmation": "new-password-123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Password reset successfully):


{
    "message": "Your password has been reset."
}
 

Example response (422, Invalid token or payload):


{
    "message": "This password reset token is invalid."
}
 

Request      

POST api/v1/admin/reset-password

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

token   string     

Password reset token. Example: 638294a2b97c02...

email   string     

Admin email address. Example: admin@example.com

password   string     

New password (min 8 characters). Example: new-password-123

password_confirmation   string     

Must match password. Example: new-password-123

Admin Logout

requires authentication

Revoke the current authenticated admin user's Sanctum bearer token.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Success):


{
    "message": "Successfully logged out."
}
 

Request      

POST api/v1/admin/logout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Booking Management

List bookings

requires authentication

Retrieve a paginated list of bookings with filtering options for status, date range, and search.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/bookings?apartment_id=3&status=confirmed&from=2026-08-01&to=2026-08-31&search=BK-2026&refund_eligibility=can_refund&refund_state=cancelled_not_refunded&page=1&per_page=20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings"
);

const params = {
    "apartment_id": "3",
    "status": "confirmed",
    "from": "2026-08-01",
    "to": "2026-08-31",
    "search": "BK-2026",
    "refund_eligibility": "can_refund",
    "refund_state": "cancelled_not_refunded",
    "page": "1",
    "per_page": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Paginated list of bookings):


{
    "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": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}
 

Request      

GET api/v1/admin/bookings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

apartment_id   integer  optional    

Filter by apartments. Must match an existing stored value. Example: 3

status   string  optional    

Filter by booking status (e.g. held, confirmed, checked_in, checked_out, cancelled, no_show). Example: confirmed

Must be one of:
  • held
  • confirmed
  • checked_in
  • checked_out
  • no_show
  • cancelled
  • expired
  • non_refundable_forfeit
from   string  optional    

Filter bookings checking in on or after this date (YYYY-MM-DD). Must be a valid date. Example: 2026-08-01

to   string  optional    

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

search   string  optional    

Search matching booking code, guest name, or email. Must not be greater than 100 characters. Example: BK-2026

refund_eligibility   string  optional    

Filter by refund eligibility: can_refund (cancelled with paid payment), cannot_refund (all others), or all (default). Example: can_refund

Must be one of:
  • can_refund
  • cannot_refund
  • all
refund_state   string  optional    

Filter by refund state: cancelled_not_refunded (cancelled but not yet refunded), refunded (fully refunded). Example: cancelled_not_refunded

Must be one of:
  • cancelled_not_refunded
  • refunded
page   integer  optional    

Page number for pagination. Must be at least 1. Example: 1

per_page   integer  optional    

Items per page (max 100). Must be at least 1. Must not be greater than 100. Example: 20

Booking calendar

requires authentication

Occupancy grid for housekeeping/staffing: every room with its bookings overlapping the window.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/bookings/calendar?from=2026-08-01&to=2026-08-31" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/calendar"
);

const params = {
    "from": "2026-08-01",
    "to": "2026-08-31",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Room booking calendar and occupancy grid):


{
    "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"
                }
            ]
        }
    ]
}
 

Request      

GET api/v1/admin/bookings/calendar

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

from   string     

Window start date inclusive (YYYY-MM-DD). Must be a valid date. Example: 2026-08-01

to   string     

Window end date exclusive (YYYY-MM-DD). Must be a valid date. Must be a date after from. Example: 2026-08-31

Get booking detail

requires authentication

Retrieve complete booking details including guest, apartment, rate plan, add-on services, and payments.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/bookings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Detailed booking information):


{
    "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"
            }
        ]
    }
}
 

Request      

GET api/v1/admin/bookings/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Create a booking

requires authentication

Allows an admin to create a new booking for a guest, optionally specifying status and payment status.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"guest_id\": 1,
    \"room_id\": 1,
    \"plan_id\": 1,
    \"promo_ids\": [
        16
    ],
    \"discount_amount\": 16,
    \"check_in\": \"2026-08-20\",
    \"check_out\": \"2026-08-25\",
    \"adults\": 2,
    \"children\": 0,
    \"extra_bed\": false,
    \"special_requests\": \"Late check-in requested.\",
    \"status\": \"confirmed\",
    \"payment\": {
        \"amount\": 500,
        \"currency\": \"AED\",
        \"provider\": \"cash\"
    },
    \"created_at\": \"2026-11-03T02:36:18\",
    \"services\": [
        {
            \"service_id\": 16,
            \"qty\": 22
        }
    ]
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "guest_id": 1,
    "room_id": 1,
    "plan_id": 1,
    "promo_ids": [
        16
    ],
    "discount_amount": 16,
    "check_in": "2026-08-20",
    "check_out": "2026-08-25",
    "adults": 2,
    "children": 0,
    "extra_bed": false,
    "special_requests": "Late check-in requested.",
    "status": "confirmed",
    "payment": {
        "amount": 500,
        "currency": "AED",
        "provider": "cash"
    },
    "created_at": "2026-11-03T02:36:18",
    "services": [
        {
            "service_id": 16,
            "qty": 22
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201, Booking created successfully):


{
    "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"
            }
        ]
    }
}
 

Request      

POST api/v1/admin/bookings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

guest_id   integer     

The ID of the guest user. Must match an existing stored value. Example: 1

room_id   integer     

The ID of the apartment/room. Must match an existing stored value. Example: 1

plan_id   integer     

The ID of the rate plan. Must match an existing stored value. Example: 1

promo_ids   integer[]  optional    

Must match an existing stored value.

discount_amount   integer  optional    

Example: 16

check_in   string     

Check-in date (YYYY-MM-DD). Must be a valid date. Example: 2026-08-20

check_out   string     

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   integer     

Number of adult guests staying. Must not exceed room capacity. Must be at least 1. Example: 2

children   integer  optional    

Number of children staying. Must be at least 0. Example: 0

extra_bed   boolean  optional    

Whether an extra bed is requested. Example: false

special_requests   string  optional    

Special requests or notes for the booking. Must not be greater than 1000 characters. Example: Late check-in requested.

services   object[]  optional    
service_id   integer  optional    

This field is required when services is present. Must match an existing stored value. Example: 16

qty   integer  optional    

Must be at least 1. Example: 22

status   string  optional    

Booking status. Defaults to confirmed. Example: confirmed

Must be one of:
  • held
  • confirmed
  • checked_in
  • checked_out
  • no_show
  • cancelled
  • expired
  • non_refundable_forfeit
payment   object  optional    

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.

amount   number  optional    

Must be at least 0.01. Example: 500

currency   string  optional    

Must be 3 characters. Example: AED

provider   string  optional    

Must not be greater than 20 characters. Example: cash

created_at   string  optional    

Must be a valid date. Example: 2026-11-03T02:36:18

Get a price quote

requires authentication

Calculates the authoritative price for a stay without creating a booking. Useful for showing the cost breakdown in the admin booking creation form before submitting.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/quote" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"room_id\": 1,
    \"plan_id\": 1,
    \"promo_ids\": [
        16
    ],
    \"discount_amount\": 39,
    \"check_in\": \"2026-08-20\",
    \"check_out\": \"2026-08-22\",
    \"adults\": 2,
    \"children\": 0,
    \"services\": [
        {
            \"service_id\": 1,
            \"qty\": 1
        }
    ],
    \"extra_bed\": true
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/quote"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room_id": 1,
    "plan_id": 1,
    "promo_ids": [
        16
    ],
    "discount_amount": 39,
    "check_in": "2026-08-20",
    "check_out": "2026-08-22",
    "adults": 2,
    "children": 0,
    "services": [
        {
            "service_id": 1,
            "qty": 1
        }
    ],
    "extra_bed": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Quote):


{
    "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
            }
        ]
    }
}
 

Example response (409, Dates unavailable):


{
    "message": "Room is no longer available for the selected dates."
}
 

Example response (422, Guest count exceeds capacity):


{
    "message": "Guest count exceeds room capacity.",
    "errors": {
        "adults": [
            "Guest count exceeds room capacity."
        ]
    }
}
 

Request      

POST api/v1/admin/bookings/quote

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

room_id   integer     

The ID of the room/apartment to quote. Must match an existing stored value. Example: 1

plan_id   integer     

The ID of the rate plan to use. Must match an existing stored value. Example: 1

promo_ids   integer[]  optional    

Must match an existing stored value.

discount_amount   integer  optional    

Must be at least 0. Example: 39

check_in   string     

Check-in date (YYYY-MM-DD). Must be a valid date. Example: 2026-08-20

check_out   string     

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   integer     

Number of adult guests staying. Must not exceed room capacity. Must be at least 1. Example: 2

children   integer  optional    

Number of children staying. Must be at least 0. Example: 0

services   object[]  optional    

Optional add-on services requested.

service_id   integer  optional    

This field is required when services is present. Must match an existing stored value. Example: 16

qty   integer  optional    

Must be at least 1. Example: 22

extra_bed   boolean  optional    

Example: true

Edit a booking

requires authentication

Date changes re-validate availability, restock the old nights, and re-price the room subtotal at current allocation prices.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/bookings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"check_in\": \"2026-08-20\",
    \"check_out\": \"2026-08-25\",
    \"promo_ids\": [
        16
    ],
    \"discount_amount\": 16,
    \"adults\": 2,
    \"children\": 0,
    \"extra_bed\": false,
    \"special_requests\": \"Late check-in requested.\",
    \"created_at\": \"2026-11-03T02:36:18\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "check_in": "2026-08-20",
    "check_out": "2026-08-25",
    "promo_ids": [
        16
    ],
    "discount_amount": 16,
    "adults": 2,
    "children": 0,
    "extra_bed": false,
    "special_requests": "Late check-in requested.",
    "created_at": "2026-11-03T02:36:18"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Booking updated successfully):


{
    "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"
            }
        ]
    }
}
 

Request      

PATCH api/v1/admin/bookings/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Body Parameters

check_in   string  optional    

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   string  optional    

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   integer[]  optional    

Must match an existing stored value.

discount_amount   integer  optional    

Example: 16

adults   integer  optional    

Number of adult guests staying. Must not exceed room capacity. Must be at least 1. Example: 2

children   integer  optional    

Number of children staying. Must be at least 0. Example: 0

extra_bed   boolean  optional    

Whether an extra bed is requested. Example: false

special_requests   string  optional    

Special requests or notes for the booking. Must not be greater than 1000 characters. Example: Late check-in requested.

created_at   string  optional    

Must be a valid date. Example: 2026-11-03T02:36:18

Cancel a booking

requires authentication

Cancels any held/confirmed booking (no deadline check) and optionally flags a refund.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/cancel" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"refund\": true,
    \"reason\": \"Guest requested cancellation due to travel plan changes.\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/cancel"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "refund": true,
    "reason": "Guest requested cancellation due to travel plan changes."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Booking cancelled successfully):


{
    "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
}
 

Request      

POST api/v1/admin/bookings/{id}/cancel

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Body Parameters

refund   boolean  optional    

Whether to issue a refund for this cancellation. Example: true

reason   string  optional    

Reason for the cancellation. Must not be greater than 500 characters. Example: Guest requested cancellation due to travel plan changes.

Check in a booking

requires authentication

Transitions a confirmed booking to checked-in status.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/check-in" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/check-in"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Booking checked in successfully):


{
    "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
        }
    }
}
 

Request      

POST api/v1/admin/bookings/{id}/check-in

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Check out a booking

requires authentication

Transitions a checked-in booking to checked-out status.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/check-out" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/check-out"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Booking checked out successfully):


{
    "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
        }
    }
}
 

Request      

POST api/v1/admin/bookings/{id}/check-out

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Mark a booking as no-show

requires authentication

Transitions a confirmed booking to no-show status.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/no-show" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/no-show"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Booking marked as no-show successfully):


{
    "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
        }
    }
}
 

Request      

POST api/v1/admin/bookings/{id}/no-show

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Refund a booking

requires authentication

Issues a refund for the booking's succeeded payment(s).

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/refund" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_id\": 1,
    \"reason\": \"Guest requested refund.\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/refund"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "payment_id": 1,
    "reason": "Guest requested refund."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Booking refunded successfully):


{
    "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"
            }
        ]
    }
}
 

Request      

POST api/v1/admin/bookings/{id}/refund

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the booking. Example: 1

Body Parameters

payment_id   integer  optional    

Optional specific payment ID to refund. If omitted, the latest succeeded payment is refunded. Must match an existing stored value. Example: 1

reason   string  optional    

Reason for the refund. Must not be greater than 500 characters. Example: Guest requested refund.

Amenity Management

List amenities

requires authentication

Retrieve the amenity catalog used by apartment and apartment details.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/amenities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/amenities"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Wi-Fi",
            "icon": "wifi"
        },
        {
            "id": 1,
            "name": "Wi-Fi",
            "icon": "wifi"
        }
    ]
}
 

Request      

GET api/v1/admin/amenities

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create amenity

requires authentication

Create a new amenity entry for use in apartment assignments.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/amenities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Wi-Fi\",
    \"icon\": \"wifi\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/amenities"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Wi-Fi",
    "icon": "wifi"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201, Amenity created):


{
    "data": {
        "id": 1,
        "name": "Wi-Fi",
        "icon": "wifi"
    },
    "message": "Amenity created successfully!"
}
 

Request      

POST api/v1/admin/amenities

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

The amenity name shown in the admin dashboard and room details. Must not be greater than 100 characters. Example: Wi-Fi

icon   string  optional    

Icon identifier used by the frontend. Must not be greater than 50 characters. Example: wifi

Update amenity

requires authentication

Update an existing amenity's name or icon.

Example request:
curl --request PUT \
    "http://living-home-api.test/api/v1/admin/amenities/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Free Wi-Fi\",
    \"icon\": \"wifi\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/amenities/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Free Wi-Fi",
    "icon": "wifi"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Amenity updated):


{
    "data": {
        "id": 1,
        "name": "Wi-Fi",
        "icon": "wifi"
    },
    "message": "Amenity updated successfully!"
}
 

Request      

PUT api/v1/admin/amenities/{id}

PATCH api/v1/admin/amenities/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the amenity. Example: 1

Body Parameters

name   string     

Updated amenity name. Must not be greater than 100 characters. Example: Free Wi-Fi

icon   string  optional    

Updated icon identifier. . Must not be greater than 50 characters. Example: wifi

Delete amenity

requires authentication

Delete an amenity unless it is currently assigned to apartments.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/amenities/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/amenities/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200, Amenity deleted):


{
    "message": "Amenity deleted successfully!"
}
 

Example response (409, Amenity in use):


{
    "message": "Amenity cannot be deleted while it is assigned to apartments."
}
 

Request      

DELETE api/v1/admin/amenities/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the amenity. Example: 1

Inventory Allocations

List price/availability allocations

requires authentication

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/allocations?apartment_id=1&from=2026-08-01&to=2026-08-31" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/allocations"
);

const params = {
    "apartment_id": "1",
    "from": "2026-08-01",
    "to": "2026-08-31",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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
        }
    ]
}
 

Request      

GET api/v1/admin/allocations

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

apartment_id   integer  optional    

Filter by apartment id. Example: 1

from   string  optional    

date Filter to allocations on or after this date. Example: 2026-08-01

to   string  optional    

date Filter to allocations on or before this date. Example: 2026-08-31

Get rate and restriction calendar matrix

requires authentication

Returns a full calendar grid of apartments and daily rates/restrictions for the requested date window. Unallocated dates are populated with the apartment's base price and standard defaults.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/allocations/calendar?from=2026-10-01&to=2026-10-31&apartment_id=1&apartment_ids[]=1&apartment_ids[]=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/allocations/calendar"
);

const params = {
    "from": "2026-10-01",
    "to": "2026-10-31",
    "apartment_id": "1",
    "apartment_ids[0]": "1",
    "apartment_ids[1]": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Rates and restrictions calendar matrix):


{
    "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
                }
            ]
        }
    ]
}
 

Request      

GET api/v1/admin/allocations/calendar

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

from   string     

date Inclusive start date (YYYY-MM-DD). Example: 2026-10-01

to   string     

date Inclusive end date (YYYY-MM-DD, >= from). Example: 2026-10-31

apartment_id   integer  optional    

Filter to a single apartment ID. Example: 1

apartment_ids   integer[]  optional    

Filter to multiple apartment IDs.

Bulk upsert price/availability allocations

requires authentication

Configures rates, inventory, stay limits, and DTCM fees across multiple apartments and a date window with optional day-of-week filters and overwrite protection. Broadcasts each change over the real-time stream (ADR-014).

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/allocations/bulk" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"apartment_ids\": [
        1,
        2
    ],
    \"start_date\": \"2026-08-01\",
    \"end_date\": \"2026-08-31\",
    \"days_of_week\": [
        1,
        2,
        3,
        4
    ],
    \"refundable_price\": 1150,
    \"non_refundable_price\": 1035,
    \"tourism_dirham_fee\": 15,
    \"available_qty\": 1,
    \"closed\": false,
    \"min_stay\": 2,
    \"max_stay\": 30,
    \"overwrite_existing\": true
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/allocations/bulk"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "apartment_ids": [
        1,
        2
    ],
    "start_date": "2026-08-01",
    "end_date": "2026-08-31",
    "days_of_week": [
        1,
        2,
        3,
        4
    ],
    "refundable_price": 1150,
    "non_refundable_price": 1035,
    "tourism_dirham_fee": 15,
    "available_qty": 1,
    "closed": false,
    "min_stay": 2,
    "max_stay": 30,
    "overwrite_existing": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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
        }
    ]
}
 

Request      

POST api/v1/admin/allocations/bulk

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

apartment_ids   integer[]     

Target apartment IDs.

start_date   date     

Inclusive start date (YYYY-MM-DD). Example: 2026-08-01

end_date   date     

Inclusive end date (YYYY-MM-DD, >= start_date). Example: 2026-08-31

days_of_week   integer[]  optional    

Day filter using ISO-8601 (1=Mon ... 7=Sun).

refundable_price   number  optional    

Primary flexible nightly rate in AED. Example: 1150

non_refundable_price   number  optional    

Discounted nightly rate in AED. Example: 1035

tourism_dirham_fee   number  optional    

Mandatory Dubai DTCM tourist tax in AED per night. Example: 15

available_qty   integer  optional    

Available inventory count for sale. Default: 1. Example: 1

closed   boolean  optional    

Stop-sell / Block switch. Default: false. Example: false

min_stay   integer  optional    

Minimum nights restriction. Default: 1. Example: 2

max_stay   integer  optional    

Maximum consecutive nights allowed. Example: 30

overwrite_existing   boolean  optional    

Force overwrite matching dates (true) or protect existing overrides (false). Default: true. Example: true

User Management

List users

requires authentication

Retrieve all system users (excluding guest customers) for client-side table rendering.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    ]
}
 

Request      

GET api/v1/admin/users

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create user

requires authentication

Create a new user account.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Jane Doe\",
    \"email\": \"jane@example.com\",
    \"password\": \"secretPassword123\",
    \"phone\": \"+1234567890\",
    \"role\": \"admin\",
    \"status\": \"active\",
    \"avatar_temp_path\": \"tmp\\/1234-uuid.jpg\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Jane Doe",
    "email": "jane@example.com",
    "password": "secretPassword123",
    "phone": "+1234567890",
    "role": "admin",
    "status": "active",
    "avatar_temp_path": "tmp\/1234-uuid.jpg"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "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"
    }
}
 

Request      

POST api/v1/admin/users

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

The full name of the user. Must not be greater than 255 characters. Example: Jane Doe

email   string     

Unique email address for authentication. Must be a valid email address. Must not be greater than 255 characters. Example: jane@example.com

password   string     

Account password (minimum 8 characters). Must be at least 8 characters. Example: secretPassword123

phone   string  optional    

Optional contact phone number. Must not be greater than 20 characters. Example: +1234567890

role   string     

User role (viewer, admin, owner). Example: admin

Must be one of:
  • viewer
  • admin
  • owner
status   string  optional    

Account status (active, inactive, suspended). Defaults to active. Example: active

Must be one of:
  • active
  • inactive
  • suspended
avatar_temp_path   string  optional    

Optional temporary path for the uploaded avatar. Must start with one of tmp/. Example: tmp/1234-uuid.jpg

Show user details

requires authentication

Retrieve full details of a specific user.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Request      

GET api/v1/admin/users/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

Update user

requires authentication

Update an existing user's information, credentials, role, or status.

Example request:
curl --request PUT \
    "http://living-home-api.test/api/v1/admin/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Jane Doe\",
    \"email\": \"jane.updated@example.com\",
    \"password\": \"newSecret123\",
    \"phone\": \"+1234567890\",
    \"role\": \"owner\",
    \"status\": \"inactive\",
    \"avatar_temp_path\": \"tmp\\/1234-uuid.jpg\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Jane Doe",
    "email": "jane.updated@example.com",
    "password": "newSecret123",
    "phone": "+1234567890",
    "role": "owner",
    "status": "inactive",
    "avatar_temp_path": "tmp\/1234-uuid.jpg"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Request      

PUT api/v1/admin/users/{id}

PATCH api/v1/admin/users/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

Body Parameters

name   string  optional    

Updated name of the user. Must not be greater than 255 characters. Example: Jane Doe

email   string  optional    

Updated email address. Must be a valid email address. Must not be greater than 255 characters. Example: jane.updated@example.com

password   string  optional    

Optional new password (minimum 8 characters). Must be at least 8 characters. Example: newSecret123

phone   string  optional    

Updated contact phone number. Must not be greater than 20 characters. Example: +1234567890

role   string  optional    

Updated user role (viewer, admin, owner). Example: owner

Must be one of:
  • viewer
  • admin
  • owner
status   string  optional    

Updated account status (active, inactive, suspended). Example: inactive

Must be one of:
  • active
  • inactive
  • suspended
avatar_temp_path   string  optional    

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

Delete user

requires authentication

Delete a specific user account. Owners cannot delete their own account.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/users/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

Staff Notifications

APIs for managing in-app notifications for authenticated staff members (Viewer, Admin, Owner).

List notifications

requires authentication

Retrieve paginated notifications for the authenticated staff member. Supports filtering by unread status and event type.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/notifications?unread_only=1&type=booking_confirmed&page=1&per_page=20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/notifications"
);

const params = {
    "unread_only": "1",
    "type": "booking_confirmed",
    "page": "1",
    "per_page": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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
    }
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Example response (422):


{
    "message": "The selected type is invalid.",
    "errors": {
        "type": [
            "The selected type is invalid."
        ]
    }
}
 

Request      

GET api/v1/admin/notifications

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

unread_only   boolean  optional    

Filter only unread notifications (true or 1). Omit or set to false to retrieve all. Example: true

type   string  optional    

Filter notifications by specific event type code matching NotificationType enum. Example: booking_confirmed

page   integer  optional    

Page number for pagination. Example: 1

per_page   integer  optional    

Items per page (1-100). Defaults to 20. Example: 20

Response

Response Fields

data   object     
id   string     

UUID identifier of the notification. Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

type   string     

Event type identifier matching NotificationType enum. Example: booking_confirmed

data   object     

Structured payload containing contextual details about the event.

type   string     

Type code of the notification. Example: booking_confirmed

message   string     

Human-readable notification description. Example: Booking BK-2026-0042 confirmed for Jane Doe

read_at   string|null     

ISO 8601 timestamp when marked as read, or null if unread. Example: null

is_read   boolean     

Convenience boolean flag indicating whether the notification has been read. Example: false

created_at   string     

ISO 8601 creation timestamp. Example: 2026-09-22T14:30:00+07:00

links   object     

Pagination navigation links.

first   string     

URL to the first page. Example: http://living-home-api.test/api/v1/admin/notifications?page=1

last   string     

URL to the last page. Example: http://living-home-api.test/api/v1/admin/notifications?page=1

prev   string|null     

URL to the previous page. Example: null

next   string|null     

URL to the next page. Example: null

meta   object     

Pagination metadata.

current_page   integer     

Current page number. Example: 1

from   integer     

Index of first record in page. Example: 1

last_page   integer     

Total number of pages. Example: 1

per_page   integer     

Items per page. Example: 20

to   integer     

Index of last record in page. Example: 1

total   integer     

Total number of matching records. Example: 1

Get unread count

requires authentication

Retrieve the count of unread notifications for bell badge indicators in the admin dashboard navigation bar.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/notifications/unread-count" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/notifications/unread-count"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "unread_count": 3
}
 

Example response (200):


{
    "unread_count": 3
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Request      

GET api/v1/admin/notifications/unread-count

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Response

Response Fields

unread_count   integer     

Total number of unread notifications for the authenticated user. Example: 3

Mark notification as read

requires authentication

Mark a single unread notification belonging to the authenticated staff member as read.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/notifications/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d/read" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/notifications/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d/read"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Example response (404):


{
    "error": {
        "code": "not_found",
        "message": "Notification not found."
    }
}
 

Request      

PATCH api/v1/admin/notifications/{id}/read

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The UUID of the notification. Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Response

Response Fields

notification   object     

The updated notification entity.

id   string     

UUID identifier of the notification. Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

type   string     

Event type identifier matching NotificationType enum. Example: booking_confirmed

data   object     

Structured notification payload.

read_at   string     

ISO 8601 timestamp when marked as read. Example: 2026-09-22T14:35:00+07:00

is_read   boolean     

Set to true once marked as read. Example: true

created_at   string     

ISO 8601 creation timestamp. Example: 2026-09-22T14:30:00+07:00

Mark all as read

requires authentication

Mark all unread notifications for the authenticated staff member as read in a single batch operation.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/notifications/mark-all-read" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/notifications/mark-all-read"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "All notifications marked as read.",
    "updated_count": 5
}
 

Example response (200):


{
    "message": "All notifications marked as read.",
    "updated_count": 5
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Request      

POST api/v1/admin/notifications/mark-all-read

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Response

Response Fields

message   string     

Success confirmation message. Example: All notifications marked as read.

updated_count   integer     

Total number of notifications updated from unread to read. Example: 5

Delete notification

requires authentication

Delete or dismiss a single notification belonging to the authenticated staff member.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/notifications/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/notifications/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Notification deleted successfully."
}
 

Example response (200):


{
    "message": "Notification deleted successfully."
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Example response (404):


{
    "error": {
        "code": "not_found",
        "message": "Notification not found."
    }
}
 

Request      

DELETE api/v1/admin/notifications/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The UUID of the notification. Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Response

Response Fields

message   string     

Success confirmation message. Example: Notification deleted successfully.

Admin - Promotions

APIs for managing promotional campaigns, discounts, and tracking booking redemptions.

Display a listing of promotions.

Fetch a full list of all promotions, optionally filtering for active ones using the frontend parameter.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/promotions?frontend=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions"
);

const params = {
    "frontend": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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
        }
    ]
}
 

Request      

GET api/v1/admin/promotions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

frontend   boolean  optional    

Filter to return only active promotions intended for public display. Example: true

Display the specified promotion.

Retrieve details of a single promotion along with its associated booking redemptions.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/promotions/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
                }
            }
        ]
    }
}
 

Request      

GET api/v1/admin/promotions/{promotion_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

promotion_id   integer     

The ID of the promotion. Example: 1

promotion   integer     

The ID of the promotion. Example: 1

Store a newly created promotion.

Create a new promotion record with specific rules, type conditions, and plan scope.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/promotions" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"SUMMER2026\",
    \"name\": \"Summer Discount\",
    \"discount_type\": \"percentage\",
    \"type\": \"campaign\",
    \"value\": \"15\",
    \"max_discount\": \"50.00\",
    \"validity\": {
        \"from\": \"2026-06-01\",
        \"to\": \"2026-08-31\"
    },
    \"min_lead_days\": 14,
    \"max_lead_days\": 3,
    \"min_nights\": 2,
    \"plan_scope\": \"all\",
    \"apartment_ids\": [
        1,
        2
    ],
    \"max_uses\": 100
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "SUMMER2026",
    "name": "Summer Discount",
    "discount_type": "percentage",
    "type": "campaign",
    "value": "15",
    "max_discount": "50.00",
    "validity": {
        "from": "2026-06-01",
        "to": "2026-08-31"
    },
    "min_lead_days": 14,
    "max_lead_days": 3,
    "min_nights": 2,
    "plan_scope": "all",
    "apartment_ids": [
        1,
        2
    ],
    "max_uses": 100
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "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
    }
}
 

Request      

POST api/v1/admin/promotions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

code   string  optional    

Optional unique promo code. Example: SUMMER2026

name   string     

Descriptive name of the promotion. Example: Summer Discount

discount_type   string     

Type of discount (percentage or fixed). Example: percentage

type   string     

Promotion category (campaign, early_bird, last_minute, minimum_stay). Example: campaign

value   numeric     

Discount value (amount in minor units or percentage value). Example: 15

max_discount   numeric  optional    

Maximum discount limit for percentage promotions (prohibited if fixed). Example: 50.00

validity   object  optional    

Nested object containing validity dates for campaign promotions.

from   string  optional    

Start date for promo validity (Y-m-d). Required if type is campaign. Example: 2026-06-01

to   string  optional    

End date for promo validity (Y-m-d). Required if type is campaign. Example: 2026-08-31

min_lead_days   integer  optional    

Minimum days before check-in. Required if type is early_bird. Example: 14

max_lead_days   integer  optional    

Maximum days before check-in. Required if type is last_minute. Example: 3

min_nights   integer  optional    

Minimum stay requirement in nights. Example: 2

plan_scope   string     

Applicable rate plan scope (all, standard, non_refundable). Example: all

apartment_ids   integer[]  optional    

Optional apartment IDs to limit this promotion to. Omit or send an empty array to apply to all apartments.

max_uses   integer  optional    

Total usage cap for this promotion. Example: 100

Update the specified promotion.

Update configuration and parameters for an existing promotion campaign.

Example request:
curl --request PUT \
    "http://living-home-api.test/api/v1/admin/promotions/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"SUMMER2026\",
    \"name\": \"Late Summer Sale\",
    \"discount_type\": \"percentage\",
    \"type\": \"campaign\",
    \"value\": \"20\",
    \"max_discount\": \"100.00\",
    \"validity\": {
        \"from\": \"2026-06-01\",
        \"to\": \"2026-09-15\"
    },
    \"min_lead_days\": 14,
    \"max_lead_days\": 3,
    \"min_nights\": 3,
    \"plan_scope\": \"all\",
    \"apartment_ids\": [
        1,
        2
    ],
    \"max_uses\": 150
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "SUMMER2026",
    "name": "Late Summer Sale",
    "discount_type": "percentage",
    "type": "campaign",
    "value": "20",
    "max_discount": "100.00",
    "validity": {
        "from": "2026-06-01",
        "to": "2026-09-15"
    },
    "min_lead_days": 14,
    "max_lead_days": 3,
    "min_nights": 3,
    "plan_scope": "all",
    "apartment_ids": [
        1,
        2
    ],
    "max_uses": 150
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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
    }
}
 

Request      

PUT api/v1/admin/promotions/{id}

PATCH api/v1/admin/promotions/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the promotion. Example: 1

promotion   integer     

The ID of the promotion to update. Example: 1

Body Parameters

code   string  optional    

Optional unique promo code. Example: SUMMER2026

name   string     

Descriptive name of the promotion. Example: Late Summer Sale

discount_type   string     

Type of discount (percentage or fixed). Example: percentage

type   string     

Promotion category (campaign, early_bird, last_minute, minimum_stay). Example: campaign

value   numeric     

Discount value. Example: 20

max_discount   numeric  optional    

Maximum discount limit for percentage promotions (prohibited if fixed). Example: 100.00

validity   object  optional    

Nested object containing validity dates for campaign promotions.

from   string  optional    

Start date for promo validity (Y-m-d). Required if type is campaign. Example: 2026-06-01

to   string  optional    

End date for promo validity (Y-m-d). Required if type is campaign. Example: 2026-09-15

min_lead_days   integer  optional    

Minimum days before check-in. Required if type is early_bird. Example: 14

max_lead_days   integer  optional    

Maximum days before check-in. Required if type is last_minute. Example: 3

min_nights   integer  optional    

Minimum stay requirement in nights. Example: 3

plan_scope   string     

Applicable rate plan scope (all, standard, non_refundable). Example: all

apartment_ids   integer[]  optional    

Optional apartment IDs to limit this promotion to. Omit or send an empty array to apply to all apartments.

max_uses   integer  optional    

Total usage cap for this promotion. Example: 150

Remove the specified promotion.

Delete a promotion record from storage if it has not been used in any bookings.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/promotions/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, Successfully deleted):

Empty response
 

Example response (409, Conflict / Active Bookings Exist):


{
    "message": "Cannot delete this promotion because it is linked to existing bookings."
}
 

Request      

DELETE api/v1/admin/promotions/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the promotion. Example: 1

promotion   integer     

The ID of the promotion to delete. Example: 1

Fetch promotion payload details.

Retrieve payload information for a target promotion.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/promotions/1/payload" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions/1/payload"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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
    }
}
 

Request      

GET api/v1/admin/promotions/{promotion_id}/payload

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

promotion_id   integer     

The ID of the promotion. Example: 1

promotion   integer     

The ID of the promotion. Example: 1

Update the active/inactive status of a promotion.

Toggle the current state of a promotion campaign without altering its pricing or validity rules.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/promotions/1/status" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"active\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/promotions/1/status"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "active"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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
    }
}
 

Request      

PATCH api/v1/admin/promotions/{promotion_id}/status

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

promotion_id   integer     

The ID of the promotion. Example: 1

promotion   integer     

The ID of the promotion to update. Example: 1

Body Parameters

status   string     

Promotion status. Must be either active or inactive. Example: active

Admin / Reviews

APIs for managing guest reviews, status visibility, and admin responses.

List published reviews

Fetch a paginated or full list of published guest reviews along with brief guest and booking details. Note: The admin_reply field is omitted in the index payload.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/reviews" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
            }
        }
    ]
}
 

Request      

GET api/v1/admin/reviews

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Get review details

Retrieve full information for a specific review, including the admin_reply if one exists.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/reviews/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    }
}
 

Example response (404):


{
    "message": "No query results for model [App\\Models\\Review] 1"
}
 

Request      

GET api/v1/admin/reviews/{review_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

review_id   integer     

The ID of the review. Example: 1

review   integer     

The ID of the review. Example: 1

Delete a review

Permanently remove a review from the database. Returns an empty 204 response on success.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/reviews/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204, Successfully deleted):

Empty response
 

Request      

DELETE api/v1/admin/reviews/{review_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

review_id   integer     

The ID of the review. Example: 1

review   integer     

The ID of the review to delete. Example: 1

Reply to a review

Add or update an official admin response for a guest review and automatically update replied_at.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/reviews/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"admin_reply\": \"Thank you so much for the kind words!\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "admin_reply": "Thank you so much for the kind words!"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "message": "Reply added successfully."
}
 

Example response (422):


{
    "message": "The admin reply field is required.",
    "errors": {
        "admin_reply": [
            "The admin reply field is required."
        ]
    }
}
 

Request      

PATCH api/v1/admin/reviews/{review_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

review_id   integer     

The ID of the review. Example: 1

review   integer     

The ID of the review to reply to. Example: 1

Body Parameters

admin_reply   string     

The text response from the admin. Example: Thank you so much for the kind words!

Hide a review

Update the review status to HIDDEN so it is not displayed on public listings.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/reviews/1/hide" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews/1/hide"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Review hidden successfully."
}
 

Request      

PATCH api/v1/admin/reviews/{review_id}/hide

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

review_id   integer     

The ID of the review. Example: 1

review   integer     

The ID of the review to hide. Example: 1

Reveal a review

Update the review status to PUBLISHED so it appears on public listings.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/reviews/1/reveal" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/reviews/1/reveal"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Review published successfully."
}
 

Request      

PATCH api/v1/admin/reviews/{review_id}/reveal

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

review_id   integer     

The ID of the review. Example: 1

review   integer     

The ID of the review to reveal. Example: 1

Apartment Management

APIs for managing apartment listings, pricing, amenities, and associated media assets.

List all apartments

requires authentication

Retrieves the complete collection of apartments with associated media and amenities. Designed for client-side filtering, sorting, and pagination.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/apartments?status=active&search=Deluxe&page=1&per_page=20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments"
);

const params = {
    "status": "active",
    "search": "Deluxe",
    "page": "1",
    "per_page": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "code": "Apartment 6511",
            "name": "Luxury 2BR | City Skyline & Sunset View",
            "bedrooms": 2,
            "bathrooms": 2,
            "description": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
            "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": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
            "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
        }
    ]
}
 

Example response (200):


{
    "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
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/admin/apartments

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

status   string  optional    

Filter by apartment status (active, inactive, maintenance). Example: active

Must be one of:
  • active
  • inactive
  • maintenance
search   string  optional    

Match apartment code or name. Example: Deluxe

page   integer  optional    

Page number. Example: 1

per_page   integer  optional    

Items per page (max 100). Example: 20

Show apartment details

requires authentication

Retrieve details of a specific apartment by its ID, including media and amenities.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/apartments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "code": "Apartment 6511",
        "name": "Luxury 2BR | City Skyline & Sunset View",
        "bedrooms": 2,
        "bathrooms": 2,
        "description": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
        "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
    }
}
 

Example response (200):


{
    "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
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Example response (404):


{
    "message": "No query results for model [App\\Models\\Apartment] 1"
}
 

Request      

GET api/v1/admin/apartments/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the apartment. Example: 1

List apartment features

requires authentication

Retrieve all available apartment features as a simple string array.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/apartment-features" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartment-features"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        "Ocean View",
        "Kitchenette",
        "Balcony"
    ]
}
 

Request      

GET api/v1/admin/apartment-features

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Create an apartment

requires authentication

Create a new apartment record along with its amenities and optional media.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/apartments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"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,
    \"amenity_ids\": [
        1,
        2,
        5
    ],
    \"apartment_images\": [
        {
            \"id\": 10,
            \"temp_path\": \"tmp\\/uploads\\/img_12345.jpg\",
            \"alt\": \"Living room view\"
        }
    ],
    \"features\": [
        \"architecto\"
    ],
    \"additional_rules\": \"architecto\",
    \"latitude\": 25.197197,
    \"longitude\": 55.274386,
    \"house_rules\": [
        {
            \"key\": \"architecto\",
            \"value\": \"architecto\"
        }
    ]
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "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,
    "amenity_ids": [
        1,
        2,
        5
    ],
    "apartment_images": [
        {
            "id": 10,
            "temp_path": "tmp\/uploads\/img_12345.jpg",
            "alt": "Living room view"
        }
    ],
    "features": [
        "architecto"
    ],
    "additional_rules": "architecto",
    "latitude": 25.197197,
    "longitude": 55.274386,
    "house_rules": [
        {
            "key": "architecto",
            "value": "architecto"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "data": {
        "id": 1,
        "code": "Apartment 6511",
        "name": "Luxury 2BR | City Skyline & Sunset View",
        "bedrooms": 2,
        "bathrooms": 2,
        "description": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
        "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
    }
}
 

Example response (201):


{
    "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
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Example response (422):


{
    "message": "The code field is required.",
    "errors": {
        "code": [
            "The code field is required."
        ]
    }
}
 

Request      

POST api/v1/admin/apartments

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

code   string     

Unique code for the apartment. Example: APT-101

name   string     

Apartment title. Example: Deluxe Ocean View Suite

bedrooms   integer  optional    

Number of bedrooms. Example: 2

bathrooms   integer  optional    

Number of bathrooms. Example: 1

description   string  optional    

Extended details and features. Example: Spacious apartment with ocean view and king bed.

capacity   integer     

Maximum guest capacity. Example: 4

extra_bed_allowed   boolean  optional    

Indicates whether extra beds can be requested. Example: true

extra_bed_price   integer  optional    

Cost per extra bed. Example: 2500

base_price   integer     

Base nightly rate. Example: 15000

cleaning_fee   integer  optional    

Additional fee for cleaning. Example: 3000

size_sqm   integer  optional    

Total room area in square meters. Example: 45

status   string  optional    

Current operational status (active, inactive, maintenance). Example: active

sort_order   integer  optional    

Manual display order index. Example: 1

amenity_ids   integer[]  optional    

List of amenity record IDs.

apartment_images   object[]  optional    

List of image metadata objects to attach or upload.

id   integer  optional    

ID of existing media to keep/update. Example: 10

temp_path   string  optional    

Path to temporarily stored uploaded image. Example: tmp/uploads/img_12345.jpg

alt   string  optional    

Alt text for image accessibility. Example: Living room view

features   string[]  optional    
house_rules   object[]  optional    
key   string     

Example: architecto

value   string     

Example: architecto

additional_rules   string  optional    

Example: architecto

latitude   number  optional    

Geographical latitude coordinate (-90 to 90). Example: 25.197197

longitude   number  optional    

Geographical longitude coordinate (-180 to 180). Example: 55.274386

Update an apartment

requires authentication

Update specific attributes, amenities, or media items for an existing apartment.

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/apartments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"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,
    \"amenity_ids\": [
        1,
        3
    ],
    \"apartment_images\": [
        {
            \"id\": 16,
            \"temp_path\": \"tmp\\/bngz\",
            \"alt\": \"m\"
        }
    ],
    \"features\": [
        \"architecto\"
    ],
    \"additional_rules\": \"architecto\",
    \"latitude\": 25.197197,
    \"longitude\": 55.274386,
    \"house_rules\": [
        {
            \"key\": \"architecto\",
            \"value\": \"architecto\"
        }
    ]
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "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,
    "amenity_ids": [
        1,
        3
    ],
    "apartment_images": [
        {
            "id": 16,
            "temp_path": "tmp\/bngz",
            "alt": "m"
        }
    ],
    "features": [
        "architecto"
    ],
    "additional_rules": "architecto",
    "latitude": 25.197197,
    "longitude": 55.274386,
    "house_rules": [
        {
            "key": "architecto",
            "value": "architecto"
        }
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "code": "Apartment 6511",
        "name": "Luxury 2BR | City Skyline & Sunset View",
        "bedrooms": 2,
        "bathrooms": 2,
        "description": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
        "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
    }
}
 

Example response (200):


{
    "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
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Example response (404):


{
    "message": "No query results for model [App\\Models\\Apartment] 1"
}
 

Request      

PATCH api/v1/admin/apartments/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the apartment to update. Example: 1

Body Parameters

code   string  optional    

Unique code for the apartment. Example: APT-101

name   string  optional    

Apartment title. Example: Executive Deluxe Suite

bedrooms   integer  optional    

Number of bedrooms. Example: 2

bathrooms   integer  optional    

Number of bathrooms. Example: 1

description   string  optional    

Extended details and features. Example: Updated description details.

capacity   integer  optional    

Maximum guest capacity. Example: 4

extra_bed_allowed   boolean  optional    

Indicates whether extra beds can be requested. Example: true

extra_bed_price   integer  optional    

Cost per extra bed. Example: 3000

base_price   integer  optional    

Base nightly rate. Example: 18000

cleaning_fee   integer  optional    

Additional fee for cleaning. Example: 3500

size_sqm   integer  optional    

Total room area in square meters. Example: 50

status   string  optional    

Operational status (active, inactive, maintenance). Example: active

sort_order   integer  optional    

Manual display order index. Example: 2

amenity_ids   integer[]  optional    

Updated array of amenity record IDs.

apartment_images   object[]  optional    

List of image metadata objects.

id   integer  optional    

Must match an existing stored value. Example: 16

temp_path   string  optional    

Must start with one of tmp/. Example: tmp/bngz

alt   string  optional    

Must not be greater than 255 characters. Example: m

features   string[]  optional    
house_rules   object[]  optional    
key   string     

Example: architecto

value   string     

Example: architecto

additional_rules   string  optional    

Example: architecto

latitude   number  optional    

Geographical latitude coordinate (-90 to 90). Example: 25.197197

longitude   number  optional    

Geographical longitude coordinate (-180 to 180). Example: 55.274386

Deactivate an apartment

requires authentication

Sets the status of the apartment to inactive. (Preserves booking history).

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/apartments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "code": "Apartment 6511",
        "name": "Luxury 2BR | City Skyline & Sunset View",
        "bedrooms": 2,
        "bathrooms": 2,
        "description": "<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">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.</span></p><p><br></p>",
        "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
    }
}
 

Example response (200):


{
    "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
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Example response (404):


{
    "message": "No query results for model [App\\Models\\Apartment] 1"
}
 

Request      

DELETE api/v1/admin/apartments/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the apartment to deactivate. Example: 1

Update apartment sort order

requires authentication

Change the display order of an apartment in the admin catalog.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/apartments/1/update-sort-order" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"sort_order\": \"2\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartments/1/update-sort-order"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sort_order": "2"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Sort order updated):


{
    "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"
}
 

Example response (200):


{
    "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"
}
 

Request      

POST api/v1/admin/apartments/{id}/update-sort-order

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The apartment ID. Example: 1

Body Parameters

sort_order   numeric     

Display position. Example: 2

Audit Logs

APIs for querying and inspecting administrative audit logs.

List audit logs

requires authentication

Retrieve a paginated and filterable activity trail of state-changing administrative actions.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/audit-logs?page=1&per_page=20&entity_type=Booking&entity_id=42&action=booking.cancelled&user_id=1&from=2026-09-01&to=2026-09-30" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/audit-logs"
);

const params = {
    "page": "1",
    "per_page": "20",
    "entity_type": "Booking",
    "entity_id": "42",
    "action": "booking.cancelled",
    "user_id": "1",
    "from": "2026-09-01",
    "to": "2026-09-30",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Paginated list of audit logs):


{
    "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": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Request      

GET api/v1/admin/audit-logs

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

page   integer  optional    

Page number for pagination. Must be at least 1. Example: 1

per_page   integer  optional    

Number of items per page (max 100). Must be at least 1. Must not be greater than 100. Example: 20

entity_type   string  optional    

Filter by entity type (e.g. Booking, Payment, Apartment, Setting, User, ContactInquiry). Must not be greater than 50 characters. Example: Booking

entity_id   integer  optional    

Filter by target entity primary key ID. Must be at least 1. Example: 42

action   string  optional    

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

user_id   integer  optional    

Filter by ID of the staff user who triggered the action. Must match an existing stored value. Example: 1

from   string  optional    

Filter logs created on or after this date (YYYY-MM-DD). Must be a valid date. Example: 2026-09-01

to   string  optional    

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

Response

Response Fields

data   object     
id   integer     

The unique numeric ID of the audit log entry. Example: 1

action   string     

Dot-notation action identifier. Example: booking.cancelled

entity_type   string     

Model class name of the target entity. Example: Booking

entity_id   integer     

The primary key ID of the targeted entity. Example: 42

payload   object     

Contextual event payload containing changed attributes or reason.

ip_address   string     

Client IP address from which the action was initiated. Example: 192.168.1.1

user_agent   string     

Client user agent string. Example: Mozilla/5.0

created_at   string     

ISO 8601 creation timestamp. Example: 2026-09-18T14:30:00+07:00

user   object     

Staff member who performed the action, or null for system events.

id   integer     

Staff user ID. Example: 2

name   string     

Staff user name. Example: Admin User

email   string     

Staff user email. Example: admin@livinghome.com

role   string     

Staff user role (admin or owner). Example: admin

meta   object     
current_page   integer     

Current page number. Example: 1

last_page   integer     

Total available pages. Example: 5

per_page   integer     

Items per page. Example: 20

total   integer     

Total number of matching records. Example: 98

Show audit log

requires authentication

Retrieve full details of a specific audit log entry including its JSON payload and actor.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/audit-logs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/audit-logs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Audit log details):


{
    "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"
        }
    }
}
 

Example response (401):


{
    "error": {
        "code": "unauthenticated",
        "message": "Unauthenticated."
    }
}
 

Example response (403):


{
    "error": {
        "code": "forbidden",
        "message": "Forbidden."
    }
}
 

Example response (404):


{
    "error": {
        "code": "not_found",
        "message": "No query results for model [App\\Models\\AuditLog] 999"
    }
}
 

Request      

GET api/v1/admin/audit-logs/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The unique numeric ID of the audit log. Example: 1

Response

Response Fields

id   integer     

The unique numeric ID of the audit log entry. Example: 1

action   string     

Dot-notation action identifier. Example: booking.cancelled

entity_type   string     

Model class name of the target entity. Example: Booking

entity_id   integer     

The primary key ID of the targeted entity. Example: 42

payload   object     

Contextual event payload containing changed attributes or reason.

ip_address   string     

Client IP address from which the action was initiated. Example: 192.168.1.1

user_agent   string     

Client user agent string. Example: Mozilla/5.0

created_at   string     

ISO 8601 creation timestamp. Example: 2026-09-18T14:30:00+07:00

user   object     

Staff member who performed the action, or null for system events.

id   integer     

Staff user ID. Example: 2

name   string     

Staff user name. Example: Admin User

email   string     

Staff user email. Example: admin@livinghome.com

role   string     

Staff user role (admin or owner). Example: admin

CMS Management

Show homepage configuration

requires authentication

Returns raw database columns and currently attached media details (ID, URL, alt) for populating dashboard forms.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/home" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/home"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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."
}
 

Request      

GET api/v1/admin/home

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update homepage configuration

requires authentication

Validates and updates the homepage CMS content. Supports text/JSON parameters, about us image file replacement, primary/secondary commitment images, and seasonal promotions.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/home" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hero_eyebrow\": \"Downtown Dubai · Luxury Apartments\",
    \"hero_booking_note\": \"By booking, you agree to our terms.\",
    \"banner_image\": {
        \"id\": 11,
        \"temp_path\": \"tmp\\/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...\",
    \"about_features\": [
        \"architecto\"
    ],
    \"commitment_title\": \"Discover The Heart Of Destination\",
    \"commitment_happy_customer_count\": \"30k\",
    \"commitment_items\": [
        \"Simple & Safe Reservations\"
    ],
    \"promotions_eyebrow\": \"Seasonal Promotions\",
    \"promotions_title\": \"Check the Promotions\",
    \"promotions_description\": \"Every season at our property brings a unique charm...\",
    \"promotions_items\": [
        {
            \"image\": {
                \"id\": 16,
                \"temp_path\": \"tmp\\/bngz\",
                \"url\": \"https:\\/\\/cdn.example.com\\/images\\/promotions\\/high-season.webp\",
                \"alt\": \"High season stay\"
            }
        }
    ],
    \"amenities_quote\": \"Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.\",
    \"amenities_items\": [
        \"architecto\"
    ],
    \"cta_title\": \"Book your dream stay in Downtown Dubai today\",
    \"cta_description\": \"Reserve your stay with instant confirmation.\",
    \"about_image\": {
        \"id\": 12,
        \"temp_path\": \"tmp\\/1234-uuid.png\",
        \"alt\": \"Burj Khalifa in Dubai\"
    },
    \"commitment_primary_image\": {
        \"id\": 13,
        \"temp_path\": \"tmp\\/5678-uuid.jpg\",
        \"alt\": \"Living Home apartment\"
    },
    \"commitment_secondary_image\": {
        \"id\": 14,
        \"temp_path\": \"tmp\\/9012-uuid.jpg\",
        \"alt\": \"Living Home bedroom\"
    },
    \"promotions_banner_image\": {
        \"id\": 15,
        \"temp_path\": \"tmp\\/banner-uuid.webp\",
        \"alt\": \"Seasonal Promotions in Dubai\"
    }
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/home"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hero_eyebrow": "Downtown Dubai · Luxury Apartments",
    "hero_booking_note": "By booking, you agree to our terms.",
    "banner_image": {
        "id": 11,
        "temp_path": "tmp\/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...",
    "about_features": [
        "architecto"
    ],
    "commitment_title": "Discover The Heart Of Destination",
    "commitment_happy_customer_count": "30k",
    "commitment_items": [
        "Simple & Safe Reservations"
    ],
    "promotions_eyebrow": "Seasonal Promotions",
    "promotions_title": "Check the Promotions",
    "promotions_description": "Every season at our property brings a unique charm...",
    "promotions_items": [
        {
            "image": {
                "id": 16,
                "temp_path": "tmp\/bngz",
                "url": "https:\/\/cdn.example.com\/images\/promotions\/high-season.webp",
                "alt": "High season stay"
            }
        }
    ],
    "amenities_quote": "Luxury living with infinity pool views, Burj Khalifa at your doorstep, and all the comforts you deserve.",
    "amenities_items": [
        "architecto"
    ],
    "cta_title": "Book your dream stay in Downtown Dubai today",
    "cta_description": "Reserve your stay with instant confirmation.",
    "about_image": {
        "id": 12,
        "temp_path": "tmp\/1234-uuid.png",
        "alt": "Burj Khalifa in Dubai"
    },
    "commitment_primary_image": {
        "id": 13,
        "temp_path": "tmp\/5678-uuid.jpg",
        "alt": "Living Home apartment"
    },
    "commitment_secondary_image": {
        "id": 14,
        "temp_path": "tmp\/9012-uuid.jpg",
        "alt": "Living Home bedroom"
    },
    "promotions_banner_image": {
        "id": 15,
        "temp_path": "tmp\/banner-uuid.webp",
        "alt": "Seasonal Promotions in Dubai"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
}
 

Request      

POST api/v1/admin/home

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hero_eyebrow   string  optional    

Eyebrow title text for the hero section. Example: Downtown Dubai · Luxury Apartments

hero_booking_note   string  optional    

Footer text shown below the reservation form. Example: By booking, you agree to our terms.

banner_image   object  optional    

Details of the hero banner image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 11

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/home-banner.jpg

alt   string  optional    

Alt text for the banner image. Example: Downtown Dubai skyline at sunset

about_title   string  optional    

Primary header for the About Us section. Example: Dubai's Most Trusted Holiday Home Experience

about_description   string  optional    

Descriptive body copy for the About Us section. Example: Living Home is a newly established company...

about_features   string[]  optional    

List of feature highlights with titles, descriptions, and icon class names.

title   string  optional    

Title of the feature. Example: Prime Locations

description   string  optional    

Description of the feature. Example: Every residence is handpicked...

icon_name   string  optional    

Name of the icon asset. Example: pin

commitment_title   string  optional    

Header for the Our Commitment section. Example: Discover The Heart Of Destination

commitment_happy_customer_count   string  optional    

Counter string for customer satisfaction. Example: 30k

commitment_items   string[]  optional    

List of bullet point text lines.

promotions_eyebrow   string  optional    

Seasonal promotions eyebrow text. Example: Seasonal Promotions

promotions_title   string  optional    

Seasonal promotions title. Example: Check the Promotions

promotions_description   string  optional    

Seasonal promotions description. Example: Every season at our property brings a unique charm...

promotions_items   string[]  optional    

List of exactly 3 seasonal promotion cards.

id   integer  optional    

Unique identifier for the promotion card. Example: 1

title   string  optional    

Title of the seasonal promotion. Example: High season

time_range   string  optional    

Active date or season range. Example: October to March

price   string  optional    

Price range description. Example: AED 750 ~ 1200

image   object  optional    

Image object for the card.

id   integer  optional    

Must match an existing stored value. Example: 16

temp_path   string  optional    

Must start with one of tmp/. Example: tmp/bngz

url   string  optional    

Image URL. Example: https://cdn.example.com/images/promotions/high-season.webp

alt   string  optional    

Image alt text. Example: High season stay

amenities_quote   string  optional    

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.

amenities_items   string[]  optional    

List of selected amenities with custom promotional copy referencing existing amenity IDs.

amenity_id   integer  optional    

ID of the selected amenity from the amenities table. Example: 1

text   string  optional    

Custom marketing tagline or description for the amenity on the homepage. Example: Endless pool, skyline views.

cta_title   string  optional    

CTA block header. Example: Book your dream stay in Downtown Dubai today

cta_description   string  optional    

CTA block sub-text. Example: Reserve your stay with instant confirmation.

about_image   object  optional    

Details of the about image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 12

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/1234-uuid.png

alt   string  optional    

Alt text for the image. Example: Burj Khalifa in Dubai

commitment_primary_image   object  optional    

Details of the primary commitment image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 13

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/5678-uuid.jpg

alt   string  optional    

Alt text for the image. Example: Living Home apartment

commitment_secondary_image   object  optional    

Details of the secondary commitment image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 14

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/9012-uuid.jpg

alt   string  optional    

Alt text for the image. Example: Living Home bedroom

promotions_banner_image   object  optional    

Details of the seasonal promotions banner image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 15

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/banner-uuid.webp

alt   string  optional    

Alt text for the banner image. Example: Seasonal Promotions in Dubai

Show about us page configuration

requires authentication

Returns raw database columns and attached media details for dashboard forms.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/about-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/about-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
}
 

Request      

GET api/v1/admin/about-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update about us page configuration

requires authentication

Validates and updates the about us CMS page and its media assets.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/about-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hero_overview_description\": \"Living Home, officially registered...\",
    \"banner_image\": {
        \"id\": 50,
        \"temp_path\": \"tmp\\/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,
        \"temp_path\": \"tmp\\/uuid.jpg\",
        \"alt\": \"Luxury living room\"
    },
    \"mission_vision_secondary_image\": {
        \"id\": 52,
        \"temp_path\": \"tmp\\/uuid2.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\": [
        {
            \"name\": \"Partner 1\",
            \"temp_path\": \"tmp\\/partner_logo.png\",
            \"id\": 60,
            \"logo_url\": \"http:\\/\\/localhost:8000\\/storage\\/media\\/partner.png\"
        }
    ]
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/about-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hero_overview_description": "Living Home, officially registered...",
    "banner_image": {
        "id": 50,
        "temp_path": "tmp\/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,
        "temp_path": "tmp\/uuid.jpg",
        "alt": "Luxury living room"
    },
    "mission_vision_secondary_image": {
        "id": 52,
        "temp_path": "tmp\/uuid2.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": [
        {
            "name": "Partner 1",
            "temp_path": "tmp\/partner_logo.png",
            "id": 60,
            "logo_url": "http:\/\/localhost:8000\/storage\/media\/partner.png"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/about-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hero_overview_description   string  optional    

Hero overview text. Example: Living Home, officially registered...

banner_image   object  optional    

Details of the hero banner image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 50

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/about-banner.jpg

alt   string  optional    

Alt text for the banner image. Example: Living Home team in Downtown Dubai

core_value_trust   string  optional    

Trust value copy. Example: Your trust, our foundation.

core_value_luxury   string  optional    

Luxury value copy. Example: Premium stays, stunning views.

core_value_comfort   string  optional    

Comfort value copy. Example: Rest well, wake refreshed.

core_value_hospitality   string  optional    

Hospitality value copy. Example: Warm smiles, genuine care.

mission_vision_subtitle   string  optional    

Subtitle for mission & vision. Example: About Us

mission_vision_title   string  optional    

Title for mission & vision. Example: Mission & Vision

mission   string  optional    

Mission copy. Example: To provide exceptional holiday home experiences...

vision   string  optional    

Vision copy. Example: To become one of Dubai’s most trusted...

mission_vision_primary_image   object  optional    

Primary image upload payload. Nullable.

id   integer  optional    

Existing media ID to preserve. Example: 51

temp_path   string  optional    

Temp upload path. Example: tmp/uuid.jpg

alt   string  optional    

Image alternative text. Example: Luxury living room

mission_vision_secondary_image   object  optional    

Secondary image upload payload. Nullable.

id   integer  optional    

Existing media ID to preserve. Example: 52

temp_path   string  optional    

Temp upload path. Example: tmp/uuid2.jpg

alt   string  optional    

Image alternative text. Example: Apartment view

services_subtitle   string  optional    

Services subtitle. Example: Our services

services_title   string  optional    

Services title. Example: Everything, taken care of

services_blocks   string[]  optional    

List of service blocks.

process_step_1   string  optional    

Step 1 text. Example: Browse our curated list...

process_step_2   string  optional    

Step 2 text. Example: Quickly verify...

process_step_3   string  optional    

Step 3 text. Example: Choose your check-in...

process_step_4   string  optional    

Step 4 text. Example: Confirm your booking...

trusted_subtitle   string  optional    

Why choose us subtitle. Example: WHY CHOOSE US

trusted_title   string  optional    

Trusted globally title. Example: Trusted Globally

trusted_logos   object[]  optional    

List of partner logo objects to attach or update.

name   string     

Partner name. Example: Partner 1

temp_path   string  optional    

Temporary upload path from the media upload endpoint (e.g. tmp/...). Required when uploading a new partner logo. Example: tmp/partner_logo.png

id   integer  optional    

ID of existing media record to preserve. Nullable. Example: 60

logo_url   string  optional    

Existing logo URL when preserving without re-uploading. Nullable. Example: http://localhost:8000/storage/media/partner.png

Show apartments page configuration

requires authentication

Returns the editable title and attached banner media details for the apartments listing page.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/apartment-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartment-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
}
 

Request      

GET api/v1/admin/apartment-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update apartments page configuration

requires authentication

Validates and updates the apartments listing page title and hero banner image.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/apartment-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hero_title\": \"Find Your Perfect Stay in Dubai\",
    \"banner_image\": {
        \"id\": 70,
        \"temp_path\": \"tmp\\/apartment-banner.jpg\",
        \"alt\": \"Luxury apartments in Downtown Dubai\"
    }
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/apartment-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hero_title": "Find Your Perfect Stay in Dubai",
    "banner_image": {
        "id": 70,
        "temp_path": "tmp\/apartment-banner.jpg",
        "alt": "Luxury apartments in Downtown Dubai"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/apartment-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hero_title   string  optional    

Title displayed in the apartments page hero section. Example: Find Your Perfect Stay in Dubai

banner_image   object  optional    

Details of the hero banner image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 70

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/apartment-banner.jpg

alt   string  optional    

Alt text for the banner image. Example: Luxury apartments in Downtown Dubai

Show contact page configuration

requires authentication

Returns raw database columns and currently attached partnership media details (ID, URL, alt) for dashboard forms.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/contact-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/contact-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
}
 

Request      

GET api/v1/admin/contact-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update contact page configuration

requires authentication

Validates and updates the contact page CMS content and partnership image.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/contact-page" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hero_description\": \"Our concierge team is here around the clock...\",
    \"banner_image\": {
        \"id\": 60,
        \"temp_path\": \"tmp\\/contact-banner.jpg\",
        \"alt\": \"Concierge desk\"
    },
    \"contact_address\": \"Room 1004, B2B Tower, Business Bay, Dubai\",
    \"contact_phone_numbers\": [
        \"+971 528199289\"
    ],
    \"contact_email\": \"holidayhome@happylivinghome.com\",
    \"contact_working_hours\": \"24\\/7 concierge & guest support\",
    \"contact_social_links\": {
        \"facebook\": \"https:\\/\\/facebook.com\\/livinghome\",
        \"instagram\": \"h\",
        \"tiktok\": \"w\",
        \"linkedin\": \"a\"
    },
    \"partnership_description\": \"Lorem Ipsum is simply dummy text...\",
    \"partnership_phone_numbers\": [
        \"+971 123456789\"
    ],
    \"partnership_email\": \"mypartnership@gmail.com\",
    \"partnership_image\": {
        \"id\": 15,
        \"temp_path\": \"tmp\\/abcd-uuid.jpg\",
        \"alt\": \"Partnership Hero Image\"
    },
    \"map_latitude\": 25.2355,
    \"map_longitude\": 55.3003
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/contact-page"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hero_description": "Our concierge team is here around the clock...",
    "banner_image": {
        "id": 60,
        "temp_path": "tmp\/contact-banner.jpg",
        "alt": "Concierge desk"
    },
    "contact_address": "Room 1004, B2B Tower, Business Bay, Dubai",
    "contact_phone_numbers": [
        "+971 528199289"
    ],
    "contact_email": "holidayhome@happylivinghome.com",
    "contact_working_hours": "24\/7 concierge & guest support",
    "contact_social_links": {
        "facebook": "https:\/\/facebook.com\/livinghome",
        "instagram": "h",
        "tiktok": "w",
        "linkedin": "a"
    },
    "partnership_description": "Lorem Ipsum is simply dummy text...",
    "partnership_phone_numbers": [
        "+971 123456789"
    ],
    "partnership_email": "mypartnership@gmail.com",
    "partnership_image": {
        "id": 15,
        "temp_path": "tmp\/abcd-uuid.jpg",
        "alt": "Partnership Hero Image"
    },
    "map_latitude": 25.2355,
    "map_longitude": 55.3003
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/contact-page

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hero_description   string  optional    

Hero subtitle copy. Example: Our concierge team is here around the clock...

banner_image   object  optional    

Details of the hero banner image. Nullable to clear image.

id   integer  optional    

ID of existing image to keep. Example: 60

temp_path   string  optional    

Temp path of newly uploaded image. Example: tmp/contact-banner.jpg

alt   string  optional    

Alt text for the banner image. Example: Concierge desk

contact_address   string  optional    

Physical office address. Example: Room 1004, B2B Tower, Business Bay, Dubai

contact_phone_numbers   string[]  optional    

List of support phone numbers.

contact_email   string  optional    

Concierge email address. Example: holidayhome@happylivinghome.com

contact_working_hours   string  optional    

Hours copy. Example: 24/7 concierge & guest support

contact_social_links   object  optional    

Social media links.

facebook   string  optional    

Must not be greater than 255 characters. Example: k

instagram   string  optional    

Must not be greater than 255 characters. Example: h

tiktok   string  optional    

Must not be greater than 255 characters. Example: w

linkedin   string  optional    

Must not be greater than 255 characters. Example: a

partnership_description   string  optional    

Partnership pitch text. Example: Lorem Ipsum is simply dummy text...

partnership_phone_numbers   string[]  optional    

Partnership phone numbers.

partnership_email   string  optional    

Partnership email address. Example: mypartnership@gmail.com

partnership_image   object  optional    

Partnership image upload or replacement payload. Nullable.

id   integer  optional    

Existing media ID to preserve. Example: 15

temp_path   string  optional    

Temp upload path. Example: tmp/abcd-uuid.jpg

alt   string  optional    

Image alternative text. Example: Partnership Hero Image

map_latitude   number  optional    

Latitude coordinate. Example: 25.2355

map_longitude   number  optional    

Longitude coordinate. Example: 55.3003

Show privacy policy configuration

requires authentication

Returns raw database columns for privacy policy dashboard editor.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/privacy-policy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/privacy-policy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "privacy_policy": "<h2>Privacy Policy</h2>...",
    "share_information": "<h3>Information Sharing</h3>...",
    "cookies_tracking": "<h3>Cookies & Tracking</h3>...",
    "created_at": "2026-09-25T11:00:00.000000Z",
    "updated_at": "2026-09-25T11:00:00.000000Z"
}
 

Request      

GET api/v1/admin/privacy-policy

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update privacy policy configuration

requires authentication

Validates and updates the rich text privacy policy sections.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/privacy-policy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"privacy_policy\": \"<h2>Privacy Policy<\\/h2><p>Our commitment...<\\/p>\",
    \"share_information\": \"<h3>Information Sharing<\\/h3><p>We do not share data...<\\/p>\",
    \"cookies_tracking\": \"<h3>Cookies & Tracking<\\/h3><p>We use essential cookies...<\\/p>\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/privacy-policy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "privacy_policy": "<h2>Privacy Policy<\/h2><p>Our commitment...<\/p>",
    "share_information": "<h3>Information Sharing<\/h3><p>We do not share data...<\/p>",
    "cookies_tracking": "<h3>Cookies & Tracking<\/h3><p>We use essential cookies...<\/p>"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "privacy_policy": "<h2>Privacy Policy</h2>...",
    "share_information": "<h3>Information Sharing</h3>...",
    "cookies_tracking": "<h3>Cookies & Tracking</h3>...",
    "created_at": "2026-09-25T11:00:00.000000Z",
    "updated_at": "2026-09-25T11:00:00.000000Z"
}
 

Request      

POST api/v1/admin/privacy-policy

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

privacy_policy   string     

Rich text HTML for privacy policy. Example: <h2>Privacy Policy</h2><p>Our commitment...</p>

share_information   string     

Rich text HTML for info sharing. Example: <h3>Information Sharing</h3><p>We do not share data...</p>

cookies_tracking   string     

Rich text HTML for cookies policy. Example: <h3>Cookies & Tracking</h3><p>We use essential cookies...</p>

Show cancellation policies configuration

requires authentication

Returns all configured cancellation policies for the dashboard editor.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/cancellation-policy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/cancellation-policy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    ]
}
 

Request      

GET api/v1/admin/cancellation-policy

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update cancellation policies configuration

requires authentication

Validates and replaces the cancellation policies list in the CMS.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/cancellation-policy" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": [
        {
            \"title\": \"Refundable booking policy\",
            \"details\": [
                \"The guests can cancel free of charge until 1 day before arrival.\"
            ]
        }
    ]
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/cancellation-policy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "data": [
        {
            "title": "Refundable booking policy",
            "details": [
                "The guests can cancel free of charge until 1 day before arrival."
            ]
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    ]
}
 

Request      

POST api/v1/admin/cancellation-policy

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

data   object[]     

List of cancellation policies.

title   string     

Title of policy. Example: Refundable booking policy

details   string[]     

Array of policy conditions.

Contact Inquiry Management

APIs for managing contact form submissions in the admin dashboard.

List inquiries

requires authentication

Retrieve all contact inquiries with pagination, searching, and status filtering.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/inquiries?page=1&per_page=20&search=john&status=unread" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/inquiries"
);

const params = {
    "page": "1",
    "per_page": "20",
    "search": "john",
    "status": "unread",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    ]
}
 

Request      

GET api/v1/admin/inquiries

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

page   integer  optional    

Page number. Example: 1

per_page   integer  optional    

Items per page (max 100). Example: 20

search   string  optional    

Match name, email, phone, or message content. Example: john

status   string  optional    

Filter by status (unread, read, replied, archived). Example: unread

View inquiry details

requires authentication

Retrieve single contact inquiry details.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/inquiries/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/inquiries/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Request      

GET api/v1/admin/inquiries/{inquiry_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

inquiry_id   integer     

The ID of the inquiry. Example: 1

inquiry   integer     

The ID of the inquiry. Example: 1

Update inquiry status

requires authentication

Update the workflow status of an inquiry (e.g. unread, read, replied, archived).

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/inquiries/1/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"replied\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/inquiries/1/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "replied"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Request      

PATCH api/v1/admin/inquiries/{inquiry_id}/status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

inquiry_id   integer     

The ID of the inquiry. Example: 1

inquiry   integer     

The ID of the inquiry. Example: 1

Body Parameters

status   string     

Workflow status of the inquiry (unread, read, replied, archived). Example: replied

Must be one of:
  • unread
  • read
  • replied
  • archived

Delete inquiry

requires authentication

Remove an inquiry record permanently.

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/inquiries/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/inquiries/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Inquiry deleted successfully!"
}
 

Request      

DELETE api/v1/admin/inquiries/{inquiry_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

inquiry_id   integer     

The ID of the inquiry. Example: 1

inquiry   integer     

The ID of the inquiry. Example: 1

Customer Management

APIs for managing guest (customer) accounts in the admin dashboard.

List customers

requires authentication

Retrieve all customer accounts (guests) with pagination and filtering.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/customers?page=1&per_page=20&search=john&status=active" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 16,
    \"per_page\": 22,
    \"search\": \"g\",
    \"status\": \"architecto\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/customers"
);

const params = {
    "page": "1",
    "per_page": "20",
    "search": "john",
    "status": "active",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 16,
    "per_page": 22,
    "search": "g",
    "status": "architecto"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
        }
    ]
}
 

Request      

GET api/v1/admin/customers

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

page   integer  optional    

Page number. Example: 1

per_page   integer  optional    

Items per page (max 100). Example: 20

search   string  optional    

Match customer name, email, or phone. Example: john

status   string  optional    

Filter by customer status (active, inactive, suspended). Example: active

Body Parameters

page   integer  optional    

Must be at least 1. Example: 16

per_page   integer  optional    

Must be at least 1. Must not be greater than 100. Example: 22

search   string  optional    

Must not be greater than 100 characters. Example: g

status   string  optional    

Example: architecto

Must be one of:
  • active
  • inactive
  • suspended

Create customer

requires authentication

Create a new guest customer account.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/customers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"John Doe\",
    \"email\": \"john.doe@example.com\",
    \"phone\": \"+971501234567\",
    \"status\": \"active\",
    \"avatar_temp_path\": \"tmp\\/1234-uuid.jpg\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/customers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+971501234567",
    "status": "active",
    "avatar_temp_path": "tmp\/1234-uuid.jpg"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "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"
    }
}
 

Request      

POST api/v1/admin/customers

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

The full name of the customer. Must not be greater than 255 characters. Example: John Doe

email   string     

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   string  optional    

Optional contact phone number in E.164 format. Must not be greater than 20 characters. Example: +971501234567

status   string  optional    

Account status (active, inactive, suspended). Defaults to active. Example: active

Must be one of:
  • active
  • inactive
  • suspended
avatar_temp_path   string  optional    

Optional temporary path for the uploaded avatar image. Must start with one of tmp/. Example: tmp/1234-uuid.jpg

Update customer status

requires authentication

Update the status of a specific customer account (e.g., suspend or reactivate).

Example request:
curl --request PATCH \
    "http://living-home-api.test/api/v1/admin/customers/1/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"architecto\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/customers/1/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "architecto"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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"
    }
}
 

Request      

PATCH api/v1/admin/customers/{user_id}/status

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 1

user   integer     

The ID of the customer. Example: 4

Body Parameters

status   string     

Example: architecto

Must be one of:
  • active
  • inactive
  • suspended

Endpoints

Get dashboard summary data

requires authentication

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/dashboard" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/dashboard"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
  "kpis": {...},
  "charts": {...},
  "tables": {...}
}
 

Request      

GET api/v1/admin/dashboard

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Media

APIs for handling file uploads.

Request Upload Intent

requires authentication

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

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/media/intent" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filename\": \"avatar.jpg\",
    \"content_type\": \"image\\/jpeg\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/media/intent"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filename": "avatar.jpg",
    "content_type": "image\/jpeg"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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": {}
}
 

Request      

POST api/v1/media/intent

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

filename   string     

The original filename of the upload. Example: avatar.jpg

content_type   string     

The MIME type of the file. Example: image/jpeg

Upload File (Local Strategy)

requires authentication

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.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/media/local-upload?path=tmp%2F1234-uuid.jpg" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "path=tmp/bngz"\
    --form "file=@C:\Users\User\AppData\Local\Temp\php2D7E.tmp" 
const url = new URL(
    "http://living-home-api.test/api/v1/media/local-upload"
);

const params = {
    "path": "tmp/1234-uuid.jpg",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('path', 'tmp/bngz');
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "message": "File uploaded successfully",
    "path": "tmp/1234-uuid.jpg"
}
 

Request      

POST api/v1/media/local-upload

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Query Parameters

path   string     

The temporary path generated by the intent endpoint. Example: tmp/1234-uuid.jpg

Body Parameters

path   string     

Must start with one of tmp/. Example: tmp/bngz

file   file     

The raw file to upload. Example: C:\Users\User\AppData\Local\Temp\php2D7E.tmp

Payment Dashboard

List payments

requires authentication

All payment records (Paymob + cash) with a Paymob dashboard link-out for online transactions (A7).

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/payments?status=succeeded&provider=paymob&from=2026-08-01&to=2026-08-31&search=BK-2026&page=1&per_page=20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/payments"
);

const params = {
    "status": "succeeded",
    "provider": "paymob",
    "from": "2026-08-01",
    "to": "2026-08-31",
    "search": "BK-2026",
    "page": "1",
    "per_page": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/admin/payments

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Query Parameters

status   string  optional    

Filter by payment status. Example: succeeded

provider   string  optional    

Filter by provider. Example: paymob

from   string  optional    

date Payments created on or after this date. Example: 2026-08-01

to   string  optional    

date Payments created on or before this date. Example: 2026-08-31

search   string  optional    

Match booking code or Paymob transaction id. Example: BK-2026

page   integer  optional    

Page number. Example: 1

per_page   integer  optional    

Items per page (max 100). Example: 20

Create payment

requires authentication

Standalone endpoint to record a manual payment for a booking.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"booking_id\": 1,
    \"amount\": 500,
    \"provider\": \"cash\",
    \"currency\": \"AED\",
    \"paid_at\": \"2026-08-27 14:00:00\",
    \"notes\": \"POS receipt #1234\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/payments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "booking_id": 1,
    "amount": 500,
    "provider": "cash",
    "currency": "AED",
    "paid_at": "2026-08-27 14:00:00",
    "notes": "POS receipt #1234"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/payments

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

booking_id   integer     

The ID of the booking. Example: 1

amount   number     

Payment amount in AED (e.g. 500.00). Example: 500

provider   string  optional    

Payment method/provider (e.g. cash, card, bank_transfer, pos, other). Example: cash

currency   string  optional    

3-letter currency code. Example: AED

paid_at   string  optional    

Timestamp when payment occurred. Example: 2026-08-27 14:00:00

notes   string  optional    

Optional notes or transaction reference. Example: POS receipt #1234

Record payment for a booking

requires authentication

Collect cash, POS card terminal, bank transfer, or other manual payments against an existing booking. Handles full payment, partial deposit, or remaining balance.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/bookings/1/payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"booking_id\": 1,
    \"amount\": 500,
    \"provider\": \"cash\",
    \"currency\": \"AED\",
    \"paid_at\": \"2026-08-27 14:00:00\",
    \"notes\": \"POS receipt #1234\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/bookings/1/payments"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "booking_id": 1,
    "amount": 500,
    "provider": "cash",
    "currency": "AED",
    "paid_at": "2026-08-27 14:00:00",
    "notes": "POS receipt #1234"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/bookings/{id}/payments

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the booking. Example: 1

Body Parameters

booking_id   integer     

The ID of the booking (required if not specified in route URL). Must match an existing stored value. Example: 1

amount   number     

Payment amount in AED (e.g. 500.00). Example: 500

provider   string  optional    

Payment method/provider (e.g. cash, card, bank_transfer, pos, other). Example: cash

currency   string  optional    

3-letter currency code. Example: AED

paid_at   string  optional    

Timestamp when payment occurred. Example: 2026-08-27 14:00:00

notes   string  optional    

Optional notes or transaction reference. Example: POS receipt #1234

Refund a payment

requires authentication

Full refund via Paymob (A7/D11). Also the retry path when an automatic cancellation refund failed at the gateway.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/payments/1/refund" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"Guest cancelled\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/payments/1/refund"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "Guest cancelled"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/admin/payments/{id}/refund

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the payment. Example: 1

Body Parameters

reason   string  optional    

Reason recorded on the refund. Example: Guest cancelled

List failed payment callback jobs

requires authentication

Returns a list of failed Paymob callback background jobs from the failed_jobs queue table.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/payments/failed-callbacks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/payments/failed-callbacks"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/admin/payments/failed-callbacks

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Retry a failed payment callback job

requires authentication

Manually triggers a retry for a failed Paymob callback job by its ID.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/payments/failed-callbacks/architecto/retry" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/payments/failed-callbacks/architecto/retry"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/admin/payments/failed-callbacks/{id}/retry

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The ID of the failed callback. Example: architecto

Service Management

List additional services

requires authentication

Retrieve all additional services ordered by their sort order.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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
        }
    ]
}
 

Request      

GET api/v1/admin/services

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get an additional service

requires authentication

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 21,
        "code": "SVC-724",
        "name": "quidem nostrum",
        "description": "Commodi incidunt iure odit.",
        "price": 50,
        "per_night": false,
        "active": true,
        "sort_order": 0
    }
}
 

Request      

GET api/v1/admin/services/{service_id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

service_id   integer     

The ID of the service. Example: 1

service   integer     

The service ID. Example: 1

Create an additional service

requires authentication

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"airport_transfer\",
    \"name\": \"Airport transfer\",
    \"description\": \"Private airport transfer\",
    \"price\": 15000,
    \"per_night\": false,
    \"active\": true
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "airport_transfer",
    "name": "Airport transfer",
    "description": "Private airport transfer",
    "price": 15000,
    "per_night": false,
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201, Additional service created):


{
    "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."
}
 

Request      

POST api/v1/admin/services

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

code   string     

Unique service code. Example: airport_transfer

name   string     

Display name. Example: Airport transfer

description   string  optional    

Description of the service. Example: Private airport transfer

price   integer     

Price in the smallest currency unit. Example: 15000

per_night   boolean  optional    

Whether the price is charged per night. Example: false

active   boolean  optional    

Whether the service is available for booking. Example: true

Update an additional service

requires authentication

Example request:
curl --request PUT \
    "http://living-home-api.test/api/v1/admin/services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"airport_transfer\",
    \"name\": \"Airport transfer\",
    \"description\": \"Private airport transfer\",
    \"price\": 15000,
    \"per_night\": false,
    \"active\": true
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "airport_transfer",
    "name": "Airport transfer",
    "description": "Private airport transfer",
    "price": 15000,
    "per_night": false,
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Additional service updated):


{
    "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."
}
 

Request      

PUT api/v1/admin/services/{id}

PATCH api/v1/admin/services/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the service. Example: 1

service   integer     

The service ID. Example: 1

Body Parameters

code   string  optional    

Unique service code. Example: airport_transfer

name   string  optional    

Display name. Example: Airport transfer

description   string  optional    

Description of the service. Example: Private airport transfer

price   integer  optional    

Price in the smallest currency unit. Example: 15000

per_night   boolean  optional    

Whether the price is charged per night. Example: false

active   boolean  optional    

Whether the service is available for booking. Example: true

Delete an additional service

requires authentication

Example request:
curl --request DELETE \
    "http://living-home-api.test/api/v1/admin/services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Request      

DELETE api/v1/admin/services/{id}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the service. Example: 1

service   integer     

The service ID. Example: 1

Update service sort order

requires authentication

Change the display order of an additional service in the admin catalog.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/services/1/update-sort-order" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"sort_order\": \"2\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/services/1/update-sort-order"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sort_order": "2"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Sort order updated):


{
    "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"
}
 

Request      

POST api/v1/admin/services/{service_id}/update-sort-order

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

service_id   integer     

The ID of the service. Example: 1

service   integer     

The service ID. Example: 1

Body Parameters

sort_order   numeric     

Display position. Example: 2

Settings Management

Show global settings

requires authentication

Returns structured global configuration including financial, pricing, and stay policy rules.

Example request:
curl --request GET \
    --get "http://living-home-api.test/api/v1/admin/settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "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."
}
 

Request      

GET api/v1/admin/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Update global settings

requires authentication

Updates financial & pricing settings or booking & stay policies. Supports full or partial updates.

Example request:
curl --request POST \
    "http://living-home-api.test/api/v1/admin/settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"financial\": {
        \"vat_rate\": 500,
        \"payment_processing_fee\": 20,
        \"default_currency\": \"AED\",
        \"hotel_categories\": [
            \"architecto\"
        ],
        \"security_deposit_rates\": [
            \"architecto\"
        ]
    },
    \"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!\"
}"
const url = new URL(
    "http://living-home-api.test/api/v1/admin/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "financial": {
        "vat_rate": 500,
        "payment_processing_fee": 20,
        "default_currency": "AED",
        "hotel_categories": [
            "architecto"
        ],
        "security_deposit_rates": [
            "architecto"
        ]
    },
    "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!"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "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."
}
 

Request      

POST api/v1/admin/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

financial   object  optional    

Financial and pricing configuration settings.

vat_rate   integer  optional    

VAT rate in basis points (e.g. 500 = 5.00%). Example: 500

payment_processing_fee   number  optional    

Flat payment processing fee in AED (e.g. 20.00). Example: 20

default_currency   string  optional    

ISO currency code. Example: AED

hotel_categories   string[]  optional    

List of property categories and their Dubai Tourism Dirham fee per bedroom.

code   string  optional    

Slug identifier. Example: four_star

name   string  optional    

Human-readable name. Example: 4-Star / Superior

fee_per_bedroom   number  optional    

Fee per bedroom per night in AED. Example: 15

security_deposit_rates   string[]  optional    

List of security deposit rates by bedroom count.

bedrooms   integer  optional    

Bedroom count. Example: 1

amount   number  optional    

Security deposit amount in AED. Example: 100

policies   object  optional    

Booking rules and stay policy settings.

check_in_time   string  optional    

Standard check-in time (HH:mm format). Example: 14:00

check_out_time   string  optional    

Standard check-out time (HH:mm format). Example: 12:00

cancellation_threshold_hours   integer  optional    

Hours before check-in date when free cancellation closes. Example: 24

booking_hold_minutes   integer  optional    

Minutes inventory is held pending payment completion. Example: 15

min_stay_nights_default   integer  optional    

Minimum stay nights fallback. Example: 1

max_advance_booking_days   integer  optional    

Maximum days in advance a stay can be booked. Example: 365

receipt_footer_text   string  optional    

Custom footer note displayed on customer receipts. Example: Thank you for booking with us!