1. OrderDetail
PKFARE Flight Buyer API
  • Guides
    • Quick Start
    • Tricks for Playing with PKFARE API
    • Book air tickets with ancillaries
    • Raise refund requests
    • Raise change requests
    • Receive flight rescheduled notification
    • Add Paid Bags after the Booking
    • Branded Fare Integration Guide
  • API Reference
    • Air ticket booking APIs
      • TicketIssuanceNotify_V2
      • Shopping V10
      • PrecisePricing V12
      • Penalty V4
      • PreciseBooking V8
      • CancelOrder
      • OrderPricing V6
      • Ticketing
      • OrderDetail V14
      • RequestTicketing
      • ModifyOrderStatus
    • Ancillary booking APIs
      • AncillaryStatusPush
      • AncillaryPricing V6
      • AncillaryBooking
      • CancelAncillaryOrder
      • AncillaryTicketing
      • AncillaryOrderDetail
    • Flight schedule change APIs
      • ScheduleChangeNotify
      • GetScheduleChangeReply
      • GetScheduleChangeList
      • AcknowledgeScheduleChange
      • AcceptScheduleChange
    • Refund APIs
      • RefundResultNotify
      • ReimbursedResultNotify
      • Refund Pricing
      • CheckRefundPricing
      • RefundRequest
      • CheckRefund
      • CheckReimbursed
      • DownloadAttachmentFile API
      • UploadAttachmentFile API
    • Change APIs
      • ChangeResultPush
      • Change Reshop
      • Change Request
      • Change Passenger Info
      • Change Reprice
      • ChangeRepricePush
    • Void APIs
      • ReimbursedResultPush
      • VoidRequest
    • Cache APIs
      • CacheShopping
      • ValidateItinerary API
    • APIs with all versions
      • CheckInInfoPush
      • Raise change requests Copy
      • Shopping
        • Shopping
        • Shopping_V2
        • Shopping_V4
        • Shopping V7
        • Shopping V9
        • Shopping V8
      • PrecisePricing
        • PrecisePricing
        • PrecisePricing_V2
        • PrecisePricing_V6
        • PrecisePricing V9
        • PrecisePricing V10
        • PrecisePricing V11
      • Penalty
        • Penalty
        • Penalty V2
        • Penalty V3
      • PreciseBooking
        • PreciseBooking
        • PreciseBooking_V2
        • PreciseBooking_V5
        • PreciseBooking V6
        • PreciseBooking V7
      • OrderPricing
        • OrderPricing_V2
        • OrderPricing V4
        • OrderPricing V5
      • Ticketing
        • Ticketing
      • TicketNumPush
        • TicketingNumPush
        • TicketingNumPush_V2
        • TicketingNumPush_V3
        • TicketIssuanceNotify
      • CancelOrder
        • CancelOrder
      • OrderDetail
        • OrderDetail_V2
        • OrderDetail_V3
        • OrderDetail_V4
        • OrderDetail_V5
        • Json_OrderDetail_V7
          POST
        • Json_OrderDetail_V8
          POST
        • OrderDetail V9
          POST
        • OrderDetail V13
          POST
      • AncillaryPricing
        • AncillaryPricing
        • AncillaryPricing V5
      • AncillaryBooking
        • AncillaryBooking
      • CancelAncillaryOrder
        • CancelAncillaryOrder
      • AncillaryTicketing
        • AncillaryTicketing_V2
      • AncillaryStatusPush
        • AncillaryStatusPush
      • AncillaryOrderDetail
        • AncillaryOrderDetail
      • RequestTicketing
        • RequestTicketing
      • ScheduleChangeNotify
        • ScheduleChangeNotify
      • GetScheduleChangeList
        • GetScheduleChangeList
      • AcknowledgeScheduleChange
        • AcknowledgeScheduleChange
      • AcceptScheduleChange
        • AcceptScheduleChange
      • GetScheduleChangeReply
        • GetScheduleChangeReply
      • RefundPricing
        • RefundPricing
      • CheckRefundPricing
        • CheckRefundPricing
      • RefundRequest
        • RefundRequest
      • RefundResultNotify
        • RefundResultNotify
      • CheckRefund
        • CheckRefund
      • ReimbursedResultNotify
        • ReimbursedResultNotify
      • CheckReimbursed
        • CheckReimbursed
      • UploadAttachmentFile
        • UploadAttachmentFile
      • DownloadAttachmentFile
        • DownloadAttachmentFile
      • ChangeReshop
        • ChangeReshop
      • ChangeRequest
        • ChangeRequest
      • ChangePassengerInfo
        • ChangePassengerInfo
      • VoidRequest
        • VoidRequest
        • VoidRequest_V2
      • ReimbursedResultPush
        • ReimburseResultPush_V2
  • Development Instructions
    • Signature
    • Order Status Explanation
    • Booking errors explanation and suggestions
    • Price Breakdown Explanation
    • Airlines available from PKFARE
    • PKFARE Operation Notice
    • How to retrieve airlines'PNR and ticket numbers
    • PKFARE Buyer API solutionId Usage Guide
  • Notice
    • Release Note
  • Schemas
    • Schemas
      • ShoppingReq
      • Result«ShoppingResult»
      • Authentication
      • SearchDTO
      • JourneysDTO_1
      • PassengersDTO
      • ShoppingResult
      • SegmentsDTO
      • SolutionsDTO
      • BaggageDTO
      • ConditionsDTO
      • ChangeDTO
      • OtherDTO
      • RefundDTO
      • JourneysDTO
      • SegmentInfoDTO
  1. OrderDetail

