1. Shopping
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
          POST
        • Shopping V9
          POST
        • Shopping V8
          POST
      • 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. Shopping

Shopping_V4

1 Function#

Through Shopping API, users can check flight availability and its price by using relevant parameters. Shopping service supports one-way trip, round trip and open jaw (2 journeys max).

2 Versioning#

VersionSandbox Invoking AddressUpdate
Shoppinghttps://api.pkfare.com/shopping
Shopping_V2https://api.pkfare.com/shoppingV2Add BaggageMap and MiniRuleMap, only for reference.
Shopping_V3https://api.pkfare.com/shoppingV3Support infant(without seat) tickets.
Shopping_V4https://api.pkfare.com/shoppingV4Add solutionId to enhance tracebility and visibility
Below is the most updated version

3 Character Encoding#

The character code of this API is UTF-8.

4 Request#

Please structure parameter as JSON format. Request should be transmitted after BASE64 encrypted. Response would be compressed by GZIP. Please decompress response.

4.1 Schema#

NameTypeRequired or NotParameter DescriptionSample
Authentication
partnerIdStringYesPartner IDHJqiE0YKcJlXjknkCkZKhzIis5o=
signStringYesSignature, sign=MD5(partnerId+partnerKey)fed53d44ea413c40d5f1d18e69047b7c
Search
adultsIntegerYesNumber of adult passenger1
childrenIntegerNoNumber of child [age 2-12] passenger1
infantsIntegerNoNumber of infant [age 0-2, no seat] passenger1
nonstopIntegerNoOnly search for non-stop flight[0= No; 1=Yes]0
airlineStringNoSearch for specific airline; Support one airline only; IATA airlines codeCA
solutionsIntegerNoSuggested quantity of returned solutions0
searchAirLegsArrayYesJourney object array,-
searchAirlegs
cabinClassStringNoCabin class [default : economy]Economy;PremiumEconomy;Business;First
destinationStringYesDestination [IATA airport/city code]SIN
originStringYesOrigin [IATA airport/city code ]HKG
departureDateStringYesDeparture date [yyyy-MM-dd]2023-10-22

4.2 Example#

1.
One Way Journey
{
    "authentication": {
        "partnerId": "ojRw6HvWEDYaF6BPcICoQGJSXhw=",
        "sign": "xxxxx"
    },
    "search": {
        "airline":"UO",
        "adults": 1,
        "children": 0,
        "fromOta": true,
        "infants": 0,
        "nonstop": 1,
        "oldShopping": 0,
        "searchAirLegs": [
            {
                "cabinClass": "Economy",
                "departureDate": "2024-04-15",
                "destination": "BKK",
                "origin": "HKG"
            }
        ],
        "solutions": 0,
        "stressTest": false
    }
}
2. Round Trip Journey
{
    "authentication": {
        "partnerId": "HJqiE0YKcJlXjknkCkZKhzIis5o=",
        "sign": "fed53d44ea413c40d5f1d18e69047b7c"
    },
    "search": {
        "adults": 2,
        "airline": "",
        "children": 1,
        "infants": 1,
        "nonstop": 0,
        "searchAirLegs": [
            {
                "cabinClass": "Economy",
                "departureDate": "2023-10-16",
                "destination": "LAX",
                "origin": "HKG"
            },
            {
                "cabinClass": "Economy",
                "departureDate": "2023-11-23",
                "destination": "HKG",
                "origin": "LAX"
            }
        ],
        "solutions": 50
    }
}
3.
Open Jaw Journey
{
    "authentication": {
        "partnerId": "HJqiE0YKcJlXjknkCkZKhzIis5o=",
        "sign": "fed53d44ea413c40d5f1d18e69047b7c"
    },
    "search": {
        "adults": 2,
        "airline": "",
        "children": 1,
        "infants": 1,
        "nonstop": 0,
        "searchAirLegs": [
            {
                "cabinClass": "Economy",
                "departureDate": "2023-11-16",
                "destination": "LAX",
                "origin": "HKG"
            },
            {
                "cabinClass": "Economy",
                "departureDate": "2023-11-23",
                "destination": "SEA",
                "origin": "LAX"
            }
        ],
        "solutions": 50
    }
}

5 Response#

5.1 Schema#

