Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AirVoid Ticket Travelport #255

Open
huzatech opened this issue Mar 22, 2021 · 2 comments
Open

AirVoid Ticket Travelport #255

huzatech opened this issue Mar 22, 2021 · 2 comments

Comments

@huzatech
Copy link

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

@sharma-hitesh
Copy link

sharma-hitesh commented Jun 9, 2021

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>

@RicOsiro
Copy link

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

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:air="http://www.travelport.com/schema/air_v40_0" xmlns:com="http://www.travelport.com/schema/common_v40_0">
soapenv:Header/
soapenv:Body
<air:AirVoidDocumentReq TraceId="" AuthorizedBy="uAPI" TargetBranch="*" LanguageCode="EN" RetrieveProviderReservationDetails="true" ShowETR="true">
<com:BillingPointOfSaleInfo OriginApplication="uAPI"/>
<air:VoidDocumentInfo DocumentNumber="9969903259897" DocumentType="E-Ticket"/>
</air:AirVoidDocumentReq>
</soapenv:Body>
</soapenv:Envelope>

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants