1. Cache APIs
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
        POST
      • ValidateItinerary API
        POST
    • 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. Cache APIs

CacheShopping

POST
/airline-data/cacheShopping

Function#

Through CacheShopping API, users can check flight availability and its price by using relevant parameters.

Versioning#

VersionSandbox Invoking AddressUpdate
Shoppinghttp://data-cache-api-test.pkfare.com/airline-data/cacheShopping
Below is the most updated version

Error Code List#

erroCodeerroMsgDescription
0okRequest has been processed successfully.
S001System error.System error.
B002Partner is not exists.PartnerID does not exist.
B003Illegal sign.Illegal sign. Please check your signature.
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.
B014Shopping failed.Shopping failed caused by other reasons.
B024Time-out, please try later.Time-out. You can try the second searching after a few seconds.
B034Shopping interface is offline.Shopping service is limited.
B035Concurrency limited. Please contact PKFARE API support team for assistant.Concurrent users control. Please contact PKFARE API support for assistant.
B038Departure date must be today to a year.Wrong parameter. Departure date must be today to a year.
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.
B059Shopping failed from upstream.Shopping failed, shopping error from upstream. Please contact PKFARE API support.
B060Interface is limited, please contact PKFARE.Interface is limited, due to restriction rules, please contact PKFARE API support.
B009Supplier is offlineSupplier is not at working time, please contact PKFARE API support.
B066Only 2 journeys can be supported, please check your itinerary.System support maximum 2 journeys shopping at this moment.

Request

Body Params application/json