NameTypeParameter DescriptionSample
Basic Parameters
errorCodeStringError code, refer to error code list0
errorMsgStringError messageOK
dataObjectOnly if the errorCode returns "0", returned data would not be null. Data is in JSON format, which contains three collection objects: solutions , flights, segments-
Solution
solutionIdStringUnique identification25a061970d8a7ebeb5e63391b9788f36
solutionKeyStringUnique identification0357301bf213453389fcb55c379a4667
fareTypeStringFare type, PUBLIC or PRIVATEPUBLIC
currencyStringcurrencyCNY
adtFareBigDecimaladult fare1011
adtTaxBigDecimaladult tax527
chdFareBigDecimalchildren [age 2-12] fare500
chdTaxBigDecimalchildren [age 2-12] tax250
infFareBigDecimalinfant [age 0-2, no seat] fare100
infTaxBigDecimalinfant [age 0-2, no seat] tax50
qChargeBigDecimalQ charge, bunker adjustment surcharge, for reference only0
tktFeeBigDecimalticketing service fee0
baggageMapObjectbaggage rule. For reference only. Including 'ADT'、'CHD' and 'INF'. If the request does not include children or infants, 'CHD' or 'INF' would be NULL.-
MiniRuleMapObjectpenalty rule. For reference only, please find precise penalty rule on Penalty API.-
platformServiceFeeBigDecimalplatform service fee, defaults to 00
commentsStringcomments-
journeysObjectjourney_0 outboundtrip, journey_1 inbound trip, refer to flightId-
fareRuleObjectsupplier rule, not supported yet-
ruleObjectPKFARE API rule, not supported yet-
platingCarrierStringticketing airlineCA
merchantFeeBigDecimalpayment transaction fee7.39
afterSaleRuleObjectnot supported yet.-
Flights
flightIdStringflight ID, unique identification9ef88fd9dae30560c683911f534c6c49
journeyTimeLongjourney time, unit: minute350
transferCountIntegertransfer times1
lastTktTimeStringlast ticketing time (GMT)2015-10-28 23:59:00
segmentIdsString[]Including segment [segmentId] array, refer to segmentId-
Segments
segmentIdStringsegment ID, unique identification4ee200cb7feab403d6babbf797ac92aa
airlineStringairline codeCA
flightNumStringflight number6509
equipmentStringequipment737
cabinClassStringcabin class including Economy, PremiumEconomy, Business, FirstEconomy
bookingCodeStringcabin codeE
availabilityCountIntegeravailable seats, for reference only7
departureStringdeparture airportPEK
arrivalStringarrival airportHKG
departureTerminalStringdeparture airport terminal3
arrivalTerminalStringarrival airport terminal1
departureDateLongdeparture date [unix time]1446009600000
arrivalDateLongarrival date [unix time]1446017400000
flightTimeIntegerflight time, unit: minute130
stayTimeIntegerstay time, valid with 'stopover' , unit: minute60
codeShareStringcode share or not: [Y-yes, N-no]Y
opFltNoStringflight number of operated carrier202
opFltAirlineStringoperated carrierKA
stopoverStringstopover airportPVG
strDepartureDateStringdeparture date[yyyy-MM-dd], local time2016-08-27
strDepartureTimeStringdeparture time[HH:mm], local time09:30
strArrivalDateStringarrival date[yyyy-MM-dd], local time2016-08-27
strArrivalTimeStringarrival time[HH:mm], local time11:50
fareBasisStringfare basis codeSLCPWFR
baggageMap
segmentIndexListString[]segment index list for baggage. Index begins with '1'. If 1st segment has same baggage allowance with 3rd segment, please refer to sample[1,3]
baggageAmountStringfree baggage amount allowance. '1PC' for 1 piece1PC
baggageWeightStringfree baggage weight allowance15KG
carryOnAmountStringfree carry-on baggage amount allowance. '1PC' for 1 piece1PC
carryOnWeightStringfree carry-on baggage weight allowance7KG
miniRuleMap
segmentIndexString[]segment index list for penalty. Index begins with '1'. If 1st segment has same penalty rule with 3rd segment, please refer to sample[1,3]
miniRulesObjectrefer to miniRules-
miniRules
penaltyTypeIntegerpenalty type. [0 - refund, 1 - noShow refund, 2 - change, 3 - noShow change]0
isPermitedIntegerallow refund/change or not. [0 - not allow, 1 - allow, 2 - unknown]1
whenIntegerappropriate situation. [0 - Both Outbound and Inbound are not used, 1- Outbound Flight used, 2 - all Situation]2
noShowTimeStringnoShow definition. Apply with 'noShowTimeUnit'2
noShowTimeUnitStringnoShow Unit. Apply with 'noShowTime'. [H - hour, M - minute]H
amountBigDecimalpenalty300
currencyCodeStringpenalty currencyCNY
percentBigDecimalpenalty percentage. Apply with 'baseType'. Penalty and penalty percentage would not go into effect at the same. Please take the strict one. Unit: %10
baseTypeIntegerapply with 'percent'. Multiply corresponding value of 'baseType' by 'percent' would be the penalty. [0 - fare, 1 - fare+tax+ticketingFee, 2 - cabin basic fare]0

