POST/hotelmaprequest

Create Hotel Map Request

Hotel Map Request

Implementation Notes:

This method enables users to add a new hotel to the ReviewsAPI database if it is not already listed. Users can provide details such as the hotel name, address, geographic coordinates, and optionally include reference URLs or preferred website codes to assist with mapping. A unique requestid is automatically generated for each mapping request.

Mandatory Fields:

  • hotelName
  • address
  • city
  • state
  • country
  • zip

Status Code:

  • 1 - Queued
  • 2 - Work in progress
  • 3 - Completed
  • 4 - Hotel exists
  • 5 - Feasibility failed
  • 6 - Source unavailable
POST/hotelmaprequest

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectOptionalnone
» hotelNamebodystringOptionalnone
» addressbodystringOptionalnone
» citybodystringOptionalnone
» statebodystringOptionalnone
» countrybodystringOptionalnone
» zipbodystringOptionalnone
» latitudebodynumberOptionalnone
» longitudebodynumberOptionalnone
» urlbody[string]Optionalnone
» websiteCodesbody[integer]Optionalnone

Responses

StatusMeaningDescriptionSchema
201CreatedCreated
400Bad RequestBad requestNone
401UnauthorizedAuthorization FailedNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST http://localhost:3000/hotelmaprequest \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "hotelName": "",
  "address": "",
  "city": "",
  "state": "",
  "country": "",
  "zip": "",
  "latitude": 0,
  "longitude": 0,
  "url": [
    "string"
  ],
  "websiteCodes": [
    0
  ]
}

Example responses

201 Response
{
  "requestId": 0,
  "referenceHotelCodes": [
    0
  ],
  "statusCode": 1,
  "statusMsg": "string",
  "approximateTime": "2019-08-24",
  "createdDate": "2024-04-30T08:10:49.835Z"
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.