Open huzatech opened 3 years ago
Here is a Void request/response sample. Hope this helps:
Request:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:AirVoidDocumentReq
xmlns="http://www.travelport.com/schema/common_v48_0"
xmlns:ns2="http://www.travelport.com/schema/air_v48_0"
xmlns:ns3="http://www.travelport.com/schema/vehicle_v48_0"
xmlns:ns4="http://www.travelport.com/soa/common/security/SessionContext_v1_0"
xmlns:ns5="http://www.travelport.com/schema/rail_v48_0" ShowETR="true" ProviderCode="1V" ProviderLocatorCode="NKSMZL" TargetBranch="P7093859">
<BillingPointOfSaleInfo OriginApplication="UAPI"/>
<ns2:AirReservationLocatorCode>12IOZJ</ns2:AirReservationLocatorCode>
</ns2:AirVoidDocumentReq>
</soap:Body>
</soap:Envelope>**Sample responses:**
Failure response 1:
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>Server.Data</faultcode>
<faultstring>No valid document exist for the Air reservation.</faultstring>
<detail>
<common_v48_0:ErrorInfo
xmlns:common_v48_0="http://www.travelport.com/schema/common_v48_0">
<common_v48_0:Code>6221</common_v48_0:Code>
<common_v48_0:Service>WEBSVC</common_v48_0:Service>
<common_v48_0:Type>Data</common_v48_0:Type>
<common_v48_0:Description>No valid document exist for the Air reservation.</common_v48_0:Description>
<common_v48_0:TransactionId>7302EFF70A0D6A80C0FAB3DECAA36621</common_v48_0:TransactionId>
</common_v48_0:ErrorInfo>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
Failure response 2:
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<air:AirVoidDocumentRsp TransactionId="*****" ResponseTime="601"
xmlns:air="http://www.travelport.com/schema/air_v48_0"
xmlns:common_v48_0="http://www.travelport.com/schema/common_v48_0">
<air:ETR>
<air:AirReservationLocatorCode>********</air:AirReservationLocatorCode>
.
.
.
</air:ETR>
<air:VoidResultInfo DocumentNumber="*******" DocumentType="E-Ticket" ResultType="Failed">
<air:FailureRemark>VOID NOT ALLOWED - INVALID TICKET/COUPON STATUS</air:FailureRemark>
</air:VoidResultInfo>
</air:AirVoidDocumentRsp>
</SOAP:Body>
</SOAP:Envelope>
Success Response
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<air:AirVoidDocumentRsp TransactionId="*****" ResponseTime="601"
xmlns:air="http://www.travelport.com/schema/air_v48_0"
xmlns:common_v48_0="http://www.travelport.com/schema/common_v48_0">
<air:ETR>
<air:AirReservationLocatorCode>********</air:AirReservationLocatorCode>
.
.
.
</air:ETR>
<air:VoidResultInfo DocumentNumber="*******" DocumentType="E-Ticket" ResultType="Success"></air:VoidResultInfo>
</air:AirVoidDocumentRsp>
</SOAP:Body>
</SOAP:Envelope>
hi,
the ticket cancel is simple, basically you should send the locator and/or document number. It is depends on how do you want cancel. If you are facing a issue please send the xml request.
this is a example cancelling by ticket number
Hi Vivekjyoti, I am searching the xml for AirVoid ticket but I can't found anything. Can please share a req & res for void air ticket.
Thanks