Booking Hotels
  1. Entity
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 Booking by Id
    • Create Booking
  • Check Service Status
    GET
  • Schemas
    • Entity
      • Hotel Entity
      • Room Entity
      • Booking Entity
      • Booking Status History Entity
      • Base Entity
      • User Entity
    • Shared
      • Pagination Meta
    • Constant
      • Booking Status
  1. Entity

Booking Entity

{
    "id": 0,
    "created_at": "string",
    "updated_at": "string",
    "check_in_date": "string",
    "check_out_date": "string",
    "total_price": 0,
    "status": {
        "key": 0,
        "value": "waiting_for_payment"
    },
    "user": {
        "id": 0,
        "created_at": "string",
        "updated_at": "string",
        "name": "string",
        "email": "string",
        "phone_number": "string"
    },
    "hotel": {
        "id": 0,
        "created_at": "string",
        "updated_at": "string",
        "name": "string",
        "location": "string",
        "rating": 0
    },
    "room": {
        "id": 0,
        "created_at": "string",
        "updated_at": "string",
        "name": "string",
        "price_per_night": 0,
        "max_guests": 0,
        "available_rooms_per_day": 0
    },
    "status_histories": [
        {
            "id": 0,
            "created_at": "string",
            "updated_at": "string",
            "status": {
                "key": 0,
                "value": "waiting_for_payment"
            }
        }
    ]
}
Built with