POST/hotelmaprequest

Create Hotelmaprequest

This method enables users to add a new hotel to the RatesAPI 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.
POST/hotelmaprequest

Mandatory Fields

  • hotelname
  • address
  • city
  • state
  • country
  • zip

Optional Fields

  • body

Parameter Details

NameInTypeRequiredDescription
bodybodynewmapreqOptionalnone

Responses

StatusMeaningDescriptionSchema
200OKSuccessschemanewmapresp
400Bad RequestBad Request
401UnauthorizedAuthentication Failed or Account validity expired
500Internal Server ErrorInternal server error

Example Request

# You can also use wget
curl -X POST /hotelmaprequest \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Body parameter

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

Example responses

200 Response
{
  "requestid": 0,
  "referencehotelcodes": [0],
  "statuscode": 0,
  "statusmsg": "string",
  "approximatetime": "2019-08-24"
}

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.