POST
/sourcemaprequestGet 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
/sourcemaprequestMandatory Fields
- hotelcode
- sources or channeltype
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | None |
| 400 | Bad Request | Error | None |
| 401 | Unauthorized | Authorization has been denied for this request | None |
| 500 | Internal Server Error | Internal server error | None |
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.