POST/sourcemaprequest

Create Source Map Request

This method allows users to request the mapping of a hotel to a source that it is not currently linked to. Users must provide the hotelcode and the sourceCode. A unique requestid is automatically generated for each mapping request. You can refer to the list of supported sources for Ratings and Review extraction at the GET/reference/sources endpoint in the Reference section.
POST/sourcemaprequest

Mandatory Fields

  • hotelCode
  • sourceCodes

Optional Fields

  • body

Parameter Details

NameInTypeRequiredDescription
bodybodysourcemapreqOptionalnone

Responses

StatusMeaningDescriptionSchema
201CreatedCreatedsourcemapresp
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
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: API_KEY'

Body parameter

{
  "hotelCode": 0,
  "sourceCodes": [
    0
  ],
  "urls": [
    "string"
  ]
}

Example responses

{
  "requestId": 0,
  "hotelCode": 0,
  "sourceCodes": [
    0
  ],
  "urls": [
    "string"
  ],
  "status": 1,
  "approximateTime": 0,
  "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.