Example
{
    "authentication": {
        "partnerId": "string",
        "sign": "string"
    },
    "search": {
        "airline": "FR",
        "cabinClass": "economy",
        "journeys": [
            {
                "origin": "DUB",
                "destination": "MIL",
                "departureDate": "2024-10-26"
            }
        ],
        "maxConnections": 0,
        "passengers": {
            "adults": 1,
            "teens": 0,
            "children": 0,
            "infants": 0
        },
        "solutions": 0
    }
}

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/airline-data/cacheShopping' \
--header 'Content-Type: application/json' \
--data '{
    "authentication": {
        "partnerId": "string",
        "sign": "string"
    },
    "search": {
        "airline": "FR",
        "cabinClass": "economy",
        "journeys": [
            {
                "origin": "DUB",
                "destination": "MIL",
                "departureDate": "2024-10-26"
            }
        ],
        "maxConnections": 0,
        "passengers": {
            "adults": 1,
            "teens": 0,
            "children": 0,
            "infants": 0
        },
        "solutions": 0
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "data": {
        "searchKey": "DUBMIL20241026Y1000",
        "segments": [
            {
                "segmentIndex": 1,
                "airline": "FR",
                "flightNum": "4038",
                "equipment": "7M8",
                "departure": "DUB",
                "departureDate": "2024-10-26",
                "departureTime": "12:25",
                "departureTerminal": "1",
                "arrival": "BGY",
                "arrivalDate": "2024-10-26",
                "arrivalTime": "15:55",
                "arrivalTerminal": "1",
                "flightTime": 150,
                "codeShare": "Y",
                "opFltAirline": "KM",
                "opFltNo": null,
                "stopover": null,
                "stayTime": null
            },
            {
                "segmentIndex": 2,
                "airline": "FR",
                "flightNum": "4844",
                "equipment": "73H",
                "departure": "DUB",
                "departureDate": "2024-10-26",
                "departureTime": "16:30",
                "departureTerminal": "1",
                "arrival": "BGY",
                "arrivalDate": "2024-10-26",
                "arrivalTime": "20:00",
                "arrivalTerminal": "1",
                "flightTime": 150,
                "codeShare": "N",
                "opFltAirline": null,
                "opFltNo": null,
                "stopover": null,
                "stayTime": null
            },
            {
                "segmentIndex": 3,
                "airline": "FR",
                "flightNum": "1454",
                "equipment": "7S8",
                "departure": "DUB",
                "departureDate": "2024-10-26",
                "departureTime": "18:30",
                "departureTerminal": "1",
                "arrival": "MXP",
                "arrivalDate": "2024-10-26",
                "arrivalTime": "22:10",
                "arrivalTerminal": "1",
                "flightTime": 160,
                "codeShare": "N",
                "opFltAirline": null,
                "opFltNo": null,
                "stopover": null,
                "stayTime": null
            }
        ],
        "solutions": [
            {
                "solutionKey": "1q2w3e4r",
                "fareType": "PUBPISH",
                "fareName": "BASIC",
                "currency": "EUR",
                "adultFare": 83.09,
                "adultTax": 30,
                "adultTotalPerPerson": 113.09,
                "teenFare": 0,
                "teenTax": 0,
                "teenTotalPerPerson": 0,
                "childFare": 0,
                "childTax": 0,
                "childTotalPerPerson": 0,
                "infantFare": 0,
                "infantTax": 0,
                "infantTotalPerPerson": 0,
                "platingCarrier": "FR",
                "baggages": {},
                "conditions": {
                    "seatSelection": false,
                    "priorityBoarding": false,
                    "other": [],
                    "change": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    },
                    "refund": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    }
                },
                "journeys": [
                    {
                        "segments": [
                            {
                                "segmentIndex": 1,
                                "cabinClass": "economy",
                                "bookingCode": "Y",
                                "availabilityCount": 9,
                                "fareBasis": ""
                            }
                        ]
                    }
                ]
            },
            {
                "solutionKey": "2w3e4r5t",
                "fareType": "PUBPISH",
                "fareName": "REGULAR",
                "currency": "EUR",
                "adultFare": 113.09,
                "adultTax": 30,
                "adultTotalPerPerson": 143.09,
                "teenFare": 0,
                "teenTax": 0,
                "teenTotalPerPerson": 0,
                "childFare": 0,
                "childTax": 0,
                "childTotalPerPerson": 0,
                "infantFare": 0,
                "infantTax": 0,
                "infantTotalPerPerson": 0,
                "platingCarrier": "FR",
                "baggages": {
                    "adt": {
                        "segmentIndex": 1,
                        "type": "carryon",
                        "amount": 1,
                        "weight": 10,
                        "size": "55 x 40 x 20 cm"
                    }
                },
                "conditions": {
                    "seatSelection": true,
                    "priorityBoarding": true,
                    "other": [],
                    "change": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    },
                    "refund": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    }
                },
                "journeys": [
                    {
                        "segments": [
                            {
                                "segmentIndex": 1,
                                "cabinClass": "economy",
                                "bookingCode": "Y",
                                "availabilityCount": 9,
                                "fareBasis": ""
                            }
                        ]
                    }
                ]
            },
            {
                "solutionKey": "3e4r5t6y",
                "fareType": "PUBPISH",
                "fareName": "PLUS",
                "currency": "EUR",
                "adultFare": 118.09,
                "adultTax": 30,
                "adultTotalPerPerson": 148.09,
                "teenFare": 0,
                "teenTax": 0,
                "teenTotalPerPerson": 0,
                "childFare": 0,
                "childTax": 0,
                "childTotalPerPerson": 0,
                "infantFare": 0,
                "infantTax": 0,
                "infantTotalPerPerson": 0,
                "platingCarrier": "FR",
                "baggages": {
                    "adt": {
                        "segmentIndex": 1,
                        "type": "checked",
                        "amount": 1,
                        "weight": 20,
                        "size": ""
                    }
                },
                "conditions": {
                    "seatSelection": true,
                    "priorityBoarding": false,
                    "other": [
                        {
                            "serviceName": "Free check-in at the airport",
                            "available": true,
                            "description": "Up to 40 minutes before flying"
                        }
                    ],
                    "change": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    },
                    "refund": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    }
                },
                "journeys": [
                    {
                        "segments": [
                            {
                                "segmentIndex": 1,
                                "cabinClass": "economy",
                                "bookingCode": "Y",
                                "availabilityCount": 9,
                                "fareBasis": ""
                            }
                        ]
                    }
                ]
            },
            {
                "solutionKey": "4r5t6y7u",
                "fareType": "PUBPISH",
                "fareName": "FLEXI PLUS",
                "currency": "EUR",
                "adultFare": 183.09,
                "adultTax": 30,
                "adultTotalPerPerson": 213.09,
                "teenFare": 0,
                "teenTax": 0,
                "teenTotalPerPerson": 0,
                "childFare": 0,
                "childTax": 0,
                "childTotalPerPerson": 0,
                "infantFare": 0,
                "infantTax": 0,
                "infantTotalPerPerson": 0,
                "platingCarrier": "FR",
                "baggages": {
                    "adt": {
                        "segmentIndex": 1,
                        "type": "carryon",
                        "amount": 1,
                        "weight": 10,
                        "size": "55 x 40 x 20 cm"
                    }
                },
                "conditions": {
                    "seatSelection": true,
                    "priorityBoarding": true,
                    "other": [
                        {
                            "serviceName": "Free check-in at the airport",
                            "available": true,
                            "description": "Up to 40 minutes before flying"
                        },
                        {
                            "serviceName": "Speed through security",
                            "available": true,
                            "description": "Beat the queues with Fast Track"
                        }
                    ],
                    "change": {
                        "allowed": true,
                        "description": "https://www.ryanair.com/gb/en/useful-info/help-centre/fees",
                        "penaltyAmount": 0,
                        "penaltyCurrency": "EUR"
                    },
                    "refund": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    }
                },
                "journeys": [
                    {
                        "segments": [
                            {
                                "segmentIndex": 1,
                                "cabinClass": "economy",
                                "bookingCode": "Y",
                                "availabilityCount": 9,
                                "fareBasis": ""
                            }
                        ]
                    }
                ]
            },
            {
                "solutionKey": "5t6y7u8i",
                "fareType": "PUBPISH",
                "fareName": "BASIC",
                "currency": "EUR",
                "adultFare": 23.37,
                "adultTax": 30,
                "adultTotalPerPerson": 53.37,
                "teenFare": 0,
                "teenTax": 0,
                "teenTotalPerPerson": 0,
                "childFare": 0,
                "childTax": 0,
                "childTotalPerPerson": 0,
                "infantFare": 0,
                "infantTax": 0,
                "infantTotalPerPerson": 0,
                "platingCarrier": "FR",
                "baggages": {},
                "conditions": {
                    "seatSelection": false,
                    "priorityBoarding": false,
                    "other": [],
                    "change": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    },
                    "refund": {
                        "allowed": false,
                        "description": "",
                        "penaltyAmount": 0,
                        "penaltyCurrency": ""
                    }
                },
                "journeys": [
                    {
                        "segments": [
                            {
                                "segmentIndex": 2,
                                "cabinClass": "economy",
                                "bookingCode": "Y",
                                "availabilityCount": 5,
                                "fareBasis": ""
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "errorCode": "0",
    "errorMsg": "success"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2025-04-18 08:05:08
Previous
VoidRequest
Next
ValidateItinerary API