1. AncillaryOrderDetail
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
        • Json_OrderDetail_V8
        • OrderDetail V9
        • OrderDetail V13
      • 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. AncillaryOrderDetail

AncillaryOrderDetail

1 Function#

Through AncillaryOrderDetail API, you can check ancillary order details

2 Versioning#

VersionSandbox Invoking AddressUpdate
ancillaryOrderDetailhttp://api.pkfare.com/ancillaryOrderDetailSupport postbooking paid baggage
Below is the most updated version

#

3 Charater Encoding#

The character code of this API is UTF-8.

#

4 Request#

4.1 Schema#

Please structure parameter as JSON format. Request should be transmitted after BASE64 encrypted.
NameTypeRequiredDescriptionSample
Basic Parameters
authenticationobjectYesauthentication information
dataobjectYesancillary data
Authentication
partnerIdStringYespartner IDHJqiE0YKcJlXnkCkZKhzIis5o=
signStringYessignature, sign=MD5(partnerId+partnerKey)fed53d44ea413c40d5f18e69047b7c
Data
ancillaryOrderNumstringYesPKFARE ancillary order number917049521951368302

4.2 Request Example#

{
    "authentication": {
        "sign": "09516fe5668d5d92695d3af62d55a2d0",
        "partnerId": "hrXpLEy2wxdO7PXjh7WoMPpjw3U="
    },
    "data": {
        "ancillaryOrderNum": "917049521951368302"
    }
}

5 Response#

5.1 Schema#

NameTypeDescriptionSample
Basic Parameters
errorCodestringerror code, refer to Error Code List0
errorMsgstringerror msgok
dataobjectOnly if the errorCode returns "0", returned data would not be null.-
Data
ancillaryOrderNumstringPKFARE ancillary order number917049521951368302
airOrderNumstringassociated air order number
ancillaryOrderStatusstringthe status of ancillary order-
ancillaryOrderTypestringancillary order type, ORIGIN-Ticketing Order
saleStageIntegersales stage:0- prebooking stage; 1-postbooking stage
ancillaryTypeIntegerancillary type:1-baggage; 2- seat
createTimestringancillary order created time(GMT)2023-12-26T05:07:36+00:00
pnrstringPNR
airPnrstringAirline PNR
payGatestringForm of payment, Alipay or PrepayPrepay
paySerialNumstringSerial Number of payment transaction
lastTktTimestringlatest ticketing time (GMT)2023-12-26T05:07:36+00:00
passengersarraypassengers information
journeysarrayjourney information
ancillaryInfosarrayancillary information
Passengers
lastNamestringlast nameZhong
firstNamestringfirst nameXiaoJun
sexstringgender;M-male,F-femaleM
birthdaystringbirthday2003-03-23
psgTypestringpassenger type including ADT for adults, CHD for childrenADT
passengerIDstringunique identification of the passenger-
Journeys
journeyIDstringunique identification of the journey-
segmentsarraysegment detail-
Segments
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
segmentKeystringunique identification of the segment-
AncillaryInfos
baggagesarraybaggage detail-
Baggages
payBaggageTypeintegerbaggage type; 1-checked baggage, 2-carry-on baggage
baggagePieceintegerbaggage piece; -1 - no limit to baggage piece-1
baggageWeightstringbaggage weight20KG
baggageCurrencystringcurrencyCNY
baggagePricebigdecimalprice198.00
descriptionstringbaggage description1PC x 25lb Cabin Bag
journeyIDstringunique identification of the journey
passengerIDstringunique identification of the passenger

5.2 Example#

