{
"authentication": {
"partnerId": "sIxxcsRCtssslnHt+BiT4bwONbMw=",
"sign": "234f554590789459af1e610e872896a3c6"
},
"data": {
"allPaxOfOrder": 0,
"refundReason": "2",
"refundType": "1",
"uploadedFileIds": [
"d0asisuddfjasld",
"asdfasdasdas158"
],
"orderNum": "916783592892089401",
"pnrList": [
{
"arrival": "SEA",
"bookingCode": "string",
"cabinClass": "string",
"departure": "LAX",
"flightNum": "DL1473",
"segmentNo": 1,
"ticketNums": [
{
"birthday": "2003-05-11",
"cardNum": "string",
"cardType": "string",
"firstName": "Joshua",
"pnr": "AB8SED",
"airPnr": "AB8SED",
"lastName": "Perez",
"sex": "M",
"ticketNum": "123456"
}
]
}
]
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"needUploadFileId": 0,
"orderNum": "916777559161841201",
"refundPriceId": "16786066309484323",
"refundPricingStatus": "refund pricing",
"refundReason": 0,
"refundType": 0,
"lastComfirmTime": "2022-02-03 13:00:00",
"passengerPriceList": [
{
"birthday": "2003-06-05",
"cardNum": "G47350571",
"cardType": "P",
"firstName": "Justin",
"lastName": "Lopez",
"sex": "M",
"ticketNum": "123456",
"solutions": {
"currency": "USD",
"paidAmount": 1.00,
"usedAmount": 1.00,
"nonRefundableAmount": 1.00,
"refundServiceFee": 1.00,
"refundAmount": 1.00,
"FormOfPayment": "PrePay"
},
"segmentList": [
{
"arrival": "SIN",
"bookingCode": "Z",
"cabinClass": "ECONOMY",
"departure": "KUL",
"flightNum": "AK703",
"pnr": "YMERBD",
"airPnr": "YMERBD",
"segmentNo": 1,
"ticketNum": "1677755872384"
}
]
}
]
}
}"needUploadFileId": 1, you need to upload supporting documents, such as passenger passport details, using UploadAttachmentFile. Then retrieve the fileId from the response and include it under uploadedFileIds in the RefundRequest API request.Note Rules vary by airline. If it is not explicitly required, you do not need to upload passport details.
{
"authentication": {
"partnerId": "RksVSX7PfZmWYsCD7M4=",
"sign": "17e707b5d9dae8459065dbb139e5f1bd"
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"fileId": "1ee71d50b4d59ef3e1555729c11745eb",
"fileName": "Pkfarer.jpg"
}
}{
"errorCode": "B139",
"errorMsg": "File is oversize. It should be less than 5MB."
}{
"authentication": {
"sign": "de3c162dfab2cfb05fe07d73308a80",
"partnerId": "Rw6HvWEDYaF6BPcICoQGJSXhw="
},
"data": {
"refundPricingId": "16786982431662414"
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"needUploadFileId": 0,
"orderNum": "916777559161841201",
"refundPriceId": "16786982431662414",
"refundPricingStatus": "refund pricing",
"refundReason": 0,
"refundType": 0,
"lastComfirmTime": "2022-02-03 13:00:00",
"passengerPriceList": [
{
"birthday": "2003-06-05",
"cardNum": "G47350571",
"cardType": "P",
"firstName": "Justin",
"lastName": "Lopez",
"sex": "M",
"ticketNum": "123456",
"solutions": {
"currency": "USD",
"paidAmount": 1.00,
"usedAmount": 1.00,
"nonRefundableAmount": 1.00,
"refundServiceFee": 1.00,
"refundAmount": 1.00,
"FormOfPayment": "PrePay"
},
"segmentList": [
{
"arrival": "SIN",
"bookingCode": "Z",
"cabinClass": "ECONOMY",
"departure": "KUL",
"flightNum": "AK703",
"pnr": "YMERBD",
"airPnr": "YMERBD",
"segmentNo": 1,
"ticketNum": "1677755872384"
}
]
}
]
}
}Note In some cases, values may be missing in the nonRefundableAmountandrefundAmountfields in the refund pricing response. In those cases, please refer to the refund request response for the full refund details.
refundPricingId from the RefundPricing API, you can submit a refund request using that ID.refundPricingId if you do not want to check the refundable amount in advance. In that case, the system will automatically generate an ID for the request.{
"authentication": {
"partnerId": "GuLC2tDO2iox9iu45DKYSr9mQ=",
"sign": "994209932dd37a81c951f004c70be7"
},
"data": {
"refundPricingId": "16783330658156729",
"allPaxOfOrder": 1,
"orderNum": "916783298501993901",
"pnrList": [
{
"airPnr": "EDTCZP",
"arrival": "SIN",
"bookingCode": "E",
"cabinClass": "ECONOMY",
"departure": "HKG",
"flightNum": "CX635",
"pnr": "EDTCZP",
"segmentNo": "1",
"ticketNums": [
{
"birthday": "2003-01-09",
"cardNum": "P1234567",
"cardType": "P",
"firstName": "CHUN",
"lastName": "XIN",
"sex": "M",
"ticketNum": "EDTCAA"
}
]
}
],
"refundReason": 0,
"refundType": 0,
"uploadFilesIds": [
"7a570c0877099e1faaaa"
]
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"orderNum": "916777559161841202",
"parentOrderNum": "916777559161841201",
"refOrderNum": "9167775591618412",
"createTime": "2023-03-12 17:45:28",
"passengerPriceList": [
{
"segmentList": [
{
"segmentNo": 1,
"departure": "KUL",
"arrival": "SIN",
"flightNum": "AK703",
"cabinClass": "Economy",
"bookingCode": "Z",
"pnr": "YMERBD",
"ticketNum": "1677755872385"
}
],
"lastName": "King",
"firstName": "Vickie",
"cardType": "PP",
"cardNum": "G47321571",
"cardExpiredDate": "2025-05-05",
"nationality": "CN",
"psgType": "CHD",
"sex": "M",
"birthday": "2015-05-08"
}
],
"refundType": "0",
"refundReason": "0",
"orderStatus": "Refund request",
"pnr": "YMERBD",
"platingCarrier": "AK",
"journeys": [
{
"journeyTime": 75,
"departureDate": "2023-11-20",
"arrivalDate": "2023-11-20",
"departureTime": "07:05",
"arrivalTime": "08:20",
"segments": [
{
"airline": "AK",
"flightNum": "703",
"equipment": "320",
"cabinClass": "Economy",
"bookingCode": "Z",
"departure": "KUL",
"arrival": "SIN",
"departureDate": "2023-11-20",
"arrivalDate": "2023-11-20",
"departureTime": "07:05",
"arrivalTime": "08:20",
"flightTime": 75,
"codeShare": "0",
"opFltNo": "",
"opFltAirline": ""
}
]
}
]
}
}Note If the RefundRequest API is successfully invoked, the PNR for the order will be cancelled. Regardless of whether the refund is eventually approved, the tickets for that journey can no longer be used and will be treated as invalid.
{
"authentication": {
"partnerId": "GuLC2tDO2iox9iu45DKYSr9mQ=",
"sign": "994209932dd37a81c951f004c70be7"
},
"data": {
"orderNum": "916783298501993902"
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"orderNum": "916783298501993902",
"parentOrderNum": "916783298501993901",
"refOrderNum": "9167832985019939",
"createTime": "2023-03-10 10:04:02",
"passengerPriceList": [
{
"segmentList": [
{
"segmentNo": 2,
"departure": "YVR",
"arrival": "MEX",
"flightNum": "AC996",
"cabinClass": "ECONOMY",
"bookingCode": "P"
}
],
"lastName": "YANG",
"firstName": "TIFFANYBVC",
"cardType": "P",
"cardNum": "E07700466",
"sex": "F",
"birthday": "1990-08-23"
}
],
"refundType": "0",
"refundReason": "0",
"orderStatus": "Under review",
"pnr": "NGLVYT",
"platingCarrier": "AC",
"journeys": [
{
"journeyTime": 815,
"segments": [
{
"airline": "AC",
"flightNum": "996",
"equipment": "7M8",
"cabinClass": "ECONOMY",
"bookingCode": "P",
"departure": "YVR",
"arrival": "MEX",
"departureTerminal": "",
"arrivalTerminal": "",
"departureDate": "2023-02-17",
"arrivalDate": "2023-02-17",
"departureTime": "16:30",
"arrivalTime": "23:50",
"flightTime": 440,
"codeShare": "N"
}
],
"departureTime": "10:15",
"arrivalTime": "23:50",
"departureDate": "2023-02-17",
"arrivalDate": "2023-02-17"
}
]
}
}{
"orderNum": "916749866867277805",
"parentOrderNum": "916749866867277803",
"refOrderNum": "9167498668672778",
"createTime": "2023-03-10 10:04:02",
"passengerPriceList": [
{
"segmentList": [
{
"segmentNo": 2,
"departure": "YVR",
"arrival": "MEX",
"flightNum": "AC996",
"cabinClass": "ECONOMY",
"bookingCode": "P"
}
],
"lastName": "YANG",
"firstName": "TIFFANYBVC",
"cardType": "P",
"cardNum": "E07700466",
"sex": "F",
"birthday": "1990-08-23"
}
],
"refundType": "0",
"refundReason": "0",
"orderStatus": "Refund, to be reimbursed",
"pnr": "NGLVYT",
"platingCarrier": "AC",
"journeys": [
{
"journeyTime": 815,
"segments": [
{
"airline": "AC",
"flightNum": "996",
"equipment": "7M8",
"cabinClass": "ECONOMY",
"bookingCode": "P",
"departure": "YVR",
"arrival": "MEX",
"departureTerminal": "",
"arrivalTerminal": "",
"departureDate": "2023-02-17",
"arrivalDate": "2023-02-17",
"departureTime": "16:30",
"arrivalTime": "23:50",
"flightTime": 440,
"codeShare": "N"
}
],
"departureTime": "10:15",
"arrivalTime": "23:50",
"departureDate": "2023-02-17",
"arrivalDate": "2023-02-17"
}
]
}{
"errorCode": "0",
"errorMsg": "ok"
}Note The reimbursement section is more related to finance settlement handling. If your system is not integrated with your finance system, the Reimbursement API is optional.
{
"authentication": {
"partnerId": "xxcsRCtssslnHt+BiT4bwONbMw=",
"sign": "4f554590789459af1e610e872896a3c6"
},
"data": {
"orderNum": "916783592892089401"
}
}{
"errorCode": "0",
"errorMsg": "ok",
"data": {
"reimbursedOrderNum": "916787120452531002",
"reimbursedOrderStatus": "Reimbursed",
"payGate": "Voucher",
"currency": "USD",
"voucherList": [
{
"lastName": "YANGABC",
"firstName": "TIFFANY",
"birthday": "1990-08-23",
"sex": "F",
"psgType": "ADT",
"voucherNumber": "1234567890123",
"voucherCurrency": "THB",
"voucherAmount": 222.22,
"voucherValidFrom": "2023-03-20",
"voucherValidEnd": "2023-03-22",
"useFor": [
1
],
"usageLimitation": 0
}
],
"voucherFileId": [
"cc20fde65a836ad3e1555729c11745eb"
]
}
}{
"currency": "USD",
"payGate": "Prepay",
"paySerialNum": "",
"reimbursedAmount": 136.23,
"reimbursedOrderNum": "916715517771831303",
"reimbursedOrderStatus": "Reimbursed"
}{
"errorCode": "0",
"errorMsg": "ok"
}voucherFileId will be returned. You can then use that ID in the DownloadAttachmentFile request to retrieve the voucher file.{
"authentication": {
"partnerId": "sVSX7PfZmWYsCD7M4=",
"sign": "e707b5d9dae8459065dbb139e5f1bd"
},
"data": {
"fileId": "31d6ff3fe24d73a8e1555729c11745eb"
}
}