Calculate Award Miles With Tax

Calculates award miles with tax.

 

Input

Name Description Type Required

awardType

Award type String (E,B,C) Yes

wantMoreMiles

F/T. F: no seatGuaranteed T: seatGuaranteed String (F, T) No

isOneWay

OneWay/Round trip. String(T) No

departureOrigin

Departure Origin. String (IST) No

departureDestination

Departure Destination. String (IST) No

departureDateDay

Card type int No

departureDateMonth

Departure Date Month. int No

departureDateYear

Departure Date Year. int No

arrivalOrigin

Arrival Origin. String No

arrivalDestinaton

Arrival Destination. String No

arrivalDateDay

Arrival Date Day. int No

arrivalDateMonth

Arrival Date Month. int No

arrivalDateYear

AArrival Date Year. int No

ptcType

Req infant,child Passenger type FFY,TNN, TNF,FFC… String No

Output

Return

Name Description Type

resultCode

The code which returns result of queries. String

resultDescription

The message which returns result of queries. String

miles

Mile value of award. int

parameter_header_seq

Not used. int

promotionMessageEN

Tax text EN. String

promotionMessageTR

Tax test TR. String

taxAmount

Initial tax amount String

taxCurrency

Tax currency. String

Request

			
{
	awardType : "E",
	wantMoreMiles : "F",
	isOneWay : "T",
	departureOrigin : "IST",
	departureDestination : "FRA",
	departureDateDay : 12,
	departureDateMonth: 11,
	departureDateYear : 2017
}
			
        

Response

			
{
   "status": "SUCCESS",
   "message":    {
      "code": "TK-0000",
      "description": "Request Processed Successfully."
   },
   "data": {"return":    {
      "taxCurrency": "USD",
      "resultCode": "OK",
      "parameter_header_seq": "0",
      "resultDescription": "-",
      "taxAmount": "48.9",
      "miles": "10000"
   }}
}
			
		

You can find how to test an API in documentation page.