Success response
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "ancillaryOrderNum": "917049521951368302",
        "airOrderNum": "917049521951368301",
        "ancillaryOrderStatus": "ISSED",
        "ancillaryOrderType": "ORIGIN",
        "saleStage": 1,
        "ancillaryType": 1,
        "createTime": "2024-01-11T05:50:36+00:00",
        "pnr": "E39BB4|dW1pNV",
        "airPnr": "wPIJCe|EYLo2H",
        "payGate": "Prepay",
        "paySerialNum": "PREPAY_20240111135036_917049521951368302_5451",
        "lastTktTime": "",
        "passengers": [
            {
                "lastName": "ZHONG",
                "firstName": "XIAOJUN",
                "psgType": "ADT",
                "birthday": "2003-03-23",
                "sex": "M",
                "passengerID": "242473"
            },
            {
                "lastName": "KAUFMAN",
                "firstName": "HARRIS",
                "psgType": "ADT",
                "birthday": "2003-03-23",
                "sex": "M",
                "passengerID": "242474"
            },
            {
                "lastName": "HONG",
                "firstName": "YUE",
                "psgType": "CHD",
                "birthday": "2015-03-23",
                "sex": "M",
                "passengerID": "242475"
            }
        ],
        "journeys": [
            {
                "journeyID": "152253",
                "segments": [
                    {
                        "airline": "NK",
                        "departure": "SAN",
                        "departureDate": "2024-01-26",
                        "departureTime": "20:06",
                        "arrival": "LAS",
                        "arrivalDate": "21:31",
                        "arrivalTime": "2024-01-26",
                        "flightNum": "744",
                        "bookingCode": "U",
                        "segmentKey": "176709"
                    }
                ]
            },
            {
                "journeyID": "152254",
                "segments": [
                    {
                        "airline": "NK",
                        "departure": "LAS",
                        "departureDate": "2024-02-10",
                        "departureTime": "21:53",
                        "arrival": "SAN",
                        "arrivalDate": "23:11",
                        "arrivalTime": "2024-02-10",
                        "flightNum": "1850",
                        "bookingCode": "W",
                        "segmentKey": "176710"
                    }
                ]
            }
        ],
        "ancillaryInfos": [
            {
                "baggages": {
                    "passengerID": "242473",
                    "journeyID": "152254",
                    "payBaggageType": 1,
                    "baggagePiece": 1,
                    "baggageWeight": "18KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "521.00",
                    "description": "1PC x 40lb Checked Bag"
                }
            },
            {
                "baggages": {
                    "passengerID": "242473",
                    "journeyID": "152253",
                    "payBaggageType": 2,
                    "baggagePiece": 1,
                    "baggageWeight": "11KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "556.00",
                    "description": "1PC x 25lb Cabin Bag"
                }
            },
            {
                "baggages": {
                    "passengerID": "242474",
                    "journeyID": "152254",
                    "payBaggageType": 1,
                    "baggagePiece": 1,
                    "baggageWeight": "18KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "521.00",
                    "description": "1PC x 40lb Checked Bag"
                }
            },
            {
                "baggages": {
                    "passengerID": "242474",
                    "journeyID": "152253",
                    "payBaggageType": 2,
                    "baggagePiece": 1,
                    "baggageWeight": "11KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "556.00",
                    "description": "1PC x 25lb Cabin Bag"
                }
            },
            {
                "baggages": {
                    "passengerID": "242475",
                    "journeyID": "152254",
                    "payBaggageType": 1,
                    "baggagePiece": 1,
                    "baggageWeight": "18KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "521.00",
                    "description": "1PC x 40lb Checked Bag"
                }
            },
            {
                "baggages": {
                    "passengerID": "242475",
                    "journeyID": "152253",
                    "payBaggageType": 2,
                    "baggagePiece": 1,
                    "baggageWeight": "11KG",
                    "baggageCurrency": "CNY",
                    "baggagePrice": "556.00",
                    "description": "1PC x 25lb Cabin Bag"
                }
            }
        ]
    }
}

6 Error Code List#

errorCodeerrorMsg
0ok
S001System error
P002XXX is missing
B002Partner is not exists
B003Illegal sign
B036Order is not exist
Modified at 2024-05-06 01:59:41
Previous
AncillaryStatusPush
Next
RequestTicketing