POST/sourcemaprequest

Get Source Map Request

This method enables users to request the mapping of a hotel to a source that it is not currently configured with. To initiate the request, users must provide the hotel code and source code. A unique request ID will be automatically generated for each mapping request.
  • hotelcode: The code for the hotel to be mapped.
  • sources: The code of the source if it exists in our database.
  • url: The base URL of the source to be mapped.
  • channeltype: Specifies whether the channel is OTA or Direct.
POST/sourcemaprequest

Mandatory Fields

  • hotelcode
  • sources or channeltype

Responses

StatusMeaningDescriptionSchema
200OKSuccessNone
400Bad RequestErrorNone
401UnauthorizedAuthorization has been denied for this requestNone
500Internal Server ErrorInternal server errorNone

Example Request

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

Body parameter

{
  "hotelcode": 0,
  "sources": [0],
   "urls": ["string"],
   "channeltype": ["string"],
}

Example responses

200 Response
{
  "requestid": 0,
  "hotelcode": 0,
    "long": 0,
    "sources": [0],
    "urls": ["string"],
    "status": 0,
	"approximatetime": 0,
	"channeltype": ["string"],
  }
}

Example 1

{
  "hotelcode": 85577,
  "sources": [
    83
  ],
  "urls": [
    "https://www.hilton.com/en/hotels/laslkhf-hilton-lake-las-vegas-resort-and-spa/"
  ],
  "channeltype": [
    "Direct"
  ]
}

Example 2

{
  "hotelcode": 85577,
  "sources": [
    2
  ],
  "urls": [
    ""
  ],
  "channeltype": [
    ""
  ]
}

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.