Skip to main content

Create Hotel Master API

Overview​

Creates a new Hotel Master entity containing address, star rating, check-in/out times, timezone, amenities, GST details, and property code.

  • Endpoint: /api/hotels/create
  • Method: POST

Request Body Schema​

FieldTypeRequiredDescription
nameStringYesDisplay name of the hotel
brandNameStringNoHotel brand name
starRatingEnumNoONE, TWO, THREE, FOUR, FIVE, UNRATED (Default: UNRATED)
descriptionStringNoHotel description
addressStringYesStreet address
cityIdNumberNoCity ID reference
stateIdNumberNoState ID reference
pincodeStringNoArea pincode
latitudeNumberNoLatitude coordinate
longitudeNumberNoLongitude coordinate
phoneStringNoContact phone number
emailStringNoHotel email address
websiteStringNoOfficial website URL
checkInTimeStringNoDefault check-in time (Default: "14:00")
checkOutTimeStringNoDefault check-out time (Default: "11:00")
timezoneStringNoTimezone (Default: "Asia/Kolkata")
amenitiesStringNoAmenities list
amenitiesListArray of ObjectsNoList of amenity map objects (each item having optional id and required amenityId). Pass id: null for new entries or existing map ID if updating
imagesStringNoImage URLs array or comma-separated links
cancellationPolicyStringNoDetailed property cancellation policy text
gstinStringNoGSTIN number
gstTypeEnumNoREGISTERED, UNREGISTERED, COMPOSITION, or SEZ
propertyCodeStringNoUnique property code
supplierIdString (UUID)NoThird-party supplier ID reference
tripjackHotelIdStringNoTripJack hotel identifier (e.g. "100234")
regionIdsArray of StringsNoArray of CityRegion UUIDs or numeric cityRegionId strings to map hotel to regions

Request Body Example​

{
"name": "Grand Palace Resort & Spa",
"brandName": "Grand Palace",
"starRating": "FIVE",
"description": "Luxury 5-star resort in North Goa",
"address": "123 Beach Road",
"cityId": 1,
"stateId": 1,
"pincode": "403001",
"latitude": 15.4989,
"longitude": 73.8278,
"phone": "+919876543210",
"email": "stay@grandpalace.com",
"website": "https://www.grandpalace.com",
"checkInTime": "14:00",
"checkOutTime": "11:00",
"timezone": "Asia/Kolkata",
"amenities": "WiFi, Pool, Spa, Gym",
"amenitiesList": [
{
"id": null,
"amenityId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
}
],
"images": "https://example.com/img1.jpg",
"cancellationPolicy": "Free cancellation 48h before check-in",
"gstin": "30AAAAA0000A1Z5",
"gstType": "REGISTERED",
"propertyCode": "GP-GOA-001",
"tripjackHotelId": "100234",
"regionIds": ["c1b2a3d4-5678-90ef-1234-567890abcdef"]
}

Response Example (201 Created)​

{
"success": true,
"data": {
"id": "7a8b9c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d",
"name": "Grand Palace Resort & Spa",
"starRating": "FIVE",
"timezone": "Asia/Kolkata",
"active": true,
"createdAt": "2026-09-01T12:00:00.000Z"
},
"message": "Hotel Master created successfully"
}