Multi-tenant hotel management platform. Designed for hotel owners and groups managing one or more properties. Tracks occupancy, revenues, F&B, staff, maintenance, utilities and operational budgets using 10-day reporting periods β€” based on real hotel operational data.

Django REST Framework JWT Auth PostgreSQL Multi-tenant

Version

v1.0 Beta

Base URL

/api/v1/

Authentication

Bearer JWT

Format

JSON / HTML

πŸ” How to Authenticate

Step 1 β€” Send a POST request with your credentials to get a JWT token pair:

POST https://hotel.parsing.eu/api/v1/auth/login/ Content-Type: application/json { "email": "your@email.com", "password": "yourpassword" }

Step 2 β€” Include the access token in the Authorization header of every request:

# Add this header to all protected requests: Authorization: Bearer eyJhbGciOiJIUzI1NiIs...

To browse the API in the browser: click "Log in" at the top-right corner of any endpoint page and sign in with your email and password.

πŸ“‘ All API Endpoints
πŸ”
Authentication
Login, logout, token refresh, user profile
β–Ά
POST
Login β€” returns access + refresh JWT tokens
πŸ”“ Public β€” no token required
POST
Logout β€” blacklists the refresh token
πŸ”’ Requires authentication token
POST
Get a new access token using a refresh token
πŸ”“ Public β€” no token required
GET
Get current user profile and accessible hotels
πŸ”’ Requires authentication token
POST
Change password for the current user
πŸ”’ Requires authentication token
GET
List all users (admin only)
πŸ”’ Requires authentication token
GET
List hotel access permissions
πŸ”’ Requires authentication token
🏨
Core β€” Hotels & Periods
Hotel owners, hotels, seasons, 10-day periods, tour operators
β–Ά
CRUD
Hotel owner groups (GET list, POST create)
πŸ”’ Requires authentication token
CRUD
Hotels β€” filtered by your access permissions
πŸ”’ Requires authentication token
CRUD
Season definitions per hotel and year (Pre/High/Off)
πŸ”’ Requires authentication token
CRUD
10-day operational periods (filter by hotel, year, month)
πŸ”’ Requires authentication token
CRUD
Tour operators linked to each hotel with VAT rates
πŸ”’ Requires authentication token
πŸ›οΈ
Occupancy
Daily room and bednight occupancy, occupancy budgets
β–Ά
CRUD
Daily occupancy: rooms occupied, bednights by board type (AI/FB/HB/BB/BO), guests
πŸ”’ Requires authentication token
CRUD
Occupancy budget targets per 10-day period
πŸ”’ Requires authentication token
πŸ’°
Revenues
Tour operator revenues and package (arrangement) revenues
β–Ά
CRUD
Revenue per tour operator per period: gross with/without VAT, bednights, net pppd
πŸ”’ Requires authentication token
CRUD
Total package revenue per period: foreign, local, net, supplement, pppd vs budget
πŸ”’ Requires authentication token
🍽️
F&B & Extra Revenue
Food, beverage, cost of sales, banquets, conferences, rentals
β–Ά
CRUD
F&B categories: Food / Beverage / Extra / Cost of Sales
πŸ”’ Requires authentication token
CRUD
F&B entries per period: amount, non-AI bednights, pppd, vs previous year
πŸ”’ Requires authentication token
CRUD
Extra revenue: Banquet / Conference / Rental / Other per period
πŸ”’ Requires authentication token
πŸ‘₯
Staff
Department headcount and salary costs per period
β–Ά
CRUD
Departments: Front Office, Housekeeping, Restaurant, Bars, Kitchen, Animation, Admin…
πŸ”’ Requires authentication token
CRUD
Staff entry per department/period: headcount, salary, vs previous year / last closure
πŸ”’ Requires authentication token
πŸ”§
Maintenance & Utilities
Maintenance costs, water, electricity, oil, gas consumption
β–Ά
CRUD
Maintenance categories (Maintenance or Utility type)
πŸ”’ Requires authentication token
CRUD
Maintenance cost entries per period: amount, pppd, vs previous year
πŸ”’ Requires authentication token
CRUD
Utility consumption: Water (mΒ³), Electricity (kWh), Oil (L), Gas β€” quantity, unit price, total
πŸ”’ Requires authentication token
πŸ“Š
Budget
Revenue and cost budget targets per period (Operational vs Original)
β–Ά
CRUD
Revenue budget: package gross/net, pppd, extra revenue, total revenue
πŸ”’ Requires authentication token
CRUD
Cost budget: F&B, staff, maintenance, utilities, total cost
πŸ”’ Requires authentication token
πŸ“ˆ
Reports
Aggregated operational reports across periods
β–Ά
GET
Period summary: all KPIs aggregated β€” occupancy, revenues, costs for hotel/year/month
πŸ”’ Requires authentication token
GET
Monthly occupancy statistics: rooms, bednights by board type, guests
πŸ”’ Requires authentication token