OrderDetail_V4

1 Document Description#

1.1 Function Description#

Through OrderDetail_V4 API, user can check order details(include ancillary information) by indicating a order number. The order number is returned in the responds of preciseBooking API.

1.2 Target Reader#

The OrderDetail_V4 API document targets developers who work in the fields of network development, maintenance as well as management. They should have the knowledge of at least one of following programmng language: ASP、PHP、JAVA、ASP、.NET.

1.3 Character Encoding#

The character code of this API is UTF-8。

1.4 Invoking Address#

Address in test environment:https://api.pkfare.com/orderDetail/v4?param=reqParam
Address in production environment:http://(pending for provide)/orderDetail/v4?param=reqParam
Notes PKFARE will provide production domain after Buyer Partners finished integration and co-test. Please replace "pending for provide" with the domain which PKFARE provides individually.

2.Request Parameter#

2.1 Parameter Construction#

Please structure paramater as JSON format.
2.1.1 Authentication#
NameTypeRequired or NotParameter DescriptionSample
partnerIdStringYesPartner ID-
signStringYessignature, sign=MD5(partnerId+partnerKey), refer to 4.1 and 4.2-
2.1.2 Data#
NameTypeRequired or NotParameter DescriptionSample
orderNumStringYesOrder Number915687075841601001
includeFieldsStringNoUser could request with 3 options: passengers、journeys、solution、ancillary.passengers,journeys,solutions,ancillary

2.2 Request Sample#

