Bloqueo Servicio


 

This message allows you to block the rooms of the services from the last availability sent.

 

Each time an availability is performed, it returns a list with information about the hotels that meet the search criteria. For each of these hotels, it returns a list of rooms. The elements are "infhot" and "infhab" respectively, as seen in the availability messages. Both elements have an identifyer atribute, "id", which is used to perform the blocking of the required services

 

In the service blocking request, it is important to emphasize that the information related to the last availability performed will be used.To indicate this information in the request, it is done as follows: the "id" of the "infhot" element will be indicated as the "id" of the "bloser" element, and the "id" of the "infhab" element will be indicated as the "id" of the "dissmo" element

 

Table of identifier id equivalences: 

 

Availability

Block

Infhot 

Bloser

Infhab 

Dissmo

 

Example: 

 

Last availability 

Block

<DisponibilidadHotelRespuesta> 

… 

<infhotid="29"

… 

<infhabid="2"

… 

</infhab> 

<infhabid="8"

… 

</infhab> 

</infhot> 

… 

</DisponibilidadHotelRespuesta>

<BloqueoServicioPeticion> 

…  

<bloserid="29"

<dissmoid="2"

…  

</dissmo> 

<dissmoid="8"

…  

</dissmo> 

</bloser> 

…  

</BloqueoServicioPeticion>

 

For example, if we only wanted to block room with ID 2 (in this case, we are not interested in room with identifyer 8), there would be only one "dissmo" element with a value of ID 2 in the blocking.

Operations: add, query and delete blocks. 

 

The default operation is add, so if not specified in the request message, the action performed will be to add the information of the specified identifiers. 

 

The functionality is similar to that of a shopping cart on a web page: you can add blocks, check what has been added so far, and remove blocks from the "cart".

 


As mentioned before, to add a block, you must use the ID of the last availability. However, for the other operations, you should use the block's ID. This is because both for querying and deleting, we refer to the "cart" and not to any availability. 

 

For example, if we wanted to delete the distribution of modality 8 for service block 29 (continuing with the previous example), we should specify these values in the blocking request. If we wanted to delete the entire block related to the same hotel, we could simply specify the value 29. The delete action always applies to accumulated blocks.


Example of deleting all information for hotel with id 29:

 

<BloqueoServicioPeticion> 

… <bloserid="29"/> 

<accion>E</accion>  

</BloqueoServicioPeticion>

 

If we specify the query action, there's no need to provide further details as it will simply return a list of all the blocks that have been made in the current session. 

 

Example of a query in the current session: 

 

<BloqueoServicioPeticion> 

<ideses>XML#17#252439421236314</ideses>   

<codtou>HTT</codtou>  

<accion>C</accion>  

</BloqueoServicioPeticion> 

 

The result of this request will provide us with a list of blocks accumulated at the moment. If the operation is performed after closing a reservation or before adding any availability, the result will be empty.

 


BloqueoServicioPeticion


BloqueoServicioPeticion: Request message to block a service.

 

Element 

Type 

Values / Format

Descripction

ideses 

String 

Max. length: 40 

Unique session identifyer

codtou 

String 

 

TTOO code

pasage 

Pasage 

See definition

See definition

bloser 

Bloser[] 

See definition

See definition

blosup 

Blosup[] 

See definition

See definition

tarifi 

Enumeration 

 

Indicates whether the segment or itinerary should be tariffed. 

S: Tariff. 

T: tariff and block. Default value.

B: tariffed sale. 

P: budget.

infblo 

Enumeration 

 

 

Indicates whether all the blocks up to this point should be reported. 

S: It will report all blocks made up to this point. Default value

N: no blocks will be reported. 

A: reports the current operation.

accion 

Enumeration 

 

Action in the message. 

A: add. Default value

E: delete 

C: query.

traduc 

Enumeration[] 

codcas, codcha, codcia, coddiv, codemp, codloc, codnot, codral, codsca, codsmo, codsup, codtse, 

codusu, codzge, cupest, desele, grpcas, nomzge, refnot, subtse, tipdoc, tippag, zgeori

