1. Penalty
PKFARE Flight Buyer API
  • Guides
    • Quick Start
    • Tricks for Playing with PKFARE API
    • Book air tickets with ancillaries
    • Raise refund requests
    • Raise change requests
    • Receive flight rescheduled notification
    • Add Paid Bags after the Booking
    • Branded Fare Integration Guide
  • API Reference
    • Air ticket booking APIs
      • TicketIssuanceNotify_V2
      • Shopping V10
      • PrecisePricing V12
      • Penalty V4
      • PreciseBooking V8
      • CancelOrder
      • OrderPricing V6
      • Ticketing
      • OrderDetail V14
      • RequestTicketing
      • ModifyOrderStatus
    • Ancillary booking APIs
      • AncillaryStatusPush
      • AncillaryPricing V6
      • AncillaryBooking
      • CancelAncillaryOrder
      • AncillaryTicketing
      • AncillaryOrderDetail
    • Flight schedule change APIs
      • ScheduleChangeNotify
      • GetScheduleChangeReply
      • GetScheduleChangeList
      • AcknowledgeScheduleChange
      • AcceptScheduleChange
    • Refund APIs
      • RefundResultNotify
      • ReimbursedResultNotify
      • Refund Pricing
      • CheckRefundPricing
      • RefundRequest
      • CheckRefund
      • CheckReimbursed
      • DownloadAttachmentFile API
      • UploadAttachmentFile API
    • Change APIs
      • ChangeResultPush
      • Change Reshop
      • Change Request
      • Change Passenger Info
      • Change Reprice
      • ChangeRepricePush
    • Void APIs
      • ReimbursedResultPush
      • VoidRequest
    • Cache APIs
      • CacheShopping
      • ValidateItinerary API
    • APIs with all versions
      • CheckInInfoPush
      • Raise change requests Copy
      • Shopping
        • Shopping
        • Shopping_V2
        • Shopping_V4
        • Shopping V7
        • Shopping V9
        • Shopping V8
      • PrecisePricing
        • PrecisePricing
        • PrecisePricing_V2
        • PrecisePricing_V6
        • PrecisePricing V9
        • PrecisePricing V10
        • PrecisePricing V11
      • Penalty
        • Penalty
        • Penalty V2
          POST
        • Penalty V3
          POST
      • 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. Penalty

Penalty

1 Function#

Through Penalty API, users can get the refund and reissue/revalidation penalty for specific flight. It needs to be invoked after using PrecisePricing API within 30 minutes (We suggest invoking this API 10 seconds after you get the response of PrecisePricing), and the corresponding fare rule will be responded.

2 Versioning#

VersionSandbox Invoking AddressUpdate
Penaltyhttps://api.pkfare.com/penalty
** ^^Below is the most updated version.^^ **

3 Charater Encoding#

The character code of this API is UTF-8.

4 Request#

4.1 Schema#

Please structure parameter as JSON format. Request should be transmitted after BASE64 encrypted.
NameTypeRequiredDescriptionSample
Authentification
partnerIdstringYesPartner IDRksVSX7Pf1yF04adBWYsCD7M4=
signstringYessignature, sign=MD5 (partnerId+partnerKey)17e707b5d9dae89065dbb139e5f1bd
penalty
journeysObjectYesspecified journey data. Need to include all the journeys, refer to 2.1.3-
journey_0/journey_1
airlineStringYesairline codeSA
flightNumStringYesflight No.102
arrivalStringYesdestinationCPT
arrivalDateStringYesarrival date2015-11-11
arrivalTimeStringYesarrival time11:45
departureStringYesoriginBKK
departureDateStringYesdeparture date2015-11-30
departureTimeStringYesdeparture time07:05
bookingCodeStringYescabin codeN

4.3 Example#

{
	"authentication": {
		"partnerId": "sVSX7PfZm1y4adBWYsCD7M4:",
		"sigh": "17e707b5d9d459065dbb139e5f1bd"
	},
	"penalty"{
		"journeys": {
			"journey_0": [{
				"airline": "SA",
				"arrival": "JNB",
				"arrivalDate": "2015-11-20",
				"arrivalTime": "07:45",
				"bookingCode": "N",
				"departure": "CPT",
				"departureDate": "2015-11-20",
				"departureTime": "05:45",
				"flightNum": "378"
			}],
			"journey_1": [{
				"airline": "SA",
				"arrival": "CPT",
				"arrivalDate": "2015-11-25",
				"arrivalTime": "08:10",
				"bookingCode": "N",
				"departure": "JNB",
				"departureDate": "2015-11-25",
				"departureTime": "06:00",
				"flightNum": "303"
			}]
		}
	}
}

5 Response#

5.1 Schema#

NameTypeDescriptionSample
Basic Parameters
errorCodeStringerror code0
errorMsgStringerror message. If return to "OK", order cancels successfullyOK
dataObjectreturn data. Only if the errorCode returns to "0", returned data is non-null-
Data
PenaltiesArraypenalties are ordered by time of journey segments. Using "\n" as a line break-
RemarkStringif the penalties are not retrieved, remark will apply-

5.2 Example#

Success response with penalty text
{
	"data": {
		"penalties": [
			"PENALTIES
			UNLESS OTHERWISE SPECIFIED
			 CHANGES
			 ANY TIME
			n CHARGE HKD 700 FOR REISSUE.
			 NOTE -
			 CHANGE WITHIN SALES
			 PERIOD
			n ALLOWED WITH CHARGE OF HKD700 PER DOCUMENT PER
			 EACH TIME OF CHANGE PLUS A
			NY APPLICABLE FARE
			 DIFFERENTIAL
			 -----------------------------------------------
			 CHA
			NGE ON/AFTER 12MAR2016
			 WHOLLY UNUSED TICKET HAS TO BE CONVERT TO
			 PREVAILIN
			G MARKET FARE.CHARGE HKD700 PLUS
			 APPLICABLE FARE DIFFERENTIAL
			 ---------------------
			---------------------------
			 PARTIALLY USED TICKET A CHARGE OF HKD700 PLUS
			 FARE DIFFER
			ENTIAL IF APPLICABLE
			 ----------------------------------------------
			 GO SHOW NOT PERMITTE
			D
			 CANCELLATIONS
			 ANY TIME
			 TICKET IS NON-REFUNDABLE IN CASE OF CANCEL/NO-SHOW/
			n REFUND.
			 NOTE -
			 IN CASE OF NO-SHOW
			 CONSIDERED AS USED AND CANNO
			T BE RE-USED OR RE-
			 BOOK FOR TRAVEL ON OTHER FLIGHT/DATES FARE YQ YR
			 NON- REF
			UNDABLE."
			]
		},
	"errorCode": "0",
	"errorMsg": "ok"
}
Success response with remark
{
"data":{
        "penalties":["Refer to structured rules."]
        },
        "errorCode":"0",
        "errorMsg":"ok"
}
Failure response
{
	"errorCode": "P001",
	"errorMsg" : "Invalid authentication." ,
	"data": null
}

6 Error Code List#

errorCodeerrorMsgDescription
0okrequest has been processed successfully
S001System errorsystem error
P001-wrong parameter
B002Partner is not existspartnerID does not exist
B003Illegal signillegal sign. Please check your signature
B023Penalty failedcollecting fare rule failed
Modified at 2024-05-06 01:25:53
Previous
PrecisePricing V11
Next
Penalty V2