2.2.1 Format Sample in JSON#
Note : Please structure parameter as JSON format. Request should be transmitted after BASE64 encrypted.
Note : Please do not use urlencoded, please use POST method.
Case 1 :A sample request include passengers、journeys、and solution:
    {
    "authentication": {
        "partnerId": "sVSX7PfZm1yF04adBWYfCD7M4=",
        "sign": "e707b5d9dae8459085dbb139e5f1bd"
    },
    "data": {
        "orderNum":915687075841601001,
        "includeFields":"passengers,journeys,solutions,ancillary"
    }
}
Case 2 :A sample request exclude passengers、journeys、and solution:
    {
    "authentication": {
        "partnerId": "BBsVSX7PfZm1yF04adBWYfCD7M4=",
        "sign": "17e707b5d9dae8459085dbb139e5f1bd"
    },
    "data": {
        "orderNum":915687075841601001,
        "includeFields":""
    }
}
2.2.2 Base64 Encryption#
Use BASE64 to encode results from 2.2.1 Case 1:
ICAgewogICAgImF1dGhlbnRpY2F0aW9uIjogewogICAgICAgICJwYXJ0bmVySWQiOiAiQkJzVlNYN1BmWm0xeUYwNGFkQldZZkNEN000PSIsCiAgICAgICAgInNpZ24iOiAiMTdlNzA3YjVkOWRhZTg0NTkwODVkYmIxMzllNWYxYmQiCiAgICB9LAogICAgImRhdGEiOiB7CiAgICAgICAgIm9yZGVyTnVtIjo5MTU2ODcwNzU4NDE2MDEwMDEsCiAgICAgICAgImluY2x1ZGVGaWVsZHMiOiJwYXNzZW5nZXJzLGpvdXJuZXlzLHNvbHV0aW9ucyIKICAgIH0KfQ==
2.2.3 Encryption Request Sample#
This sample is for reference only:
http://open.pkfare.com/apitest/orderDetail/v2?param=ICAgewogICAgImF1dGhlbnRpY2F0aW9uIjogewogICAgICAgICJwYXJ0bmVySWQiOiAiQkJzVlNYN1BmWm0xeUYwNGFkQldZZkNEN000PSIsCiAgICAgICAgInNpZ24iOiAiMTdlNzA3YjVkOWRhZTg0NTkwODVkYmIxMzllNWYxYmQiCiAgICB9LAogICAgImRhdGEiOiB7CiAgICAgICAgIm9yZGVyTnVtIjo5MTU2ODcwNzU4NDE2MDEwMDEsCiAgICAgICAgImluY2x1ZGVGaWVsZHMiOiJwYXNzZW5nZXJzLGpvdXJuZXlzLHNvbHV0aW9ucyIKICAgIH0KfQ==

3. Response Parameter#

3.1 Response Parameter Construction#

