Herramientas de usuario

Herramientas del sitio


public:staticinfo

Información de tours

Consulta la información sobre una ruta.

Verbo HTTP: GET
Recurso:    /tour
Método:     /info

—————————————————————————————————————————————————

Parámetros obligatorios:
  * tourID: Identificador del tour
Parámetros opcionales:
  * explicitDate: Fecha específica de salida del tour -> yyyy-MM-dd
  * dateFrom: Fecha "desde" para la búsqueda de salidas de tours -> yyyy-MM-dd
  * dateTo: Fecha "hasta" para la búsqueda de salidas de tours -> yyyy-MM-dd
  * output: Formato de salida de la consulta (XML o JSON)

—————————————————————————————————————————————————

Esquema de la respuesta

  • Tour → Root
    • Id → Identificador del tour
    • Name → Nombre del tour
    • URLURL a la descripción del tour
    • Image → URL a la imagen del tour
    • Periods → Contenedor de períodos de operación del tour
      • Period → Período de operación del tour
        • DayFrom → Día en que comienza el período
        • DayTo → Día en que termina el período
      • Departures → Contenedor de información de salidas del tour
        • Departure → Información de una salida del tour
          • Code → Código de referencia de la salida
          • AmericaDeparture → Fecha de salida de américa
          • MaxQuota → Cupo máximo de la salida del tour para cualquier día
          • Itinerary → Contenedor de la información del itinerario
            • ItineraryDay → Información del día del itinerario
              • Order → Orden del día en el itinerario
              • Route → Descripción breve del recorrido
              • Image → Imagen del día del itinerario
              • Description → Descripción del recorrido
              • Hotel → Información del hotel de ese día
              • Quota → Información de cupos
                • TotalQuota → Cupo total del día del itinerario
                • FreeQuota → Cupo libre del día del itinerario
          • Prices → Contenedor de la información de precios
            • Price → Información de precios
              • PVP_“Type” → PVP sobre habitación doble/twin(DBL), triple(TPL), single(SGL) o niño(CHD)
              • Net_“Type” → Neto sobre habitación doble/twin(DBL), triple(TPL), single(SGL) o niño(CHD)
              • CommissionIncluded → Indica si la comisión ya está incluida o no
              • CommissionPercent → Indica el porcentaje de comisión si ésta ya se encuentra incluida
          • Buses → Contenedor de la información de buses
            • Bus → Información del bus
              • Id → Identificador del bus
              • GuideName → Nombre del guía
              • Telephone → Teléfono de emergencia
              • DateFrom → Fecha desde la cual opera el bus
              • DateTo → fecha hasta la cual opera el bus
              • Order → Orden del bus en el circuito
          • Inclusions → Contenedor de inclusiones del circuito
            • Inclusion → Inclusión del circuito
          • Exclusions → Contenedor de exclusiones del circuito
            • Exclusion → Exclusión del circuito
          • Observations → Contenedor de observaciones del circuito
            • Observation → Observaciones del circuito
          • ExtraInfos → Contenedor de informaciones extras del circuito
            • ExtraInfo → Información extra del circuito

—————————————————————————————————————————————————

Respuestas de ejemplo

Example.xml
<Tour Id="1" Name="Esencia Europea 2017" URL="" Image="">
  <Periods>
    <Period DayFrom="2017-01-13T00:00:00" DayTo="2018-01-14T00:00:00" />
  </Periods>
  <Departures>
    <Departure Code="MEG-2063" AmericaDeparture="2017-01-13T00:00:00" MaxQuota="25">
      <Itinerary>
        <ItineraryDay Order="0" Route="AME-MAD" Image="" Type="0">
          <Description />
          <Hotel Name="Hotel" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>
        <ItineraryDay Order="1" Route="MAD" Image="" Type="0">
          <Description />
          <Hotel Name="Hotel" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>   
        <ItineraryDay Order="2" Route="MAD-LOU" Image="" Type="1">
          <Description />
          <Hotel Name="Hotel" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>
        <ItineraryDay Order="3" Route="LOU-ORL" Image="" Type="1">
          <Description />
          <Hotel Name="Hotel" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>        
      </Itinerary>
      <Prices>
        <Price PVP_DBL="100" PVP_SGL="80" PVP_TPL="120" PVP_CHD="50" Net_DBL="0" Net_SGL="0" Net_TPL="0" Net_CHD="0" CommissionIncluded="true" CommissionPercent="5" />
      </Prices>
      <Buses>
        <Bus Id="1" GuideName="" Telephone="" DateFrom="2017-01-16T00:00:00" DateTo="2017-01-28T00:00:00" Order="0" />
      </Buses>
      <Inclusions>
        <Inclusion></Inclusion>
      </Inclusions>
      <Exclusions>
        <Exclusion></Exclusion >
      </Exclusions>
      <Observations>
        <Observation></Observation >
      </Observations>
      <ExtraInfos>
        <ExtraInfo></ExtraInfo>
      </ExtraInfos>
    </Departure>
  </Departures>
</Tour>

Example.json
{
  "Id": 1,
  "Name": "Esencia Europea 2017",
  "Periods": [
    {
      "DayFrom": "2017-01-13T00:00:00",
      "DayTo": "2018-01-14T00:00:00"
    }
  ],
  "URL": "",
  "Image": "",
  "Departures": [
    {
      "Code": "MEG-2063",
      "AmericaDeparture": "2017-01-13T00:00:00",
      "MaxQuota": 25,
      "Itinerary": [
        {
          "Order": 0,
          "Route": "AME-MAD",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotel",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 0
        },
        {
          "Order": 1,
          "Route": "MAD",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotel",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 0
        },
        {
          "Order": 2,
          "Route": "MAD-LOU",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotel",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 1
        },
        {
          "Order": 3,
          "Route": "LOU-ORL",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotel",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 1
        }          
      ],
      "Prices": [
        {
          "PVP_DBL": 100,
          "PVP_SGL": 80,
          "PVP_TPL": 120,
          "PVP_CHD": 50,
          "Net_DBL": 0,
          "Net_SGL": 0,
          "Net_TPL": 0,
          "Net_CHD": 0,
          "CommissionIncluded": true,
          "CommissionPercent": 5
        }
      ],
      "Buses": [
        {
          "Id": 1,
          "GuideName": "",
          "Telephone": "",
          "DateFrom": "2017-01-16T00:00:00",
          "DateTo": "2017-01-28T00:00:00",
          "Order": 0
        }
      ],
      "Inclusions": [],
      "Exclusions": [],
      "Observations": [],
      "ExtraInfos": []
    }
  ]
}
public/staticinfo.txt · Última modificación: 2017/01/23 16:34 por onieto