1. OrderPricing
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
          POST
        • OrderPricing V5
          POST
      • 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. OrderPricing

OrderPricing V5

POST
/json/orderPricingV5

Function#

Through OrderPricing_V4 API, users can check if the PNR and order price are available before doing the payment to ensure the validity of order price and PNR. It is mandatory to invoke OrderPricing before Ticketing. Ticketing need to be done within 30 minutes after OrderPricing.

Versioning#

VersionSandbox Invoking AddressUpdate
OrderPricing https://api.pkfare.com/orderPricing
OrderPricing_V2https://api.pkfare.com/orderPricingV2Support to check paid baggage price.
OrderPricing_V3https://api.pkfare.com/orderPricingV3Support to check infant ticket price. Display more fare details for change orders.
OrderPricing_V4https://api.pkfare.com/orderPricingV4Support to check seat price
OrderPricing_V4 (json format)https://api.pkfare.com/json/orderPricingV4Support to check seat price; Support json formatted requesting strcture
OrderPricing_V5 (json format)https://api.pkfare.com/json/orderPricingV5Support checking orders of different product tags, including PKFARE-defined special product types and airline-standard branded fares, etc.

Error Code List#

erroCodeerroMsgDescription
0okRequest has been processed successfully.
P001-Wrong parameter
S001System errorSystem error
310Retrieve PNR failed, please try again.Retrieve PNR failed
B002Partner is not existsPartnerID does not exist
B003Illegal signIllegal sign. Please check your signature
B009Order status is invalidOrder status is invalid
B010The order was not foundThe order was not found.
B026Latest_tkt_time will be expired within 1 hour.Latest ticketing time will be expired within 1 hour.
B101supplier status is invalidSupplier is offline.
B102Segment status is invalid.Segment status is invalid.
B103No airline PNR existed, please try again.No airline PNR exist.
B104Flight No. in PNR is not match with the one in the orderFlight No. in PNR is not match with the one in the order .
B105Passenger No. in PNR is not match with the one in the orderPassenger No. in PNR is not match with the one in the order.
B106No pricePNR has no filed fare.
B107Fare changed, and update order failed. Please try again.Fare changed, and update order failed.
B108Supplier has cross the day, fare is not guaranteed.Supplier had crossed the day, fare is not guaranteed.
B109Supplier has cross the day, and price has changedSupplier had crossed the day, and price has changed.
B112The order has been paid before, please update status accordingly.The order had been paid before.
B113Filed fare in PNR is not match with the price in the order, and price has changed.Filed fare in PNR is not match with the price in the order, and price had changed.
B114Flight changedFlight changed
B115Latest_tkt_time has expired.Latest ticketing time is expired.
B116Price changedPrice had changed
B117Order Pricing failedCaused by other reasons, please connect administrator
B118PNR status is invalidPNR status is invalid
B119Order Pricing failed, please try againLCC content: Pre-check before payment failed. Please try again
B120Order Pricing failedSupplier saved booking failed.

Request

Body Params application/json

