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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": "« Previous",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": "« Previous",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Example response (401):
{
"error": {
"code": "unauthenticated",
"message": "Unauthenticated."
}
}
Example response (403):
{
"error": {
"code": "forbidden",
"message": "Forbidden."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": {...}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": {}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.