Fields to translate in the response. For each field, you can specify just the name or the name followed by a hash (#). If you only provide the name, it will translate the description; if you also include the hash, it will translate the code.

 

Sub-element Pasage: type and number of passengers.

 

Element 

Type 

Values / Format

Description

adl 

Adl[] 

See definition

See definition

nin 

Nin[] 

See definition

See definition

beb 

Beb[] 

See definition

See definition

 

Used in:

BloqueoServicioPeticion 

BloqueoServicioRespuesta 

 


Sub-element Adl: number of adults and identify one adult and their age. 

 

Element 

Type 

Values / Format 

Description

@id 

String 

Max. length: 100 

Element identifier

fecnac 

Date 

 

Birth date

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

codpps 

String[] 

Max. length: 40 

Passenger property code 

 

Used in:  

Pasage

 

Sub-element Nin: indicates child passenger type. 

 

Elemento 

Tipo de datos 

Restricciones 

Descripción

@id 

String 

Max. length: 100 

Element identifier

fecnac 

Date 

 

Birth date

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

codpps 

String[] 

Max. length: 40 

Passenger property code 

 

Used in:  

Pasage

 

Sub-element Beb: indicates infant passenger type, age and dependent passenger. 

 

Element 

Type 

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

fecnac 

Date 

 

Birth date

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

pasdep 

String 

Max. length : 20 

Passenger they depend on

 

Used in:  

Pasage

 

Sub-element Bloser: indicates a service of any type, excepts air service and its characteristics. 

 

Element 

Type 

Values / Format 

Description

@id 

String 

Max. length: 100 

Element identifier

dissmo 

Dissmo[] 

See definition

See definition

notser 

Notser[] 

See definition

See definition

 

Used in: 

BloqueoServicioPeticion

 

Sub-element Dissmo: distribution of passengers within the selected mode.

 

Element 

Type 

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

pasid 

String[] 

Max. length: 10 

Unique passenger identifier

numuni 

Integer 

Min. value: 0 

Max. value: 100

Number of units

motcan 

String 

Max. length: 3 

Cancellation reason

descan 

String 

Max. length: 1.000 

Cancellation description

notser 

Notser[] 

See definition

See definition

 

Used in: 

Bloser

 

Sub-element Notser: service note. 

 

Element 

Type 

Values / Format

Description

@id 

String

Max. length: 100

Element identifier

estnot 

Enumeration

 

Note status. 

P: requested. 

T: processing. 

A: accepted. 

N: denied. 

S: no accepted.

codnot 

Enumeration

 

PRV 

CLI 

RES 

Note code. 

PRV: note to the supplier. 

CLI: note to the customer 

RES: note to the reservation.

codusu 

String 

 

Max. length: 15 

User code

feccre 

DateTime 

 

 

Creation date

txtinf 

String 

Max. length: 4.000 

Information text

refnot 

String 

Max. length: 200 

Note reference

pasid 

String[]

Max. length: 10 

Unique passenger identifier


Used in: 

Bloser 

Blosup 

Dissmo 

Estsmo 

ReservaAbrirRespuesta

ReservaCerrarPeticion

ReservaCerrar

Respuesta Resser 

Ressup 

Sernot

 

 

Sub-element Blosup: identifies a supplement and the passengers it affects. 

 

Element 

Type 

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

pasid 

String[] 

Max. length: 10 

Unique passenger identifier

numuni 

Integer 

Min. value: 0 

Max. value: 100

Number of units

motcan 

String 

Max. length: 3 

Cancellation reason

descan 

String 

Max. length: 1.000 

Cancellation description

notser 

Notser[] 

See definition

See definition

fecini 

DateTime 

 

Check in date

fecfin 

DateTime 

 

Check out date


 

Used in: 

BloqueoServicioPeticion

 

Example of a request to add a service block for two adults using the block identifiers 29 and mode 180, previously obtained from availability: 

 

<BloqueoServicioPeticion> 

<ideses>XML#17#442106373838493</ideses> 

<codtou>HTT</codtou> 

<pasage> 

<adlid="1"

<fecnac>01/01/1971</fecnac> 

</adl> 

<adlid="2"

<fecnac>01/01/1973</fecnac> 

</adl> 

</pasage> 

<bloserid="29"

<dissmoid="180"

<numuni>1</numuni> 

<pasid>1</pasid> 

<pasid>2</pasid> 

</dissmo> 

</bloser> 

<accion>A</accion> 

</BloqueoServicioPeticion>

 


BloqueoServicioRespuesta

 

BloqueoServicioRespuesta: response message for blocking a service.

 

Element 

Type

Values / Format

Description

ideses 

String 

Max. length: 40 

Unique session identifier

codtou 

String 

 

TTOO code

cupest 

Enumeration 

 

ND 

CE 

DS 

OP 

PC 

CM 

VL 

AN 

FA 

Availability status. 

ND: not available. 

CE: closed. 

DS: available. 

OP: option. 

PC: on request. 

CM: confirmed. 

VL: free sale. 

AN: canceled. 

FA: invoiced.

Impcag 

String 

 

Agency commission tax percentage

coddiv 

Enumeration 

EUR, USD, CUP 

Currency code. 

ISO 4217 codes are used for currencies, and currently only the ones listed are accepted.

cambio 

Double 

Min. value: 0 

Max. value: 1.000.000

Exchange rate used for price calculation.

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

pasage 

Pasage 

See definition

See definition

resser 

Resser[] 

See definition

See definition

ressup 

Ressup[] 

See definition

See definition

infsup 

Infsup[] 

See definition

See definition

infrsr 

Infrsr 

See definition

See definition

error 

Error (Group) 

See definition

See definition

  

 

Sub-element Resser: information regarding the reservation of a service. 

 

Element 

Type 

Values / Format

Description

@id 

String

Max. length: 100 

Service name

fecini 

DateTime

 

 

fecfin 

DateTime

 

 

nomser 

String

Max. length: 50 

Service category code

codsca 

String

Max. length: 10 

Hotel chain code

codcia 

String

Max. length: 50 

Geographical origin zone

zgeori 

String

Max. length: 50 

Geographical zone code

codzge 

String[]

Max. length: 5 

Service type code

codtse 

String

Max. length: 5 

Service subtype code

subtse 

String

 

 

codser 

String

Max. length: 50 

Service code

impnoc 

Double

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double

Min. value: 0 

Max. value: 100.000

Commissionable amount

estsmo 

Estsmo[] 

See definition

See definition

notser 

Notser[]

See definition

See definition

 

Used in: 

BloqueoServicioRespuesta

ReservaAbrirRespuesta

ReservaCerrarRespuesta


 

Sub-element nombre Estsmo: status for the referenced modality. 

 

Element 

Type 

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

codcon 

String 

Max. length: 200 

Contract code

codsmo 

String 

Max. length: 100 

Service modality code

codcha 

String[] 

Max. length: 30 

Modality characteristic code.

codral 

String 

Max. length: 10 

Mealplan code 

codtrf 

String[] 

Max. length: 15 

Rate code

nomtrf 

String[] 

Max. length: 100 

Rate name

cupest 

Enumeration 

 

ND 

CE 

DS 

OP 

PC 

CM 

VL 

AN 

FA 

Availability status. 

ND: not available. 

CE: closed. 

DS: available. 

OP: option. 

PC: on request. 

CM: confirmed. 

VL: free sale. 

AN: canceled. 

FA: invoiced.

numuni 

Integer 

Min. value: 0 

Max. value: 100

Number of units

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

codprv 

String 

Max. length: 10 

Provider code

locata 

String 

Max. length: 30 

Locator

rstcan 

Rstcan[] 

See definition

See definition

estpas 

Estpas[] 

See definition

See definition

forpag 

Forpag[] 

See definition

See definition

notser 

Notser[] 

See definition

See definition

 

Used in: 

Resser



Sub-element Estpas: status for one or multiple passengers. 

 

Element 

Type 

Values / Format

Description

pasid 

String[] 

Max. length: 10 

Unique passenger identifier

cupest 

Enumeration 

 

ND 

CE 

DS 

OP 

PC 

CM 

VL 

AN 

FA 

Availability status. 

ND: not available. 

CE: closed. 

DS: available. 

OP: option. 

PC: on request. 

CM: confirmed. 

VL: free sale. 

AN: canceled. 

FA: invoiced.

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

rescan 

Rescan 

See definition

See definition

 

Used in: 

Estsmo 

Ressup

 

Sub-element Rescan: indicates if the reservation is canceled and the cancellation details.

 

Element 

Type 

Values / Format

Description 

loccan 

String 

Max. length: 30 

Cancellation locator

usucan 

String 

Max. length: 15 

User who made the cancellation 

feccan

Y

DateTime

 

Cancellation date

sancan 

String 

Max. length: 100 

Cancellation penalty

motcan 

String 

Max. length: 3 

Cancellation reason

descan 

String 

Max. length: 1.000 

Cancellation description

coscan 

Double 

Min. value: 0

Max. value: 100.000

Cancellation amount

 

Used in: 

Estpas

ReservaAbrirRespuesta

ReservaCerrarRespuesta

Respas



Sub-element Forpag: payment method. 

 

Element 

Type 

Values / Format

Description 

tippag

Y

Enumeration

 

J

Payment type

C: credit card. 

P: prepay. 

N: not for sale. 

T: Card. 

F: by phone. 

R: bank transfer. 

A: cash. 

E: in establishment. 

I: immediate. 

G: cancellation fees. 

J: prepaid card

codpag 

String 

Max. length: 10 

Payment code. 

txtinf 

String 

Max. length: 4.000 

Information text

refpag 

String 

Max. length: 50 

Internal payment reference

reftpv 

String 

Max. length: 50 

POS payment reference 

tittar 

String 

Expresión regular: [az AZ]{10,40}  

Card holder

codcia 

String 

Max. length: 10 

Hotel chain code

codtar 

String 

Max. length: 16 

Card number

refopg 

String 

Max. length: 50 

Payment option reference

fecfin

N

Date

 

Final date

cvcdos 

String 

Expresión regular: [09]{2,3}  

Card CVC2 security PIN 

imptot 

Double 

Min. value: 0

Max. value: 100.000

Total amount

Pasid 

String[] 

Max. length: 10 

Unique passenger identifier

Accpag

N

Enumeration

 

VTA 

DEV 

ANL 

BLQ 

REC 

PRE

Payment action.

VTA: Sale. Default value. 

DEV: refund. 

ANL: cancellation. 

BLQ: preauthorization. 

REC: reload. 

PRE: preauthorization to sale.

 

Used in: 

Estsmo

ReservaAbrirRespuesta

ReservaCerrarPeticion

ReservaCerrarRespuesta



Sub-element Ressup: reservation supplement.

 

Element 

Type 

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

@refser 

String 

Max. length: 100 

Service reference

@refsmo 

String 

Max. length: 100 

Service modality reference

codsup 

String 

Max. length: 10 

Supplement code

tipsup 

Enumeration 

 

AD 

CA 

DI

DN

DR

EB

EM 

FO 

GE 

HF 

SI 

TA 

ZO 

Supplement type. 

AD: single parent. 

CA: extra bed. 

DI: breakfast included. 

DN: child discount. 

DR: resident discount. 

EB: early booking. 

EM: minimum stay. 

FO: operation date. 

GE: general. 

HF: handling fee. 

SI: single supplement. 

TA: tax. 

ZO: zone.

numuni 

Integer 

Min. value: 0 

Max. value: 100

Number of units

tipapl 

Enumeration 

Application type. 

U: stay service application. 

E: passenger application. 

S: day service application. 

P: day passenger application.

chkopc 

Check 

See definition 

Indicates if it is mandatory.

txtlib 

String 

Max. length: 1.000 

Free text

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

estpas 

Estpas[] 

See definition

See definition

notser 

Notser[] 

See definition

See definition

fecini 

DateTime 

 

Check in date

fecfin 

DateTime 

 

Check out date

 

 

Used in: 

BloqueoServicioRespuesta 

ReservaAbrirRespuesta 

ReservaCerrarRespuesta



Sub-element Infsup: información about reservation supplements.

 

Element 

Type

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

@refser 

String 

Max. length: 100 

Service reference

@refsmo 

String 

Max. length: 100 

Service modality reference

codsup 

String 

Max. length: 10 

Supplement code

tipsup 

Enumeration 

 

AD 

CA 

DI

DN

DR

EB

EM 

FO 

GE 

HF 

SI 

TA 

ZO 

Supplement type. 

AD: single parent. 

CA: extra bed. 

DI: breakfast included. 

DN: child discount. 

DR: resident discount. 

EB: early booking. 

EM: minimum stay. 

FO: operation date. 

GE: general. 

HF: handling fee. 

SI: single supplement. 

TA: tax. 

ZO: zone.

chkopc 

Check 

See definition 

Indicates if it is mandatory.

txtlib 

String 

Max. length: 1.000 

Free text

impnoc 

Double 

Min. value: 0 

Max. value: 100.000

Non-commissionable amount

impcom 

Double 

Min. value: 0 

Max. value: 100.000

Commissionable amount

estpas 

Estpas[] 

See definition

See definition

notser 

Notser[] 

See definition

See definition

fecini 

DateTime 

 

Check in date

fecfin 

DateTime 

 

Check out date

 

 

Used in: 

BloqueoServicioRespuesta 

ReservaAbrirRespuesta 

ReservaCerrarRespuesta

 


Sub-element Infrsr: reservation restrictions.

 

Element 

Type

Values / Format

Description

Chkflm

Check 

See definition

Indicates if the reservations's deadline date must be provided

Chkrfa 

Check 

See definition

Indicates if the agency reference of the reservation must be provided

Chkpec 

Check 

See definition

Indicates if the reservation's contact person must be provided

Chkdrf 

Check 

See definition

 

Indicates if the billing address of the reservation must be provided

Chkdre 

Check 

See definition

Indicates if the delivery address of the reservation must be provided

Infrpa 

Infrpa[] 

See definition

See definition

Infrpg 

Infrpg[] 

See definition

See definition

 

Used in: 

BloqueoServicioRespuesta 

 

Sub-element Infrpa: Information about passenger restrictions. 

 

Element 

Type

Values / Format

Description

Tipmpg 

String 

E - In establishment

I - Immediate

A - Deferred 

G - Cancellation fees 

D - Installments

X - External

Payment modality type

TxtInf 

String 

Max. length: 4.000 

Information text

Inffpg 

Inffpg[] 

See definition

See definition

 

Used in: 

Infrsr

 

Sub-element Infrpg: Information about reservation restrictions related to payment modes. 

 

Element 

Type

Values / Format

Description

Tipmpg 

String 

E - In establishment

I - Immediate

A - Deferred 

G - Cancellation fees 

D - Installments

X - External

Payment modality type

TxtInf 

String 

Max. length: 4.000 

Information text

Inffpg 

Inffpg[] 

See definition

See definition

 

Used in: 

Infrsr

 

Sub-element Inffpg: Payment date information.

 

Element 

Type

Values / Format

Description

Fecpag 

Date 

Max. length: 100 

Payment date

Imptot 

String 

 

Total amount

Infopg 

Infopg[] 

See definition

See definition

 

Used in: 

Infrpa 

Infrpg

 

Sub-element Infopg: payment option information

 

Element 

Type

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

Tippag 

String 

C - Credit card. 

P - Prepay. 

N - Not for sale. 

T - Card.

F - By phone. 

R - Bank transfer.

A - Cash. 

E - In establishment

I – Immediate

G - Cancellation fees

D - Installments

X – External

V - Virtual card 

B - Voucher  

H - Check 

O - Electronic invoice

Indicates payment type

Despag 

String 

Max. length: 4.000 

Payment type description

Rsttar 

Rsttar[] 

See definition

See definition

 

Used in: 

Inffpg

 

Sub-element Rsttar: Credit card payment restrictions

 

Element 

Type

Values / Format

Description

Detrta 

Detrta[] 

See definition

See definition

Imprst 

String 

 

Additional amount implicated by the restriction

 

Used in:

Infopg

 


Sub-element Detrta: Details of credit card payment restrictions.

 

Element 

Type

Values / Format

Description

@id 

String 

Max. length: 100 

Element identifier

Codcia 

String[] 

Max. length: 20 

Company code

Imprst 

String 

 

Additional amount implicated by the restriction

 

Used in:

Rsttar

 

Example of response message :

 

<BloqueoServicioRespuesta> 

<ideses>XML#17#442106373838493</ideses> 

<codtou>HTT</codtou> 

<cupest>CM</cupest> 

<coddiv>EUR</coddiv> 

<impnoc>756.34</impnoc> 

<impcom>0</impcom> 

<pasage> 

<adlid="1"

<fecnac>09/06/1981</fecnac> 

<impnoc>378.17</impnoc> 

<impcom>0.0</impcom> 

</adl> 

<adlid="2"

<fecnac>09/06/1981</fecnac> 

<impnoc>378.17</impnoc> 

<impcom>0.0</impcom> 

</adl> 

</pasage> 

<resserid="1"

<fecini>06/09/2011 00:00</fecini> 

<fecfin>16/09/2011 00:00</fecfin> 

<nomser>Las Palomas</nomser> 

<codsca>4*</codsca> 

<codzge>ES3507</codzge> 

<codtse>HT</codtse> 

<subtse>HOTL</subtse> 

<codser>2464</codser> 

<impnoc>756.34</impnoc> 

<impcom>0.0</impcom> 

<estsmoid="1-2"

<codcon>2ED2CD89067AEF5200A6#D0002#11</codcon> 

<codsmo>DBL</codsmo> 

<codcha>STD</codcha> 

<codral>HB</codral> 

<cupest>CM</cupest> 

<estado>CM</estado> 

<impnoc>756.34</impnoc> 

<impcom>0</impcom> 

<numuni>1</numuni> 

<codprv>JBT</codprv> 

<estpas> 

<pasid>1</pasid> 

<pasid>2</pasid> 

<cupest>CM</cupest> 

</estpas> 

</estsmo> 

</resser> 

</BloqueoServicioRespuesta>