Booking Hotels
  1. Hotels
Booking Hotels
  • About API
  • Auth
    • Register
      POST
    • Login by Password
      POST
    • Login by Access Token
      GET
    • Renew Access Token
      GET
    • Update Password
      PATCH
    • Update Profile
      PATCH
    • Request Forgot Password
      POST
    • Verify Forgot Password
      POST
    • Confirm Forgot Password
      PATCH
    • Logout
      DELETE
  • Hotels
    • Get Hotel List
      GET
    • Get Hotel by Id
      GET
    • Create Hotel
      POST
    • Update Hotel by Id
      PATCH
    • Delete Hotel by Id
      DELETE
  • Rooms
    • Get Room List
      GET
    • Get Room by Id
      GET
    • Create Room
      POST
    • Update Room by Id
      PATCH
    • Delete Room by Id
      DELETE
  • Bookings
    • Actions
      • Pay Booking by Id
      • Cancel Booking by Id
      • Check In Booking by Id
    • Get Booking List
      GET
    • Get Booking by Id
      GET
    • Create Booking
      POST
  • Check Service Status
    GET
  1. Hotels

Get Hotel by Id

GET
/api/v1/hotels/{hotel_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/hotels/1'
Response Response Example
{
    "status_code": 200,
    "message": "Get Hotel by Id Success.",
    "data": {
        "id": 1,
        "created_at": "2025-03-24T11:06:36.270Z",
        "updated_at": "2024-08-24T11:06:36.270Z",
        "name": "Genevieve Stroman",
        "location": "aute eu sint minim",
        "rating": 5,
        "owner": {
            "id": 1,
            "created_at": "2025-03-24T14:38:44.531Z",
            "updated_at": "2024-04-24T14:38:44.531Z",
            "name": "Willie Jaskolski V",
            "email": "Kale_Becker44@hotmail.com",
            "phone_number": "087978362121"
        }
    }
}

Request

Path Params
hotel_id
string 
required
Example:
1

Responses

🟢200Success
application/json
Body
status_code
number 
required
message
string 
required
data
object 
required
id
number 
required
created_at
string 
required
updated_at
string 
required
name
string 
required
location
string 
required
rating
number 
required
owner
object 
required
Previous
Get Hotel List
Next
Create Hotel
Built with