You would get the JSON data. Please refer to following tables for more details.
3.1.1 Basic Parameter#
NameTypeParameter DescriptionSample
errorCodeStringError Code,refer to 5.10
errorMsgStringError Message, refer to 5.1OK
dataObjectOnly if the errorCode returns "0", returned data would not be null. Data is refer to 3.1.2-
3.1.2 Data#
NameTypeParameter DescriptionSample
orderStatusStringOrder Status,refer to 5.7ISSUED
orderNumString【PKFARE】Order Number915687075841601001
parentOrderNumString【PKFARE】Applicatable to VOID/CHANGE/REFUND order. For VOID order, this is original ticketing order number. For CHANGE order, this is original ticketing order number or previous change order number. For REFUND order, this is original ticketing order number or previous change order number.915687075841601001
refOrderNumString【PKFARE】Main order number, it could be consider as the original ticketing order number, it will related with multiple orders if VOID/CHANGE/REFUND requested.915687075841601001
orderTypeStringOrder type: O-Ticketing Order, V-Void Order, C-Change Order, R-Refund OrderO
createTimeStringOrder created time2019-09-12 09:12:20
postingDateStringOrder complted time. For Ticketing and Change order, it is ticketing time. For Void order, it is voided time. For Refund order, it is refunded time.2019-09-12
pnrStringPNREDTCZP
airPnrStringAirline PNREDTCZP
pnrListArrayPNR list, refer to 3.1.4-
platingCarrierStringTicket issued AirlineCA
payGateStringForm of payment, Alipay or prepaymentALIPAY
paySerialNumStringSerial Number of payment transaction-
passengersArrayPassenger information, refer to 3.1.3-
journeysObjectItinerary information, refer to 3.1.5-
solutionsArrayPricing information, refer to 3.1.7-
lastTktTimeStringlatest ticketing time (GMT)2015-10-28 23:59:00
ancillaryItemsArrayancillary order information, refer to 3.1.8-
3.1.3 Passengers#
NameTypeParameter DescriptionSample
birthdayStringDate of birth 【yyyy-mm-dd】1988-10-01
cardTypeStringIdentification type, refer to 5.3PP
cardNumStringIdentification NumberG2568574
cardExpiredDateStringIdentification expired date2020-05-06
lastNameStringSurnameWONG
firstNameStringGiven NameLEON
nationalityStringNationality【2 letters country code】CN
psgTypeStringPassenger Type, refer to 5.4ADT
sexStringGender, refer to 5.5M
ticketNumStringTicket Number. If multiple tickets, it will use "/" to separate. For example, 9991234567890/99912345678919991234567890
3.1.4 pnrList#
NameTypeParameter DescriptionSample
segmentNoIntegersegment No.1
departureStringdeparture[IATA airport code]BKK
arrivalStringdestination[IATA airport code]CNX
flightNumStringflight No.FD112
cabinClassStringcabin class, refer to 5.2ECONOMY
bookingCodeStringcabin codeE
pnrStringPNREDTCZP
airPnrStringairline PNREDTCZP
ticketNumsArraypassengers and corresponding ticket num,refer to 3.1.4-
3.1.4 ticketNums#
NameTypeParameter DescriptionSample
passengerIndexIntegerpassenger No.1
ticketNumStringticket number9991234567890
3.1.5 Journey#
NameTypeParameter DescriptionSample
journeyTimeLongJourney time from departure to arrival, unit: minutes350
transferCountIntegerCount of transfer times1
departureDateStringDeparture Date [yyyy-mm-dd](Local time of departure location)2019-10-10
arrivalDateStringArrival Date [yyyy-mm-dd](Local time of arrival location)2019-10-10
departureTimeStringDeparture Time [hh:mm](Local time of departure location)11:00
arrivalTimeStringArrival Time [hh:mm](Local time of arrival location)14:00
segmentsObject[]segment information, refer to 3.1.6-
3.1.6 Segments#
NameTypeParameter DescriptionSample
airlineStringAirlineCA
flightNumStringFlight Number650
equipmentStringEquipment737
cabinClassStringCabin Class, refer to 5.2ECONOMY
bookingCodeStringBooking CodeE
departureStringDeparture AirportPEK
arrivalStringArrival AirportHKG
departureTerminalStringDeparture Terminal3
arrivalTerminalStringArrival Terminal1
departureDateStringDeparture Date [yyyy-mm-dd](Local time of departure location)2019-10-10
arrivalDateStringArrival Date [yyyy-mm-dd](Local time of arrival location)2019-10-10
departureTimeStringDeparture Time [hh:mm](Local time of departure location)11:00
arrivalTimeStringArrival Time [hh:mm] (Local time of arrival location)14:00
flightTimeIntegerFly Time, Unit: minutes130
stayTimeIntegerStay Time, Unit:minutes60
codeShareStringCode Share Indicator [Y-Code Share flight, N-Not Code Share flight]Y
opFltNoStringOperating Flight Number202
opFltAirlineStringOperating CarrierKA
stopoverStringStopover AirportPEK
3.1.7 Solutions#
NameTypeParameter DescriptionSample
currencyStringCurrencyCNY
adtFareBigDecimalFare Amount per adult of original order1000
adtTaxBigDecimalTax Amount per adult of original order350
chdFareBigDecimalFare Amount per child of original order750
chdTaxBigDecimalTax Amount per child of original order250
tktFeeBigDecimalIssue Ticket Fee per person50
merchantFeeBigDecimalMerchant Fee of the order2
distCostBigDecimalDistribution Cost of the order0
couponBigDecimalUsed Coupon Amount of the order0
buyerAmountBigDecimalBuyer Amount of the order2452
voidServFeeBigDecimalVoid Service Fee per person of void order50
voidReimTktFeeBigDecimalTicket Fee reimbursed amount of void order0
voidReimMerFeeBigDecimalMerchant Fee reimbursed amount of void order0
voidReimDistCostBigDecimalDistribution Cost reimbursed amount of void order0
voidReimCouponBigDecimalCoupon reimbursed amount of void order0
voidReimAmountBigDecimalReimbused amount of void order0
adtChgFeeBigDecimalChange Fee per adult of change order500
chdChgFeeBigDecimalChange Fee per child of change order500
adtChgAddFeeBigDecimalFare difference per adult of change order0
chdChgAddFeeBigDecimalFare difference per child of change order0
chgServFeeBigDecimalChange Service Fee per adult of change order0
chgMerFeeBigDecimalChange Merchain Fee of change order0
chgBuyerAmountBigDecimalBuyer Amount of change order1000
adtRfdFeeBigDecimalRefund Fee per adult of refund order500
chdRfdFeeBigDecimalRefund Fee per child of refund order500
adtUsedFeeBigDecimalUsed fare per adult of refund order500
chdUsedFeeBigDecimalUsed fare per child of refund order500
adtReimChgAddFeeBigDecimalReimbursed fare difference per adult of refund order0
chdReimChgAddFeeBigDecimalReimbursed fare difference per child of refund order0
rfdServFeeBigDecimalRefund Service Fee per person of refund order80
rfdReimTktFeeBigDecimalReimbursed Ticket Fee per person of refund order0
rfdReimMerFeeBigDecimalReimbursed Merchant Fee of refund order0
rfdReimDistCostBigDecimalReimbursed Distribution Cost of refund order0
rfdReimCouponBigDecimalReimbursed Coupon of refund order0
rfdReimAmountBigDecimalReimbursed amount of refund order0
3.1.8 AncillaryItems#
NameTypeParameter DescriptionSample
itemNumberStringancillary order number915687075841601003
itemStatusStringancillary order status, refer to 5.7ISSUED
createdTimeStringancillary order created time2016-09-22 09:12:44
saleStageIntegersale stage; 0-on sale, 1-after sale0
ancillaryTypeIntegerancillary type; 1-baggage1
ancillaryInfoArrayancillary information-
3.1.9 AncillaryInfo#
NameTypeParameter DescriptionSample
baggageObjectbaggage details-
3.1.10 Baggage#
NameTypeParameter DescriptionSample
payBaggageTypeIntegerbaggage type; 1-checked baggage, 2-carry-on baggage1
baggagePieceIntegerbaggage piece; -1 - no limit to baggage piece1
baggageWeightStringbaggage weight20KG
baggageCurrencyStringcurrencyCNY
baggagePriceBigDecimalprice198.00
descriptionStringbaggage description-
lastNameStringlast nameWANG
firstNameStringfirst nameJONGO
psgTypeStringpassenger typeADT
emdNumberStringEMD number-
segmentsArrayassociated segment information-
3.1.11 Segments#
NameTypeParameter DescriptionSample
airlineStringairline codeFD
departureStringorigin[IATA airport code]DMK
departureDateStringdeparture date[yyyy-MM-dd]2022-10-01
departureTimeStringdeparture time[hh:mm]09:55
arrivalStringdestination[IATA airport code]CNX
arrivalDateStringarrival date[yyyy-MM-dd]2022-10-01
arrivalTimeStringarrival time[hh:mm]11:25
flightNumStringflight number513
bookingCodeStringcabin codeN

