User Tools

Site Tools


booking:optionconfirm

Confirmation for Optional reservation

To confirm a reservation which is optional, please send a request with type optionconfirm and give an organizer and a reservation number.

<?xml version='1.0'?>
<mds>
  <auth>
    <login>LOGIN</login>
    <pass>PASSWORD</pass>
  </auth>
  <request>
    <type>optionconfirm</type>
    <conditions>
      <ofr_tourOp>ITAK</ofr_tourOp>
      <booking_nr>111111</booking_nr>
    </conditions>
    <forminfo>
   <Person>
    <data>
     <lastname>TEST</lastname>
     <name>TEST</name>
     <birthdate>16.10.1971</birthdate>
     <passport/>
     <zipcode>00-695</zipcode>
     <city>Warszawa</city>
     <street>Testowa 12</street>
     <phone>122131</phone>
     <email>test@test.pl/email>
     <gender>H</gender>
    </data>
    <data>
     <lastname>TEST</lastname>
     <name>TEST</name>
     <birthdate>30.12.1980</birthdate>
     <passport/>
     <zipcode>00-695</zipcode>
     <city>Warszawa</city>
     <street>Testowa 12</street>
     <phone>1212443</phone>
     <email>test@test.pl</email>
     <gender>K</gender>
    </data>
   </Person>
   <Client>
    <lastname>TEST</lastname>
    <name>TEST</name>
    <zipcode>00-695</zipcode>
    <city>Warszawa</city>
    <street>TESTOWA 12</street>
    <phone>122131</phone>
    <workphone/>
    <cellphone/>
    <fax/>
    <email>test@test.pl</email>
    <gender>H</gender>
    <country>Polska</country>
   </Client>
   <client_birthdate>16.10.1971</client_birthdate>
  </forminfo>
  </request>
</mds>

In response, you get the message:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
  <result_message msgType="52" msgCode="204"/>
  <confirm_status>OK</confirm_status>
  <confirm_message>Udane potwierdzenie rezerwacji</confirm_message>
</response>

In the event of an error, the following message will be received (for example):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
  <result_message msgType="51" msgCode="744"/>
  <confirm_status>??</confirm_status>
  <confirm_message>Confirmation of reservation has failed</confirm_message>
</response>
FieldAttributeDescription
result_messagemsgTypeMessage type
result_messagemsgCodeMessage type.
List of possible codes on our site: http://www.merlinx.pl/mdsws/msgcode.csv
confirm_status-Status possibilities:
OK - successful confirmation
?? - confirmation has failed
XX - Reservation with this number was not found in the system
confirm_message-Communication
booking/optionconfirm.txt · Last modified: 2015/04/17 12:05 by marekj