5.2 Example#

1.
Success Response
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "searchKey": "HKGBKK20240415Y1001UO",
        "shoppingKey": "eea11ca4a523a0c99812fad0201d582b",
        "solutions": [
            {
                "solutionKey": "3ae425c8566c492dbc1481a4677d9a8a",
                "solutionId": "hhQKlXX38bThxfFbh+E9m/hbzWF4gWXGR+fTq0UTB/5jortNNEQh8c5YYZTig7usIbD9zw6Z+uCv7T5LEp7b/3XTdL2WPQs108z/pDvKpTgVTurYlfkCwI7HbXdFyZyy0rQYDpqwuY2U5OHmFwJYyhmqz+o86xRNbP4HqIrO2rCSN68StUK5NUwGEZHFuVGJYjAi40H21GejFUYSLRetkLbd5EglKxG+R1Si/3zNQVuDE4m7X0f6oxS/V10VApjBFmi6fKVAAK90j4/LjuLZKFtW/zHc/pUJyyCRIPlJ6hiKtDSDAMqLnYN41Yu+uWvC",
                "fareType": "PRIVATE",
                "currency": "USD",
                "adtFare": 81.070,
                "adtTax": 58.310,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.000,
                "platformServiceFee": 0,
                "comments": null,
                "journeys": {
                    "journey_0": [
                        "51fa1ce0c85fa868b7121d73787fb830"
                    ]
                },
                "fareRule": null,
                "rule": null,
                "platingCarrier": "UO",
                "prices": null,
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0,
                "baggageMap": {
                    "ADT": [
                        {
                            "segmentIndexList": [
                                1
                            ],
                            "baggageAmount": "0PC",
                            "baggageWeight": null,
                            "carryOnAmount": "0PC",
                            "carryOnWeight": "17.5KG",
                            "carryOnSize": null
                        }
                    ]
                },
                "miniRuleMap": {
                    "ADT": [
                        {
                            "segmentIndex": [
                                1
                            ],
                            "miniRules": [
                                {
                                    "penaltyType": 0,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 1,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 2,
                                    "isPermited": 1,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": 67,
                                    "currencyCode": "USD",
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 3,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                }
                            ]
                        }
                    ]
                },
                "afterSaleRule": null
            },
            {
                "solutionKey": "c33ed9b2a09bcbafa47fc2359b231a7f",
                "solutionId": "kEsN5y1uRlxlW67IwyIcvSswoOaaTFOz7fq+HIcV8rl7R3j6S3X+UufHX+XcNmDHDIiO7divHz62BRxlfoqHobBmhdZ63/TnKGFLjFr96AX9pQPb7Zrn//jreGClWW/iJ5tLBxbJPJEiqfzqlNdZbloq+prEgt9TpHrW3cvulKh8mw8/JygIgl+C7JJvgoFMrAksORxZKbYsZmzLSTVK8oIEEJRVcQkLbzaRI1mvs9A6mOPNhrJ6AUcKvZbZW+w2HgoPISuLHrB1u5LCxOwUUFlFA2oYoFxUHacZdhmOSsyO3mMxRi2NbhUeqwHksMMP",
                "fareType": "PUBLIC",
                "currency": "USD",
                "adtFare": 67.910,
                "adtTax": 61.760,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.000,
                "platformServiceFee": 0,
                "comments": null,
                "journeys": {
                    "journey_0": [
                        "eb99261d5c578e9718b5fbfbd133602c"
                    ]
                },
                "fareRule": null,
                "rule": null,
                "platingCarrier": "UO",
                "prices": null,
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0,
                "baggageMap": {
                    "ADT": [
                        {
                            "segmentIndexList": [
                                1
                            ],
                            "baggageAmount": null,
                            "baggageWeight": "20KG",
                            "carryOnAmount": "0PC",
                            "carryOnWeight": "17.5KG",
                            "carryOnSize": null
                        }
                    ]
                },
                "miniRuleMap": {
                    "ADT": [
                        {
                            "segmentIndex": [
                                1
                            ],
                            "miniRules": [
                                {
                                    "penaltyType": 2,
                                    "isPermited": 1,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": 76,
                                    "currencyCode": "USD",
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 0,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                }
                            ]
                        }
                    ]
                },
                "afterSaleRule": null
            },
            {
                "solutionKey": "35caba44ec6ee06c5e50e160e5f82930",
                "solutionId": "uPqqzT17niNimeS2QrEMbDN5f7AYM2El63FBn+Yl6uglTBBl7klcv8BSOalYq7kjvJrPSpsL86Fga3vjWYKCtrj/tbfVoDQMgJIOGl60nRqQfeoa0i76dXi/FwOw+O2yES26yA4Wg5F8WKvU4sYn5hAdJ/iEh2mDqdnzYXBa+3WD/Mb0bw2aUK/VebDTs3NEh8SXaDclAruSPgM8fontQK9jqBFIHqxCPncKjCxpJVOC8bilktfzDSwBzbJ0hh+lGGLN68u3jDrmKgq569F7RfWgPX5CMz1pWM5fK14ar4oFu+qwdC37VNDXaa52j9Pp",
                "fareType": "PUBLIC",
                "currency": "USD",
                "adtFare": 74.800,
                "adtTax": 61.760,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.000,
                "platformServiceFee": 0,
                "comments": null,
                "journeys": {
                    "journey_0": [
                        "4cf9c3bf6f34dca474908ab1c9ccb736"
                    ]
                },
                "fareRule": null,
                "rule": null,
                "platingCarrier": "UO",
                "prices": null,
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0,
                "baggageMap": {
                    "ADT": [
                        {
                            "segmentIndexList": [
                                1
                            ],
                            "baggageAmount": null,
                            "baggageWeight": "20KG",
                            "carryOnAmount": null,
                            "carryOnWeight": null,
                            "carryOnSize": null
                        }
                    ]
                },
                "miniRuleMap": {
                    "ADT": [
                        {
                            "segmentIndex": [
                                1
                            ],
                            "miniRules": [
                                {
                                    "penaltyType": 2,
                                    "isPermited": 1,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": 76,
                                    "currencyCode": "USD",
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 0,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                }
                            ]
                        }
                    ]
                },
                "afterSaleRule": null
            },
            {
                "solutionKey": "89d265d0c5fa4e19831ba1aae7e55cac",
                "solutionId": "kEsN5y1uRlxlW67IwyIcvSswoOaaTFOz7fq+HIcV8rl7R3j6S3X+UufHX+XcNmDHDIiO7divHz62BRxlfoqHoQdhC+R6PZgrXjb7wpFxWlXFF+j+pak5rF3dPqnH0MjNY/1xcDmLKVo4sR+VaCCLj85eN62FEUIkMn+abo7oUVKKhl2keNjD230nPGchelFlpn3IBmMk5+qyqKCXRGpNmBBmJty2/RLFLT3b9dh8HIXH5f4vnOCP4wTy1Y8spuvoxIVQUH0bGHcV7Kmov0QKIs4SW+zeOKuowyjybF6bjOuPTNY0sZAkgmPJXHSnOGfH",
                "fareType": "PUBLIC",
                "currency": "USD",
                "adtFare": 67.910,
                "adtTax": 61.760,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.000,
                "platformServiceFee": 0,
                "comments": null,
                "journeys": {
                    "journey_0": [
                        "39ce5a95237b80950065fd07cb926fc3"
                    ]
                },
                "fareRule": null,
                "rule": null,
                "platingCarrier": "UO",
                "prices": null,
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0,
                "baggageMap": {
                    "ADT": [
                        {
                            "segmentIndexList": [
                                1
                            ],
                            "baggageAmount": null,
                            "baggageWeight": "20KG",
                            "carryOnAmount": "0PC",
                            "carryOnWeight": "17.5KG",
                            "carryOnSize": null
                        }
                    ]
                },
                "miniRuleMap": {
                    "ADT": [
                        {
                            "segmentIndex": [
                                1
                            ],
                            "miniRules": [
                                {
                                    "penaltyType": 2,
                                    "isPermited": 1,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": 76,
                                    "currencyCode": "USD",
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 0,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                }
                            ]
                        }
                    ]
                },
                "afterSaleRule": null
            },
            {
                "solutionKey": "ff3e42f4acbee64cb93ccf79ec087899",
                "solutionId": "kEsN5y1uRlxlW67IwyIcvSswoOaaTFOz7fq+HIcV8rl7R3j6S3X+UufHX+XcNmDHDIiO7divHz62BRxlfoqHoUmt3XOMXYoeBKrIMjVyeHIn/3pD/qjwEv3xNysILjc/EhPNyr9QQlhfxRoOyXc1yocGt8UD2x/aRaKM7tErA+cZKOxZOD36vAx7d+XY9Y35CDmH2o7BbWrsP3hk6HYEBWVmGk2UQsWcVlCHPEaoixzM88B3StBCzYYNx5wc2oWayzxXmUuErXbmAfQZK6chqdajcFQkT60LQ+NzyWn29KTjCiIlcfsMdpAaDKTc3/xi",
                "fareType": "PUBLIC",
                "currency": "USD",
                "adtFare": 67.910,
                "adtTax": 61.760,
                "chdFare": 0,
                "chdTax": 0,
                "qCharge": 0,
                "tktFee": 0.000,
                "platformServiceFee": 0,
                "comments": null,
                "journeys": {
                    "journey_0": [
                        "9236d905b3a1272bc287a4b5b4cbb736"
                    ]
                },
                "fareRule": null,
                "rule": null,
                "platingCarrier": "UO",
                "prices": null,
                "merchantFee": 0.00,
                "adults": 1,
                "children": 0,
                "infants": 0,
                "baggageMap": {
                    "ADT": [
                        {
                            "segmentIndexList": [
                                1
                            ],
                            "baggageAmount": null,
                            "baggageWeight": "20KG",
                            "carryOnAmount": "0PC",
                            "carryOnWeight": "17.5KG",
                            "carryOnSize": null
                        }
                    ]
                },
                "miniRuleMap": {
                    "ADT": [
                        {
                            "segmentIndex": [
                                1
                            ],
                            "miniRules": [
                                {
                                    "penaltyType": 2,
                                    "isPermited": 1,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": 76,
                                    "currencyCode": "USD",
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                },
                                {
                                    "penaltyType": 0,
                                    "isPermited": 0,
                                    "when": 0,
                                    "noShowTime": null,
                                    "noShowTimeUnit": null,
                                    "amount": null,
                                    "currencyCode": null,
                                    "percent": null,
                                    "baseType": null,
                                    "originAmount": null,
                                    "miniRuleAdjustAmount": null,
                                    "miniRuleAdjustFlag": null,
                                    "originCurrencyCode": null,
                                    "guarantee": null
                                }
                            ]
                        }
                    ]
                },
                "afterSaleRule": null
            }
        ],
        "flights": [
            {
                "flightId": "4cf9c3bf6f34dca474908ab1c9ccb736",
                "journeyTime": 185,
                "transferCount": 0,
                "lastTktTime": "2024-03-11 15:59:00",
                "segmengtIds": [
                    "b4d7c3d87a9225fa7bf2d7501b87d312"
                ]
            },
            {
                "flightId": "51fa1ce0c85fa868b7121d73787fb830",
                "journeyTime": 190,
                "transferCount": 0,
                "lastTktTime": null,
                "segmengtIds": [
                    "e82a0f95cb02450541d4e7df6d8ca889"
                ]
            },
            {
                "flightId": "39ce5a95237b80950065fd07cb926fc3",
                "journeyTime": 175,
                "transferCount": 0,
                "lastTktTime": "2024-03-11 15:59:00",
                "segmengtIds": [
                    "e193bb1690dba39556c8e24b3ae21ad2"
                ]
            },
            {
                "flightId": "eb99261d5c578e9718b5fbfbd133602c",
                "journeyTime": 190,
                "transferCount": 0,
                "lastTktTime": "2024-03-11 15:59:00",
                "segmengtIds": [
                    "f179f3fd6adda24d50443c5e3d01d31b"
                ]
            },
            {
                "flightId": "9236d905b3a1272bc287a4b5b4cbb736",
                "journeyTime": 175,
                "transferCount": 0,
                "lastTktTime": "2024-03-11 15:59:00",
                "segmengtIds": [
                    "ffce59cd92f517d92bde28993ffd7915"
                ]
            }
        ],
        "segments": [
            {
                "segmentId": "ffce59cd92f517d92bde28993ffd7915",
                "airline": "UO",
                "flightNum": "700",
                "equipment": "320",
                "cabinClass": "ECONOMY",
                "bookingCode": "U",
                "availabilityCount": 9,
                "departure": "HKG",
                "arrival": "BKK",
                "departureTerminal": "1",
                "arrivalTerminal": null,
                "departureDate": 1713158700000,
                "arrivalDate": 1713165600000,
                "flightTime": 175,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": "",
                "stopover": null,
                "fareBasis": "UGDD",
                "strDepartureDate": "2024-04-15",
                "strDepartureTime": "13:25",
                "strArrivalDate": "2024-04-15",
                "strArrivalTime": "15:20"
            },
            {
                "segmentId": "e82a0f95cb02450541d4e7df6d8ca889",
                "airline": "UO",
                "flightNum": "714",
                "equipment": "321",
                "cabinClass": "ECONOMY",
                "bookingCode": "Q",
                "availabilityCount": 2,
                "departure": "HKG",
                "arrival": "BKK",
                "departureTerminal": null,
                "arrivalTerminal": null,
                "departureDate": 1713138900000,
                "arrivalDate": 1713146700000,
                "flightTime": 190,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": null,
                "stopover": null,
                "fareBasis": "YOW",
                "strDepartureDate": "2024-04-15",
                "strDepartureTime": "07:55",
                "strArrivalDate": "2024-04-15",
                "strArrivalTime": "10:05"
            },
            {
                "segmentId": "b4d7c3d87a9225fa7bf2d7501b87d312",
                "airline": "UO",
                "flightNum": "792",
                "equipment": "320",
                "cabinClass": "ECONOMY",
                "bookingCode": "O",
                "availabilityCount": 4,
                "departure": "HKG",
                "arrival": "DMK",
                "departureTerminal": "1",
                "arrivalTerminal": null,
                "departureDate": 1713168900000,
                "arrivalDate": 1713176400000,
                "flightTime": 185,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": "",
                "stopover": null,
                "fareBasis": "OGDD",
                "strDepartureDate": "2024-04-15",
                "strDepartureTime": "16:15",
                "strArrivalDate": "2024-04-15",
                "strArrivalTime": "18:20"
            },
            {
                "segmentId": "f179f3fd6adda24d50443c5e3d01d31b",
                "airline": "UO",
                "flightNum": "704",
                "equipment": "320",
                "cabinClass": "ECONOMY",
                "bookingCode": "U",
                "availabilityCount": 9,
                "departure": "HKG",
                "arrival": "BKK",
                "departureTerminal": "1",
                "arrivalTerminal": null,
                "departureDate": 1713138900000,
                "arrivalDate": 1713146700000,
                "flightTime": 190,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": "",
                "stopover": null,
                "fareBasis": "UGDD",
                "strDepartureDate": "2024-04-15",
                "strDepartureTime": "07:55",
                "strArrivalDate": "2024-04-15",
                "strArrivalTime": "10:05"
            },
            {
                "segmentId": "e193bb1690dba39556c8e24b3ae21ad2",
                "airline": "UO",
                "flightNum": "702",
                "equipment": "321",
                "cabinClass": "ECONOMY",
                "bookingCode": "U",
                "availabilityCount": 9,
                "departure": "HKG",
                "arrival": "BKK",
                "departureTerminal": "1",
                "arrivalTerminal": null,
                "departureDate": 1713171300000,
                "arrivalDate": 1713178200000,
                "flightTime": 175,
                "stayTime": null,
                "codeShare": "N",
                "opFltNo": null,
                "opFltAirline": "",
                "stopover": null,
                "fareBasis": "UGDD",
                "strDepartureDate": "2024-04-15",
                "strDepartureTime": "16:55",
                "strArrivalDate": "2024-04-15",
                "strArrivalTime": "18:50"
            }
        ]
    }
}
2.
Error Response
{
    "errorCode": "P001", 
    "errorMsg": "Invalid authentication.", 
    "data": null
}

#

6 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 contral. 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.
Modified at 2024-05-06 01:07:38
Previous
Shopping_V2
Next
Shopping V7