3.2 Response Sample#

3.2.1 Success Response#
Note: Including passenger and journey information
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "orderStatus": "ISSED",
        "orderNum": "916711515478196501",
        "refOrderNum": "9167115154781965",
        "orderType": "O",
        "createdTime": "2022-12-16 08:45:48",
        "pnr": "NLVX8J1|NLVX8J2|NLVX8J3|NLVX8J4|NLVX8J5|NLVX8J6",
        "airPnr": "1NLVX8J|2NLVX8J|3NLVX8J|4NLVX8J|5NLVX8J|6NLVX8J",
        "platingCarrier": "JL",
        "payGate": "Prepay",
        "paySerialNum": "PREPAY_20221216084555_916711515478196501_3682",
        "passengers": [
            {
                "firstName": "SHEENA",
                "lastName": "PACHECO",
                "psgType": "ADT",
                "nationality": "US",
                "sex": "M",
                "birthday": "2003-01-14",
                "cardType": "P",
                "cardNum": "89374924",
                "cardExpiredDate": "2024-12-26",
                "ticketNum": "6476781/6476783/6476785"
            },
            {
                "firstName": "APRIL",
                "lastName": "CLAY",
                "psgType": "CHD",
                "nationality": "US",
                "sex": "M",
                "birthday": "2015-03-27",
                "cardType": "P",
                "cardNum": "293874123",
                "cardExpiredDate": "2025-01-03",
                "ticketNum": "6476782/6476784/6476786"
            }
        ],
        "journeys": [
            {
                "journeyTime": 1395,
                "transferCount": 2,
                "segments": [
                    {
                        "airline": "AC",
                        "flightNum": "211",
                        "equipment": "7M8",
                        "cabinClass": "BUSINESS",
                        "bookingCode": "P",
                        "departure": "YYC",
                        "arrival": "YVR",
                        "departureTerminal": "",
                        "arrivalTerminal": "M",
                        "departureDate": "2023-11-27",
                        "arrivalDate": "2023-11-27",
                        "departureTime": "10:40",
                        "arrivalTime": "11:22",
                        "flightTime": 102,
                        "codeShare": "N",
                        "opFltAirline": ""
                    },
                    {
                        "airline": "JL",
                        "flightNum": "17",
                        "equipment": "767",
                        "cabinClass": "BUSINESS",
                        "bookingCode": "X",
                        "departure": "YVR",
                        "arrival": "NRT",
                        "departureTerminal": "M",
                        "arrivalTerminal": "2",
                        "departureDate": "2023-11-27",
                        "arrivalDate": "2023-11-28",
                        "departureTime": "12:35",
                        "arrivalTime": "16:30",
                        "flightTime": 655,
                        "codeShare": "N",
                        "opFltAirline": ""
                    },
                    {
                        "airline": "JL",
                        "flightNum": "729",
                        "equipment": "767",
                        "cabinClass": "BUSINESS",
                        "bookingCode": "D",
                        "departure": "NRT",
                        "arrival": "CGK",
                        "departureTerminal": "2",
                        "arrivalTerminal": "3",
                        "departureDate": "2023-11-28",
                        "arrivalDate": "2023-11-28",
                        "departureTime": "17:45",
                        "arrivalTime": "23:55",
                        "flightTime": 490,
                        "codeShare": "N",
                        "opFltAirline": ""
                    }
                ],
                "departureTime": "10:40",
                "arrivalTime": "23:55",
                "departureDate": "2023-11-27",
                "arrivalDate": "2023-11-28"
            }
        ],
        "solutions": [
            {
                "currency": "USD",
                "adtFare": 2743.71,
                "adtTax": 61.51,
                "chdFare": 2061.71,
                "chdTax": 61.60,
                "tktFee": 3.44,
                "merchantFee": 0,
                "distCost": 0,
                "coupon": 0,
                "buyerAmount": 4935.41
            }
        ],
        "lastTktTime": "2023-11-26 23:59:00",
        "pnrList": [
            {
                "segmentNo": 2,
                "departure": "YVR",
                "arrival": "NRT",
                "flightNum": "17",
                "pnr": "NLVX8J4",
                "cabinClass": "BUSINESS",
                "bookingCode": "X",
                "ticketNums": [
                    {
                        "ticketNum": "6476784",
                        "passengerIndex": 2
                    }
                ]
            },
            {
                "segmentNo": 2,
                "departure": "YVR",
                "arrival": "NRT",
                "flightNum": "17",
                "pnr": "NLVX8J3",
                "cabinClass": "BUSINESS",
                "bookingCode": "X",
                "ticketNums": [
                    {
                        "ticketNum": "6476783",
                        "passengerIndex": 1
                    }
                ]
            },
            {
                "segmentNo": 1,
                "departure": "YYC",
                "arrival": "YVR",
                "flightNum": "211",
                "pnr": "NLVX8J2",
                "cabinClass": "BUSINESS",
                "bookingCode": "P",
                "ticketNums": [
                    {
                        "ticketNum": "6476782",
                        "passengerIndex": 2
                    }
                ]
            },
            {
                "segmentNo": 1,
                "departure": "YYC",
                "arrival": "YVR",
                "flightNum": "211",
                "pnr": "NLVX8J1",
                "cabinClass": "BUSINESS",
                "bookingCode": "P",
                "ticketNums": [
                    {
                        "ticketNum": "6476781",
                        "passengerIndex": 1
                    }
                ]
            },
            {
                "segmentNo": 3,
                "departure": "NRT",
                "arrival": "CGK",
                "flightNum": "729",
                "pnr": "NLVX8J5",
                "cabinClass": "BUSINESS",
                "bookingCode": "D",
                "ticketNums": [
                    {
                        "ticketNum": "6476785",
                        "passengerIndex": 1
                    }
                ]
            },
            {
                "segmentNo": 3,
                "departure": "NRT",
                "arrival": "CGK",
                "flightNum": "729",
                "pnr": "NLVX8J6",
                "cabinClass": "BUSINESS",
                "bookingCode": "D",
                "ticketNums": [
                    {
                        "ticketNum": "6476786",
                        "passengerIndex": 2
                    }
                ]
            }
        ]
    }
}
Note: Not including passenger and journey information
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "orderStatus": "ISSED",
        "orderNum": 1234568788,
        "parentOrderNum": null,
        "refOrderNum": 1234568788,
        "orderType": "O",
        "createdTime": "2016-09-22 09:12:44",
        "postingDate": "2016-09-22",
        "pnr": "OTZATB",
        "airPnr": "7C/ZP35Q",
        "platingCarrier": "7C ",
        "payGate": "prepay",
        "paySerialNum": "PREPAY_20160922092648_1234568788_1234"
    }

