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

Json_OrderDetail_V7

POST
/json/orderDetail/v7

Function#

Through OrderDetail_V7 API, users can check order details including all ancillary bookings.
Besides, users could check schedule change history and check-in detials for specific airlines by this interface.

Versioning#

VersionSandbox Invoking AddressUpdate
OrderDetailhttps://api.pkfare.com/orderDetail/v2?param=reqParam
OrderDetail_V3https://api.pkfare.com/orderDetail/v3?param=reqParamPaid baggage information is available in order details.
OrderDetail_V4https://api.pkfare.com/orderDetail/v4?param=reqParam
OrderDetail_V5https://api.pkfare.com/orderDetail/v5?param=reqParamSchedule change information is available in order details.
OrderDetail_V6https://api.pkfare.com/orderDetail/v6?param=reqParamInfant ticket info is available in order details. Ticket voidable info and reject info for change orders is provided. ScheduleChange is optional in includeFields.
OrderDetail_V7http://api.pkfare.com/orderDetail/v7?param=reqParamseat information is available in order details; Checkin information is available as well
OrderDetail_V7 (json format)http://api.pkfare.com/json/orderDetail/v7seat information is available in order details; Checkin information is available as well; Support json-formatted requesting structure

Order Status List#

Order Status List
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.
REDF_RQRefund Order is under review.
REFD_REJRefund 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

Error Code List#

erroCodeerroMsgDescription
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.

Request

Body Params application/json

