The view documentation call allows you to view documentation for a particular booking. In the request you send a booking reference and the ID of the documentation you wish to view. For example, a booking might have two separate documents attached to it, a confirmation voucher and cancellation voucher, with booking documentation IDs of 1 and 2 respectively. To view the cancellation voucher, you would send the booking reference and the booking documentation ID in the request.
The response will return a document path for the document, which is a URL you can go to to view the document online.
The structure of the XML will be:
The response returned will contain a URL (or URL's) that can be used to download the document.
The structure of the XML will be:
This request will send documentation with an ID 1 to the lead customer email address on booking 1000212:
<ViewDocumentationRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<BookingReference>1000095</BookingReference>
<BookingDocumentationID>1</BookingDocumentationID>
</ViewDocumentationRequest>
<ViewDocumentationResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<DocumentationPaths>
<DocumentationPath>http://testtravel.ivector.co.uk/bookingdocuments/Direct-Documentation 1000095-1.pdf</DocumentationPath>
</DocumentationPaths>
</ViewDocumentationResponse>