3.2.2 Error Response#
{
    "errorCode": "P001",
    "errorMsg": "Invalid authentication.",
    "data": null
}

4 Signature#

4.1 Parameters of Signature#

partnerId,partnerKey

4.2 Signature#

Combine partnerId and partnerKey to make an MD5 encryption on final value.
Sign = MD5(partnerId+partnerKey)。
e.g
partnerId: abcdefg123456
partnerKey: jkHKhkikdhy258dffj
Sign = MD5(abcdefg123456jkHKhkikdhy258dffj) = d7e99ae9d5c3c7d7113aced071e3ca08

5 Appendix#

5.1 Error Code List#

errorCodeerrorMsgDescription
0okRequest has been processed successfully
S001System errorSystem error
S002timeoutRequest timeout
P001-Parameter is illegal
B002Partner is not exists.PartnerID does not exist
B003Illegal signIllegal sign. Please check your signature
B048Invalid buyerRequest buyer is not matched with order.
B037Order is not exists.Order is not exist.

5.2 Cabin Class#

EnumDescription
ECONOMYeconomy class
PREMIUM ECONOMYpremium economy class
BUSINESSbusiness class
FIRSTfirst class

5.3 Type of identification#

Chinese Identity is supported for the China domesic journey(NOT inlcuding Hong Kong, Macao and Taiwan).
EnumDescription
PPPassport
HKHongkong and Macau permit for Chinese
TWMainland Travel Permit for Taiwan Residents
BHHome Return Permit
NIChinese Identity
THOthers

