1. PrecisePricing
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
          POST
        • PrecisePricing V10
          POST
        • PrecisePricing V11
          POST
      • 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. PrecisePricing

PrecisePricing V9

POST
/json/precisePricing_V9

Function#

Through PrecisePricing API, the precise price will be shown with specific flight details, including booking code and seat availability. If specific cabin class is requested (cabin class should be specified in all segments), the lowest fare corresponding to the specified class will be shown.
PrecisePricing service is able to check flight price based on cabin class. We will respond the real-time price and availability.

Versioning#

VersionSandbox Invoking AddressUpdate
PrecisePricinghttps://api.pkfare.com/precisePricing
PrecisePricing_V2https://api.pkfare.com/precisePricing_V2Add baggageMap and miniRuleMap, only for reference. Offer BookingWithoutCard notification in response.
PrecisePricing_V4https://api.pkfare.com/precisePricing_V4Support infant (no seat) .
PrecisePricing_V5https://api.pkfare.com/precisePricing_V5Add Ancillary flag to indicate which ancillary service is available
PrecisePricing_V6https://api.pkfare.com/precisePricing_V6Add solutionId to enhance tracebility and data visibility
PrecisePricing_V6(json foramt)https://api.pkfare.com/json/precisePricing_V6Add solutionId to enhance tracebility and data visibility;Support json formatted requesting structure
PrecisePricing_V9(json foramt)https://api.pkfare.com/json/precisePricing_V9Support pricing virtual interlining content
*Below is the most updated version"

Error Code List#

erroCodeerroMsgDescription
0okRequest has been processed successfully.
S001System error.System error.
B002Partner does not exists.PartnerID does not exist.
B003Illegal sign.Illegal sign. Please check your signature.
B035Concurrency limited. Please contact PKFARE API support team for assistant.Concurrency exceeded system limits.
P001XXX is illegal.The field of XXX is illegal.
P002XXX is missing.The field of XXX is missing.
P004The maximum number of passengers with seat is 9.Wrong parameter. The maximum number of passengers with seat is 9.
P005There should be at least one adult.Wrong parameter. There should be at least one adult.
P009The number of infant passengers can not exceed the number of adult passengers.Wrong parameter. The number of infant passengers can not exceed the number of adult passengers.
B013Interface is limited, please contact the system administrator.The route that you request is limited, please contact system administrator.
B015Pricing failed.Pricing failed for other reason.
B016Flight near take-off, can’t offer pricing service.Pricing fail. Can not pricing for flights that is near taking off.
B018Airline or flight restriction.Airline or flight restriction.
B019Can not find any supplier for current search.Can not find any supplier for current search.
B020Can not find any price for this flight.Pricing fail. Can not find any price for this flight option.
B021The booking code you choose has only 0 seat available.Pricing fail. The booking code you choose has 0 seat left. Please choose other booking code or flight.
B026LatestTktTime: yyyy-mm-dd hh : mm: ss.Last ticketing time is not enough to issue ticket.
B024Pricing TimeOut.Pricing TimeOut.
B035Concurrency limited. Please contact PKFARE API support team for assistant.Concurrent users control. Please contact PKFARE API support for assistant.
B039Can't find the related data of XXX.Wrong parameter. Can't find the related data of XXX, like illegal city/country/area/airline.
B046Interface is limited, the routing is offlined by PKFARE.Look to book control. If you need this routing, please contact PKFARE API for assistant.
B068The segment detail is different between solutionid field and journey field.Please verify whether the information in the pricing request matches the details from the shopping response.
B121Supplier is offlineSupplier is not at working time, please contact PKFARE API support.

Request

Body Params application/json