Example
{
    "authentication": {
        "partnerId": "{{partnerId}}",
        "sign": "{{sign}}"
    },
    "orderPricing": {
        "orderNum": "917131658934384601"
    }
}

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/orderPricingV5' \
--header 'Content-Type: application/json' \
--data '{
    "authentication": {
        "partnerId": "",
        "sign": ""
    },
    "orderPricing": {
        "orderNum": "917131658934384601"
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Examples
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "pricingResult": {
            "solution": {
                "fareType": "PRIVATE",
                "currency": "CNY",
                "adtFare": 2862,
                "adtTax": 1211.00,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.00,
                "platformServiceFee": 0,
                "journeys": {
                    "journey_0": [
                        "f5deaeeae1538fb6c45901d524ee2f98"
                    ]
                },
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0
            },
            "flights": [
                {
                    "flightId": "f5deaeeae1538fb6c45901d524ee2f98",
                    "journeyTime": 360,
                    "transferCount": 1,
                    "lastTktTime": "2023-11-09 13:47:00",
                    "segmengtIds": [
                        "def32e56f53ad461c6437c0d237ae6db",
                        "4abffb5c6b36b9a366075d4726460a66"
                    ]
                }
            ],
            "segments": [
                {
                    "segmentId": "def32e56f53ad461c6437c0d237ae6db",
                    "airline": "VJ",
                    "flightNum": "896",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "I",
                    "availabilityCount": 3,
                    "departure": "DEL",
                    "arrival": "SGN",
                    "departureDate": 1701273900000,
                    "arrivalDate": 1701296400000,
                    "flightTime": 285,
                    "codeShare": "N",
                    "strDepartureDate": "2023-11-30",
                    "strDepartureTime": "00:05",
                    "strArrivalDate": "2023-11-30",
                    "strArrivalTime": "06:20"
                },
                {
                    "segmentId": "4abffb5c6b36b9a366075d4726460a66",
                    "airline": "VJ",
                    "flightNum": "632",
                    "cabinClass": "ECONOMY",
                    "bookingCode": "I",
                    "availabilityCount": 3,
                    "departure": "SGN",
                    "arrival": "DAD",
                    "departureDate": 1701336000000,
                    "arrivalDate": 1701340500000,
                    "flightTime": 75,
                    "codeShare": "N",
                    "strDepartureDate": "2023-11-30",
                    "strDepartureTime": "17:20",
                    "strArrivalDate": "2023-11-30",
                    "strArrivalTime": "18:35"
                }
            ],
            "ancillary": [
                {
                    "lastName": "LIN",
                    "firstName": "LIHONG",
                    "psgType": "ADT",
                    "ancillaries": {
                        "baggage": [
                            {
                                "ancillaryType": 1,
                                "payBaggageType": 1,
                                "baggagePiece": 2,
                                "baggageWeight": "36KG",
                                "baggageCurrency": "CNY",
                                "baggagePrice": 95.00,
                                "journeys": [
                                    {
                                        "airline": "VJ",
                                        "flightNum": "896",
                                        "departure": "DEL",
                                        "departureDate": "2023-11-30",
                                        "departureTime": "00:05",
                                        "arrival": "SGN",
                                        "arrivalDate": "2023-11-30",
                                        "arrivalTime": "06:20",
                                        "bookingCode": "I"
                                    },
                                    {
                                        "airline": "VJ",
                                        "flightNum": "632",
                                        "departure": "SGN",
                                        "departureDate": "2023-11-30",
                                        "departureTime": "17:20",
                                        "arrival": "DAD",
                                        "arrivalDate": "2023-11-30",
                                        "arrivalTime": "18:35",
                                        "bookingCode": "I"
                                    }
                                ]
                            }
                        ]
                    }
                },
                {
                    "lastName": "LIN",
                    "firstName": "LIHONG",
                    "psgType": "ADT",
                    "ancillaries": {
                        "seat": [
                            {
                                "ancillaryType": 2,
                                "seatName": "46A",
                                "column": "A",
                                "row": "46",
                                "seatCurrency": "CNY",
                                "seatPrice": "40.00",
                                "characteristics": [
                                    "middle"
                                ],
                                "segment": [
                                    {
                                        "airline": "VJ",
                                        "departure": "DEL",
                                        "departureDate": "2023-11-30",
                                        "departureTime": "00:05",
                                        "arrival": "SGN",
                                        "arrivalDate": "2023-11-30",
                                        "arrivalTime": "06:20",
                                        "flightNum": "896",
                                        "bookingCode": "I"
                                    }
                                ],
                                "buyerOrder": "23146"
                            },
                            {
                                "ancillaryType": 2,
                                "seatName": "15A",
                                "column": "A",
                                "row": "15",
                                "seatCurrency": "CNY",
                                "seatPrice": "40.00",
                                "characteristics": [
                                    "middle"
                                ],
                                "segment": [
                                    {
                                        "airline": "VJ",
                                        "departure": "SGN",
                                        "departureDate": "2023-11-30",
                                        "departureTime": "17:20",
                                        "arrival": "DAD",
                                        "arrivalDate": "2023-11-30",
                                        "arrivalTime": "18:35",
                                        "flightNum": "632",
                                        "bookingCode": "I"
                                    }
                                ],
                                "buyerOrder": "23147"
                            }
                        ]
                    }
                }
            ]
        },
        "orderResult": {
            "orderNum": "9169953203701",
            "pnr": "A8GS1Q"
        }
    }
}
🟢200Error
Modified at 2026-08-13 06:36:08
Previous
OrderPricing V4
Next
Ticketing