Example
 {
   "authentication": {
		"partnerId": "{{partnerId}}",
		"sign": "{{sign}}"
	},
    "data": {
        "orderNum":"917133223962851001",
        "includeFields":"passengers,journeys,solutions,ancillary,scheduleChange,checkinInfo"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.pkfare.com/json/orderDetail/v7' \
--header 'Content-Type: application/json' \
--data '{
   "authentication": {
		"partnerId": "",
		"sign": ""
	},
    "data": {
        "orderNum":"917133223962851001",
        "includeFields":"passengers,journeys,solutions,ancillary,scheduleChange,checkinInfo"
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Examples
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "orderStatus": "ISSED",
        "orderNum": "917070354395357001",
        "refOrderNum": "9170703543953570",
        "orderType": "O",
        "createdTime": "2024-02-04 16:30:40",
        "postingDate": "2024-02-04 16:31:13",
        "pnr": "6y6d34",
        "airPnr": "C3pyn0",
        "platingCarrier": "VJ",
        "payGate": "Prepay",
        "paySerialNum": "PREPAY_20240204163055_917070354395357001_2477",
        "passengers": [
            {
                "firstName": "SHASHA",
                "lastName": "XIA",
                "psgType": "ADT",
                "nationality": "CN",
                "sex": "M",
                "birthday": "2003-03-23",
                "cardType": "P",
                "cardNum": "E11887134",
                "cardExpiredDate": "2027-03-31",
                "ticketNum": "C3pyn0",
                "passengerIndex": 1
            }
        ],
        "journeys": [
            {
                "journeyTime": 145,
                "transferCount": 0,
                "segments": [
                    {
                        "airline": "VJ",
                        "flightNum": "813",
                        "equipment": "321",
                        "cabinClass": "ECONOMY",
                        "bookingCode": "T",
                        "departure": "SGN",
                        "arrival": "SIN",
                        "departureTerminal": "2",
                        "arrivalTerminal": "4",
                        "departureDate": "2024-03-04",
                        "arrivalDate": "2024-03-04",
                        "departureTime": "06:50",
                        "arrivalTime": "10:15",
                        "flightTime": 145,
                        "codeShare": "N"
                    }
                ],
                "departureTime": "06:50",
                "arrivalTime": "10:15",
                "departureDate": "2024-03-04",
                "arrivalDate": "2024-03-04"
            }
        ],
        "solutions": [
            {
                "currency": "CNY",
                "adtFare": 1574,
                "adtTax": 291,
                "tktFee": 0,
                "merchantFee": 0,
                "distCost": 0,
                "coupon": 0,
                "buyerAmount": 1865
            }
        ],
        "lastTktTime": "2024-02-04 18:30:00",
        "ancillaryItems": [
            {
                "itemNumber": "917070354395357002",
                "itemStatus": "ISSED",
                "createdTime": "2024-02-04 16:30:40",
                "saleStage": 0,
                "ancillaryType": 1,
                "ancillaryInfo": [
                    {
                        "baggage": {
                            "lastName": "XIA",
                            "firstName": "SHASHA",
                            "psgType": "ADT",
                            "ancillaryType": 1,
                            "payBaggageType": 2,
                            "baggagePiece": 1,
                            "baggageWeight": "30KG",
                            "baggageCurrency": "CNY",
                            "baggagePrice": 40,
                            "segments": [
                                {
                                    "airline": "VJ",
                                    "departure": "SGN",
                                    "departureDate": "2024-03-04",
                                    "departureTime": "06:50",
                                    "arrival": "SIN",
                                    "arrivalDate": "2024-03-04",
                                    "arrivalTime": "10:15",
                                    "flightNum": "813",
                                    "bookingCode": "T",
                                    "cabinClassType": 3
                                }
                            ]
                        }
                    }
                ]
            },
            {
                "itemNumber": "917070354395357004",
                "itemStatus": "ISSED",
                "createdTime": "2024-02-04 16:31:18",
                "saleStage": 1,
                "ancillaryType": 1,
                "ancillaryInfo": [
                    {
                        "baggage": {
                            "lastName": "XIA",
                            "firstName": "SHASHA",
                            "psgType": "ADT",
                            "ancillaryType": 1,
                            "payBaggageType": 1,
                            "baggagePiece": 1,
                            "baggageWeight": "10KG",
                            "baggageCurrency": "CNY",
                            "baggagePrice": 20,
                            "segments": [
                                {
                                    "airline": "VJ",
                                    "departure": "SGN",
                                    "departureDate": "2024-03-04",
                                    "departureTime": "06:50",
                                    "arrival": "SIN",
                                    "arrivalDate": "2024-03-04",
                                    "arrivalTime": "10:15",
                                    "flightNum": "813",
                                    "bookingCode": "T",
                                    "cabinClassType": 3
                                }
                            ]
                        }
                    }
                ]
            },
            {
                "itemNumber": "917070354395357003",
                "itemStatus": "ISSED",
                "createdTime": "2024-02-04 16:30:40",
                "saleStage": 0,
                "ancillaryType": 2,
                "ancillaryInfo": [
                    {
                        "seat": {
                            "lastName": "XIA",
                            "firstName": "SHASHA",
                            "psgType": "ADT",
                            "seatName": "5A",
                            "column": "A",
                            "row": "5",
                            "seatCurrency": "CNY",
                            "seatPrice": "81.00",
                            "characteristics": [
                                "window"
                            ],
                            "segment": {
                                "airline": "VJ",
                                "departure": "SGN",
                                "departureDate": "2024-03-04",
                                "departureTime": "06:50",
                                "arrival": "SIN",
                                "arrivalDate": "2024-03-04",
                                "arrivalTime": "10:15",
                                "flightNum": "813",
                                "bookingCode": "T",
                                "cabinClassType": 3
                            }
                        }
                    }
                ]
            }
        ],
        "pnrList": [
            {
                "segmentNo": 1,
                "departure": "SGN",
                "arrival": "SIN",
                "flightNum": "813",
                "pnr": "6y6d34",
                "airPnr": "C3pyn0",
                "cabinClass": "ECONOMY",
                "bookingCode": "T",
                "ticketNums": [
                    {
                        "ticketNum": "C3pyn0",
                        "passengerIndex": 1
                    }
                ]
            }
        ],
        "scheduleChangeList": [
            {
                "scheduleChangeVersion": "1",
                "journeys": [
                    {
                        "journeyTime": 205,
                        "transferCount": 0,
                        "segments": [
                            {
                                "airline": "VJ",
                                "flightNum": "813",
                                "equipment": "321",
                                "cabinClass": "ECONOMY",
                                "bookingCode": "T",
                                "departure": "SGN",
                                "arrival": "SIN",
                                "departureTerminal": "2",
                                "arrivalTerminal": "4",
                                "departureDate": "2024-03-04",
                                "arrivalDate": "2024-03-04",
                                "departureTime": "06:50",
                                "arrivalTime": "10:15",
                                "flightTime": 205
                            }
                        ],
                        "departureTime": "06:50",
                        "arrivalTime": "10:15",
                        "departureDate": "2024-03-04",
                        "arrivalDate": "2024-03-04"
                    }
                ]
            },
            {
                "scheduleChangeVersion": "2",
                "journeys": [
                    {
                        "journeyTime": 200,
                        "transferCount": 0,
                        "segments": [
                            {
                                "airline": "VJ",
                                "flightNum": "813",
                                "cabinClass": "Y",
                                "bookingCode": "Y",
                                "departure": "SGN",
                                "arrival": "SIN",
                                "departureTerminal": "",
                                "arrivalTerminal": "",
                                "departureDate": "2024-03-04",
                                "arrivalDate": "2024-03-04",
                                "departureTime": "06:55",
                                "arrivalTime": "10:15",
                                "flightTime": 200,
                                "codeShare": "N"
                            }
                        ],
                        "departureTime": "06:55",
                        "arrivalTime": "10:15",
                        "departureDate": "2024-03-04",
                        "arrivalDate": "2024-03-04"
                    }
                ]
            }
        ],
        "permitVoid": 0,
        "checkInInfos": [
            {
                "firstName": "SHASHA",
                "lastName": "XIA",
                "ticketNum": "C3pyn0",
                "pnr": "C3pyn0",
                "airPnr": "C3pyn0",
                "airline": "VJ",
                "mailAccount": "aaaaaa",
                "airlineWebsite": "https://www.spirit.com/home-check-in"
            }
        ]
    }
}
🟢200Error
Modified at 2024-07-15 06:42:24
Previous
OrderDetail_V5
Next
Json_OrderDetail_V8