The action (function) bookingcancel cancels the reservation, when it is possible.
WARNING: Cancellation possibility, and possible costs, should be checked beforehand with action bookingcheckcancel.
Sample inquiry:
<?xml version='1.0'?> <mds> <auth> <login>LOGIN</login> <pass>PASSWORD</pass> </auth> <request> <type>bookingcancel</type> <conditions> <ofr_tourOp>ITAK</ofr_tourOp> <booking_nr>6345224</booking_nr> </conditions> </request> </mds>
| Field | Required | Description |
|---|---|---|
| ofr_tourOp | yes | booking number from Tour-operator |
| booking_nr | yes | reservation number |
| multifunction | no1) | Content of the multi-function-line |
Response example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <response> <result_message msgType="52" msgCode="202"/> <booking_status>XX</booking_status> <pricecancel price="0" curr="PLN"/> <booking_info> <line><![CDATA[UF_STORNO_FORFREE ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> <line><![CDATA[ ]]></line> </booking_info> </response>
| Field | Attribute | Description |
|---|---|---|
| result_message | msgCode | Current code List of possible codes on our site: http://www.merlinx.pl/mdsws/msgcode.csv |
| booking_status | - | Code for reservation's status |
| pricecancel | - | Cost of cancellation |
| pricecancel | price | Cost of cancellation amount |
| pricecancel | curr | Cost of cancellation currency |
| booking_info | - | information from the Tour-operator for the reservation |
Possible codes for reservation status:
| Code | Description |
|---|---|
| XX | Canceled booking |
| RQ | Reservation “on request” |
| RR | Booking on request CONFIRMED by Tour-operator |
| OP | Option reservation |
| RF | CONFIRMED option reservation |
| OK | Firm booking |
| ?? | Because of technical reasons, booking status could not be determined |