5.4 Passenger Type#

EnumDescription
ADTAdult
CHDChild[2-12 years old]

5.5 Gender#

EnumDescription
MMale
FFemale

5.6 Fare Type#

EnumDescription
PUBLICPublic Fare
PRIVATEPrivate Fare

5.7 Order Status#

EnumDescription
ISS_PRCTicket is issuing.
CHG_PRCChange order is proceeding.
REFD_PRCRefund order is proceeding.
VOID_PRCTicket is voiding.
TO_BE_PAIDTo be Paid.
ISSEDTicket issued.
TO_BE_RSVTo be reserved.
UNDER_REVIEWUnder review.
HOLDOrder is holding manually, please contact customer service for further action.
RSV_FAILReservation failed
CLOSEDOrder closed.
CNCLOrder Cancelled.
CNCL_TO_BE_REIMOrder Cancelled, and reimbursement is under processing.
CNCL_REIMEDOrder Cancelled, and payment has been reimbused.
CHG_RQChange Order is requested.
CHG_TO_BE_PAIDChange Order is to be paid.
CHG_REJChange Order is rejected.
CHGDChange Order is changed.
REFD_REJChange Order is rejected.
REFD_TO_BE_REIMRefunded to be reimbursed.
REFD_REIMEDRefunded and reimbursed.
REFDRefunded
VOID_REJVoid request is rejected.
VOID_TO_BE_REIMVoid to be reimbursed.
VOID_REIMEDVoid and reimbursed
VOIDVoid
Top
Modified at 2024-05-06 01:51:19
Previous
OrderDetail_V3
Next
OrderDetail_V5