<?xml version="1.0" encoding="utf-8"?>
<message>
<authentication login="testhotel" password="testpassword" />
<bookingConfirmation hotelCode="1234" partnerBookingId="EOCFGA"
status="Create" crsBookingId="RXHS34" />
</message>
<?xml version="1.0" encoding="utf-8"?>
<message>
<success />
</message>
<?xml version="1.0" encoding="utf-8"?>
<message>
<failure type="202" message="InvalidXMLMessage">
<comment><![CDATA[Missing bookingConfirmation element]]></comment>
</failure>
</message>
Bookings
Confirm bookings
D-EDGE acknowledges each booking it has integrated
<?xml version="1.0" encoding="utf-8"?>
<message>
<authentication login="testhotel" password="testpassword" />
<bookingConfirmation hotelCode="1234" partnerBookingId="EOCFGA"
status="Create" crsBookingId="RXHS34" />
</message>
<?xml version="1.0" encoding="utf-8"?>
<message>
<success />
</message>
<?xml version="1.0" encoding="utf-8"?>
<message>
<failure type="202" message="InvalidXMLMessage">
<comment><![CDATA[Missing bookingConfirmation element]]></comment>
</failure>
</message>
D-EDGE sends HTTP
POST requests to the URL you provide, with the XML message as the raw body and the credentials inside the message. The hosting model is described in the introduction.The message we send
element
required
The root element.
Hide child elements
Hide child elements
element
required
Your credentials: a
login and a password attribute, each up to 50 characters. See Authentication.element
required
The acknowledgement.
Hide attributes
Hide attributes
attribute · string
required
The hotel identifier or code on your platform. Maximum 50 characters.
attribute · string
required
Your booking identifier, the
id of the booking message. Maximum 20 characters.attribute · enum
required
The action that was integrated in D-EDGE:
Create, Modify, or Cancel.attribute · string
required
The booking reference in D-EDGE.
<?xml version="1.0" encoding="utf-8"?>
<message>
<authentication login="testhotel" password="testpassword" />
<bookingConfirmation hotelCode="1234" partnerBookingId="EOCFGA"
status="Create" crsBookingId="RXHS34" />
</message>
Your response
Answer200 OK with the message envelope: <success> when the acknowledgement is recorded, <warning> when it is recorded with a reservation. On a refusal, <failure> with 3 when the credentials do not match, or 201, 202, or 203 when the message could not be read.
<?xml version="1.0" encoding="utf-8"?>
<message>
<success />
</message>
<?xml version="1.0" encoding="utf-8"?>
<message>
<failure type="202" message="InvalidXMLMessage">
<comment><![CDATA[Missing bookingConfirmation element]]></comment>
</failure>
</message>
Like every message D-EDGE sends, the request can start with a byte order mark. It carries
Content-Type: application/xml; charset=utf-8, but parse the body whatever the header says. See Requests.Was this page helpful?