Solicitudes
Sintaxis
El mensaje OTA_HotelInvCountNotifRQ
usa la siguiente sintaxis:
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvCountNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05"
EchoToken="message_ID"
TimeStamp="timestamp"
Version="3.0">
<POS>
<Source>
<RequestorID ID="partner_key"/>
</Source>
</POS>
<Inventories HotelCode="HotelID">
<Inventory>
<StatusApplicationControl Start="YYYY-MM-DD"
End="YYYY-MM-DD"
Mon="boolean_value"
Tue="boolean_value"
Weds="boolean_value"
Thur="boolean_value"
Fri="boolean_value"
Sat="boolean_value"
Sun="boolean_value"
InvTypeCode="RoomID"/>
<InvCounts>
<InvCount Count="integer" CountType="2"/>
</InvCounts>
</Inventory>
</Inventories>
</OTA_HotelInvCountNotifRQ>
Elementos y atributos
El mensaje OTA_HotelInvCountNotifRQ
tiene los siguientes elementos y atributos:
Elemento / @Attribute | Occurrences | Tipo | Descripción |
---|---|---|---|
OTA_HotelInvCountNotifRQ | 1 | Complex element | Es el elemento raíz de un mensaje que define la disponibilidad de la tarifa de la habitación. |
OTA_HotelInvCountNotifRQ / @xmlns | 0..1 | string (URI) | Espacio de nombres XML. |
OTA_HotelInvCountNotifRQ / @EchoToken | 1 | string | Es un identificador único para este mensaje de solicitud. Este valor se muestra en el mensaje de respuesta. Los caracteres permitidos son a-z, A-Z, 0-9, _ (guion bajo) y - (guion). |
OTA_HotelInvCountNotifRQ / @TimeStamp | 1 | DateTime | La fecha y hora de creación de este mensaje. |
OTA_HotelInvCountNotifRQ / @Version | 1 | decimal | La versión del mensaje de OpenTravel. |
OTA_HotelInvCountNotifRQ / POS | 0..1 | POS | Un contenedor para especificar la cuenta de socio de este mensaje (por lo general, se usa si el backend proporciona feeds de precios para varias cuentas de socios). |
OTA_HotelInvCountNotifRQ / POS/ Source | 1 | Source | Es obligatorio si <POS> está presente. Es un contenedor para <RequestorID> . |
OTA_HotelInvCountNotifRQ / POS / RequestorID | 1 | RequestorID | Es obligatorio si <POS> está presente. Define la cuenta de socio. |
OTA_HotelInvCountNotifRQ / POS / RequestorID / @ID | 1 | string | Es la cuenta del socio de este mensaje. Este valor de string es el valor de la
clave de socio que aparece en la
página Configuración de la cuenta de Hotel Center.
Nota: Si tienes un backend que proporciona feeds para varias cuentas, este valor debe coincidir con el valor del atributo |
OTA_HotelInvCountNotifRQ / Inventories | 1 | Inventories | Es un contenedor para uno o más elementos <Inventory> . |
OTA_HotelInvCountNotifRQ / Inventories / @HotelCode | 1 | string | Es el identificador único de la propiedad. Este valor debe coincidir con el ID de hotel especificado con <id> en el elemento <listing> del feed de lista de hoteles. El ID del hotel también aparece en Hotel Center. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory | 1..n | Inventory | Define los recuentos de habitaciones disponibles para diferentes intervalos de tiempo en una sola propiedad. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl | 1 | StatusApplicationControl | Define el período y el identificador del tipo de habitación (InvTypeCode ). |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Start | 1 | Date | La fecha de inicio (según la zona horaria de la propiedad), incluida la fecha del período. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @End | 1 | Date | La fecha de finalización (según la zona horaria de la propiedad), incluida la fecha del período. Debe ser igual o mayor que el valor de start .
Si start y end son iguales, la actualización se aplica a esa fecha. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Mon | 0..1 | boolean | Configúralo en true o 1 para incluir los lunes de manera explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Tue | 0..1 | boolean | Configúralo en true o 1 para incluir los martes de manera explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Weds | 0..1 | boolean | Configúralo en true o 1 para incluir los miércoles de manera explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Thur | 0..1 | boolean | Configúralo en true o 1 para incluir los jueves de forma explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Fri | 0..1 | boolean | Configúralo en true o 1 para incluir los viernes de manera explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Sat | 0..1 | boolean | Configúralo en true o 1 para incluir los sábados de manera explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @Sun | 0..1 | boolean | Configúralo en true o 1 para incluir los domingos de forma explícita.
Si se configura como |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / StatusApplicationControl / @InvTypeCode | 1 | string | Es el identificador único del inventario (tipo de habitación). Este valor se asigna a <RoomID> en un mensaje Transacciones (datos de propiedad). |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / InvCounts | 1 | InvCounts | Es un contenedor para definir un solo recuento de inventario. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / InvCounts / InvCount | 1 | InvCount | Define la cantidad de salas de reuniones disponibles que se pueden reservar. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / InvCounts / InvCount / @Count | 1 | integer | Es la cantidad de salas de reuniones disponibles que se pueden reservar para el tipo de habitación. Un valor de cero indica que el tipo de habitación está agotado. Un valor negativo se trata como cero. |
OTA_HotelInvCountNotifRQ / Inventories / Inventory / InvCounts / InvCount / @CountType | 1 | enum | Es el tipo de recuento de inventario que se especifica. El valor válido es el siguiente:
|
Ejemplos
Inventario restante
Configura 5
rooms left for
RoomID_1` en las fechas indicadas.
<OTA_HotelInvCountNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05"
EchoToken="12345678"
TimeStamp="2023-07-13T20:50:37-05:00"
Version="3.0">
<Inventories HotelCode="Property_1">
<Inventory>
<StatusApplicationControl Start="2023-07-18"
End="2023-07-23"
InvTypeCode="RoomID_1"/>
<InvCounts>
<InvCount Count="5" CountType="2"/>
</InvCounts>
</Inventory>
</Inventories>
</OTA_HotelInvCountNotifRQ>
Inventario agotado
Marca RoomID_1
agotadas en las fechas indicadas.
<OTA_HotelInvCountNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05"
EchoToken="12345678"
TimeStamp="2023-07-13T20:50:37-05:00"
Version="3.0">
<Inventories HotelCode="Property_1">
<Inventory>
<StatusApplicationControl Start="2023-07-18"
End="2023-07-23"
InvTypeCode="RoomID_1"/>
<InvCounts>
<InvCount Count="0" CountType="2"/>
</InvCounts>
</Inventory>
</Inventories>
</OTA_HotelInvCountNotifRQ>
Respuestas
Sintaxis
El mensaje OTA_HotelInvCountNotifRS
usa la siguiente sintaxis:
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvCountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05"
TimeStamp="timestamp"
EchoToken="echo_token"
Version="3.0">
<!-- Either Success or Errors will be populated. -->
<Success/>
<Errors>
<Error Type="12" Status="NotProcessed" ShortText="issue_code">issue_description</Error>
</Errors>
</OTA_HotelInvCountNotifRS>
Elementos y atributos
El mensaje OTA_HotelInvCountNotifRS
tiene los siguientes elementos y atributos:
Elemento / @Attribute | Occurrences | Tipo | Descripción |
---|---|---|---|
1 | Complex element | Es el elemento raíz de una respuesta a un mensaje de disponibilidad. | |
OTA_HotelInvCountNotifRS / @TimeStamp | 1 | DateTime | La fecha y hora de creación de este mensaje. |
OTA_HotelInvCountNotifRS / @EchoToken | 1 | string | Es el identificador único del mensaje OTA_HotelInvCountNotifRQ asociado. |
OTA_HotelInvCountNotifRS / Success | 0..1 | Success | Indica que el mensaje OTA_HotelInvCountNotifRQ se procesó correctamente.
|
OTA_HotelInvCountNotifRS / Errors | 0..1 | Errors | Un contenedor para uno o más problemas que se encontraron durante el procesamiento del mensaje OTA_HotelInvCountNotifRQ .
|
OTA_HotelInvCountNotifRS / Errors / Error | 1..n | Error | Es la descripción de un error que se encontró durante el procesamiento del mensaje OTA_HotelInvCountNotifRQ . Puedes encontrar detalles sobre estos errores en Mensajes de error sobre el estado del feed. |
OTA_HotelInvCountNotifRS / Errors / Error / @Type | 1 | integer | El EWT (tipo de advertencia de error) de OpenTravel Alliance asociado con el error Solo se usa el valor 12 (Processing exception) . |
OTA_HotelInvCountNotifRS / Errors / Error / @Code | 1 | integer | El ERR (código de error) de OpenTravel Alliance asociado con el error.
Solo se usa el valor 450 (Unable to process) . |
OTA_HotelInvCountNotifRS / Errors / Error / @Code | 1 | enum | Es el estado de la solicitud original. Solo se usa el valor NotProcessed . |
OTA_HotelInvCountNotifRS / Errors / Error / @ShortText | 1 | string | Es el identificador de Google del problema. Puedes encontrar detalles sobre estos errores en Mensajes de error sobre el estado del feed. |
Ejemplos
Completado correctamente
La siguiente es una respuesta a un mensaje OTA_HotelInvCountNotifRQ
procesado correctamente.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvCountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05"
TimeStamp="2023-07-23T20:50:37-05:00"
Version="3.0">
<Success/>
</OTA_HotelInvCountNotifRS>
Errores
La siguiente es una respuesta a un mensaje OTA_HotelInvCountNotifRQ
que no se procesó debido a errores.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvCountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05"
TimeStamp="2023-07-23T20:50:37-05:00"
Version="3.0">
<Errors>
<Error Type="12" Code="450" Status="NotProcessed" ShortText="8001">Example</Error>
</Errors>
</OTA_HotelInvCountNotifRS>