1. Ancillary booking 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
        POST
      • AncillaryBooking
        POST
      • CancelAncillaryOrder
        POST
      • AncillaryTicketing
        POST
      • AncillaryOrderDetail
        POST
    • Flight schedule change APIs
      • ScheduleChangeNotify
      • GetScheduleChangeReply
      • GetScheduleChangeList
      • AcknowledgeScheduleChange
      • AcceptScheduleChange
    • Refund APIs
      • RefundResultNotify
      • ReimbursedResultNotify
      • Refund Pricing
      • CheckRefundPricing
      • RefundRequest
      • CheckRefund
      • CheckReimbursed
      • DownloadAttachmentFile API
      • UploadAttachmentFile API
    • Change APIs
      • ChangeResultPush
      • Change Reshop
      • Change Request
      • Change Passenger Info
      • Change Reprice
      • ChangeRepricePush
    • Void APIs
      • ReimbursedResultPush
      • VoidRequest
    • Cache APIs
      • CacheShopping
      • ValidateItinerary API
    • APIs with all versions
      • CheckInInfoPush
      • Raise change requests Copy
      • Shopping
        • Shopping
        • Shopping_V2
        • Shopping_V4
        • Shopping V7
        • Shopping V9
        • Shopping V8
      • PrecisePricing
        • PrecisePricing
        • PrecisePricing_V2
        • PrecisePricing_V6
        • PrecisePricing V9
        • PrecisePricing V10
        • PrecisePricing V11
      • Penalty
        • Penalty
        • Penalty V2
        • Penalty V3
      • PreciseBooking
        • PreciseBooking
        • PreciseBooking_V2
        • PreciseBooking_V5
        • PreciseBooking V6
        • PreciseBooking V7
      • OrderPricing
        • OrderPricing_V2
        • OrderPricing V4
        • OrderPricing V5
      • Ticketing
        • Ticketing
      • TicketNumPush
        • TicketingNumPush
        • TicketingNumPush_V2
        • TicketingNumPush_V3
        • TicketIssuanceNotify
      • CancelOrder
        • CancelOrder
      • OrderDetail
        • OrderDetail_V2
        • OrderDetail_V3
        • OrderDetail_V4
        • OrderDetail_V5
        • Json_OrderDetail_V7
        • 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. Ancillary booking APIs

AncillaryBooking

POST
/json/ancillaryBookingV2

Function#

You can add ancillary products and create an ancillary order in PKFARE through AncillaryBooking API. It is necessary to use AncillaryPricing service before using this interface.

Error Code List#

errorCodeerrorMsg
0ok
S001System error.
P001XXX is illegal.
P002XXX is missing.
P006Invalid parameter.
B002Partner is not exists.
B003Illegal sign.
B005Can not find any matching ancillaryPricing result within 30 minutes.
B009Order status is invalid
B010The order was not found
B017Price is changed.
B029Duplicate reservations have been found for passenger XXX/XXX in order XXX.
B071Itinerary is different between request and order.
B075There are duplicate bookings and the same passenger is only allowed to choose one of baggage weights in the same journey.

Request

Body Params application/json

Example
{
    "authentication": {
        "sign": "{{}}",
        "partnerId": "{{}}"
    },
    "airOrderNum": "917049521951368301",
    "ancillaryBooking": {
        "baggages": [
            {
                "passenger": {
                    "birthday": "2003-03-23",
                    "firstName": "XiaoJun",
                    "lastName": "Zhong",
                    "psgType": "ADT",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            },
            {
                "passenger": {
                    "birthday": "2003-03-23",
                    "firstName": "Harris",
                    "lastName": "Kaufman",
                    "psgType": "ADT",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            },
            {
                "passenger": {
                    "birthday": "2015-03-23",
                    "firstName": "Yue",
                    "lastName": "Hong",
                    "psgType": "CHD",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            }
        ]
    }
}

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/ancillaryBookingV2' \
--header 'Content-Type: application/json' \
--data '{
    "authentication": {
        "sign": "{{}}",
        "partnerId": "{{}}"
    },
    "airOrderNum": "917049521951368301",
    "ancillaryBooking": {
        "baggages": [
            {
                "passenger": {
                    "birthday": "2003-03-23",
                    "firstName": "XiaoJun",
                    "lastName": "Zhong",
                    "psgType": "ADT",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            },
            {
                "passenger": {
                    "birthday": "2003-03-23",
                    "firstName": "Harris",
                    "lastName": "Kaufman",
                    "psgType": "ADT",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            },
            {
                "passenger": {
                    "birthday": "2015-03-23",
                    "firstName": "Yue",
                    "lastName": "Hong",
                    "psgType": "CHD",
                    "sex": "M"
                },
                "products": [
                    {
                        "ancillaryKey": "38781f820e9ee25737d7b313410b5317"
                    },
                    {
                        "ancillaryKey": "2781c40741271185391c4ef5dab51df5"
                    }
                ]
            }
        ]
    }
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "baggageOrder": {
            "ancillaryOrderNum": "917134367036776903",
            "baggages": [
                {
                    "passenger": {
                        "birthday": "2003-03-23",
                        "firstName": "Vivian",
                        "lastName": "Guo",
                        "psgType": "ADT",
                        "sex": "M"
                    },
                    "baggageDetails": [
                        {
                            "ancillaryKey": "51b015fc291b71604b8fd1325a883602",
                            "payBaggageType": 1,
                            "baggagePiece": 1,
                            "baggageWeight": "10KG",
                            "baggageCurrency": "CNY",
                            "baggagePrice": 21,
                            "journey": [
                                {
                                    "airline": "TR",
                                    "flightNum": "307",
                                    "departure": "SGN",
                                    "departureDate": "2024-05-18",
                                    "departureTime": "15:15",
                                    "arrival": "SIN",
                                    "arrivalDate": "2024-05-18",
                                    "arrivalTime": "18:20",
                                    "bookingCode": "O",
                                    "cabinClass": "ECONOMY"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}
🟢200Error
Modified at 2026-07-28 06:01:28
Previous
AncillaryPricing V6
Next
CancelAncillaryOrder