Operations on Tours


Tours Survey

Description

Gets the survey from users for a specified tour.

Request

URI

https://api.pricetravel.com/services/tours/survey/{tourId}

Verb

GET

Parameters

  • tourId: integer

Headers

Accept (optional)

Response

Response code

200 (OK)

Body

XML

   <ArrayOfTourSurvey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Tours">
<TourSurvey>
<Comments xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Common">string</Comments>
<CustomerCity xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Common">string</CustomerCity>
<CustomerName xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Common">string</CustomerName>
<Score xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Common">double</Score>
<ServiceDate xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.Common">datetime</ServiceDate>
<CustomerProfile>string</CustomerProfile>
</TourSurvey>
</ArrayOfTourSurvey>

JSON

  [
   {
     "CustomerProfile":integer (None = 0, Couple = 1, Family = 2, Friends = 3, Work = 4, Solo = 5),
     "CustomerName":"string",
     "CustomerCity":"string",
     "ServiceDate":"datetime",
     "Score":double,
     "Comments":"string"
   }
  ]

Errors

401 (Unauthorized)

Invalid “Authorization” header.