Example
{
    "authentication": {
        "partnerId": "",
        "sign": ""
    },
    "pricing": {
        "journeys": {
            "journey_0": [
                {
                    "airline": "FD",
                    "flightNum": "501",
                    "arrival": "DMK",
                    "arrivalDate": "2024-12-15",
                    "arrivalTime": "16:40",
                    "departure": "HKG",
                    "departureDate": "2024-12-15",
                    "departureTime": "14:40",
                    "bookingCode": "Z"
                }
            ],
            "journey_1": [
                {
                    "airline": "FD",
                    "flightNum": "504",
                    "arrival": "HKG",
                    "arrivalDate": "2024-12-30",
                    "arrivalTime": "19:15",
                    "departure": "DMK",
                    "departureDate": "2024-12-30",
                    "departureTime": "15:30",
                    "bookingCode": "A"
                }
            ]
        },
        "adults": 1,
        "children": 1,
        "infants": 0,
        "solutionId": "iXf1ufZoOsBU+MpHfwQD6vzfcE3X5BFe1Vxl3oa9iNn1Noc75XschKYpLVXfU17PcPI7oU/EVSKjQj2Xuxt9QoSJGTP7oW12BBtDUQvlAzaZ1z0zhjr4N5cJVh2fElsdEXXtCGI00H3Nvx98/d2z6lUfU0Yhuny0kj/rOz4IMMmghIhWyGDa4e4T7y3BrTjFwEPZh0nHoEykVO13sMp0vXt8ub60T12OXl9dooXkhpqN51MhNjyCkSYjIYff//DJ1cRBps9+3e58SI0ifR8P6FiCKSCYOmCQLFKKLU0P8+Xlv4BsqxNY0pdOKT7LeR3w2YGgt1zSCyEXZCwy/+BBLA66j01ytAzieUvdZ3sqLyc8+7IG23vo1JfqVtlJo/pvRdlQyp6gQGJDPraSkTCSvA==",
        "cabin": ""
    }
}

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/precisePricing_V9' \
--header 'Content-Type: application/json' \
--data '{
    "authentication": {
        "partnerId": "",
        "sign": ""
    },
    "pricing": {
        "journeys": {
            "journey_0": [
                {
                    "airline": "FD",
                    "flightNum": "501",
                    "arrival": "DMK",
                    "arrivalDate": "2024-12-15",
                    "arrivalTime": "16:40",
                    "departure": "HKG",
                    "departureDate": "2024-12-15",
                    "departureTime": "14:40",
                    "bookingCode": "Z"
                }
            ],
            "journey_1": [
                {
                    "airline": "FD",
                    "flightNum": "504",
                    "arrival": "HKG",
                    "arrivalDate": "2024-12-30",
                    "arrivalTime": "19:15",
                    "departure": "DMK",
                    "departureDate": "2024-12-30",
                    "departureTime": "15:30",
                    "bookingCode": "A"
                }
            ]
        },
        "adults": 1,
        "children": 1,
        "infants": 0,
        "solutionId": "iXf1ufZoOsBU+MpHfwQD6vzfcE3X5BFe1Vxl3oa9iNn1Noc75XschKYpLVXfU17PcPI7oU/EVSKjQj2Xuxt9QoSJGTP7oW12BBtDUQvlAzaZ1z0zhjr4N5cJVh2fElsdEXXtCGI00H3Nvx98/d2z6lUfU0Yhuny0kj/rOz4IMMmghIhWyGDa4e4T7y3BrTjFwEPZh0nHoEykVO13sMp0vXt8ub60T12OXl9dooXkhpqN51MhNjyCkSYjIYff//DJ1cRBps9+3e58SI0ifR8P6FiCKSCYOmCQLFKKLU0P8+Xlv4BsqxNY0pdOKT7LeR3w2YGgt1zSCyEXZCwy/+BBLA66j01ytAzieUvdZ3sqLyc8+7IG23vo1JfqVtlJo/pvRdlQyp6gQGJDPraSkTCSvA==",
        "cabin": ""
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Examples
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "solution": {
            "solutionKey": "cadce3d7a693476e02a0e841d586fbcb",
            "solutionId": "DMHkxtUMupBvCYeSAZKvI2XPSDdKRK2kK27eMKAEE+F2gdW8n4ZhopICv6eJNS40zcS8otwiL7wFzPBaAV7LVv2D95+F/d+5de4BWOJA5bK31lUgTmtnRxndjrSZ1zzN3Mi6x5gpdI9FeWUc7EQnsceDYXG39qudoyIneDp4SIXpUF8vpposuSdigXFrVDzpymiC438EKaAZir9UEp4DEeLyOjTCo1/PvTyURv9tRMj53bdg+S694JVZycYIq04SQ7mk2NfOZ1rVVHcNgSHvDAORkJ2rv/U9ZjzI5sLdcyS7zdu/MyOpCt3KHXet6Onr",
            "fareType": "PRIVATE",
            "currency": "USD",
            "adtFare": 25.69,
            "adtTax": 59.39,
            "chdFare": 0,
            "chdTax": 0,
            "tktFee": 0,
            "platformServiceFee": 0,
            "journeys": {
                "journey_0": [
                    "07177e6e653830b4b2e151f215c8fd19"
                ]
            },
            "platingCarrier": "VJ",
            "merchantFee": 0,
            "adults": 1,
            "children": 0,
            "infants": 0,
            "baggages": {
                "1": {
                    "carryOn": "1PC7KG",
                    "baggage": "0PC"
                },
                "2": {
                    "carryOn": "1PC7KG",
                    "baggage": "0PC"
                }
            },
            "baggageMap": {
                "ADT": [
                    {
                        "segmentIndexList": [
                            1,
                            2
                        ],
                        "baggageAmount": "0PC",
                        "carryOnAmount": "1PC",
                        "carryOnWeight": "7KG"
                    }
                ]
            },
            "miniRuleMap": {
                "ADT": [
                    {
                        "segmentIndex": [
                            1,
                            2
                        ],
                        "miniRules": [
                            {
                                "penaltyType": 0,
                                "isPermited": 0,
                                "when": 0
                            },
                            {
                                "penaltyType": 1,
                                "isPermited": 0,
                                "when": 0,
                                "noShowTime": "0",
                                "noShowTimeUnit": "H"
                            },
                            {
                                "penaltyType": 2,
                                "isPermited": 0,
                                "when": 0
                            },
                            {
                                "penaltyType": 3,
                                "isPermited": 0,
                                "when": 0,
                                "noShowTime": "0",
                                "noShowTimeUnit": "H"
                            }
                        ]
                    }
                ]
            },
            "bookingWithoutCard": 1
        },
        "flights": [
            {
                "flightId": "07177e6e653830b4b2e151f215c8fd19",
                "journeyTime": 265,
                "transferCount": 0,
                "segmentIds": [
                    "5b6e4e840bb3321ca4ca21c422c99af6",
                    "7292bd918a99e91c03bb3323c22d99"
                ]
            }
        ],
        "segments": [
            {
                "segmentId": "5b6e4e840bb3321ca4ca21c422c99af6",
                "airline": "VJ",
                "flightNum": "503",
                "equipment": "32S",
                "cabinClass": "ECONOMY",
                "bookingCode": "K",
                "availabilityCount": 4,
                "departure": "HKG",
                "arrival": "SGN",
                "departureTerminal": "1",
                "arrivalTerminal": "2",
                "departureDate": 1734272400000,
                "arrivalDate": 1734279600000,
                "flightTime": 180,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": null,
                "stopover": null,
                "fareBasis": "YOW",
                "strDepartureDate": "2024-12-15",
                "strDepartureTime": "22:20",
                "strArrivalDate": "2024-12-16",
                "strArrivalTime": "00:20"
            },
            {
                "segmentId": "7292bd918a99e91c03bb3323c22d99",
                "airline": "FD",
                "flightNum": "665",
                "equipment": "A320",
                "cabinClass": "ECONOMY",
                "bookingCode": "J",
                "availabilityCount": 6,
                "departure": "SGN",
                "arrival": "DMK",
                "departureTerminal": "1",
                "arrivalTerminal": "2",
                "departureDate": 1734287400000,
                "arrivalDate": 1734291900000,
                "flightTime": 75,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": null,
                "stopover": null,
                "fareBasis": "YOW",
                "strDepartureDate": "2024-12-16",
                "strDepartureTime": "02:30",
                "strArrivalDate": "2024-12-16",
                "strArrivalTime": "03:45"
            }
        ],
        "ancillaryAvailability": {
            "paidBag": false,
            "paidSeat": false
        }
    }
}
🟢200Error
Modified at 2025-04-24 04:11:51
Previous
PrecisePricing_V6
Next
PrecisePricing V10