API Get Booking Detail

Đặc tả

  • URL: <API_GATEWAY>/api/products/booking-detail

  • Method: GET

  • Mô tả: API lấy chi tiết thông tin booking

  • Yêu cầu bảo mật: API Key

Parameter

Model

booking_number (String, Required) Mã tham chiếu đến booking

Example

<API_GATEWAY>/api/products/booking-detail?booking_number=ADCO2107201221234

Response

Model
  • id (String, Mandatory) Mã định danh chi tiết booking

  • bookingNumber (String, Mandatory) Mã dùng tham chiếu đến booking. Mã này là duy nhất.

  • bookingDate (String, Mandatory) Ngày tạo booking

  • updatedDate (String, Optional) Ngày cập nhật booking

  • travelerInfo (JsonObject, Optional) Thông tin hành khách và người liên hệ

  • bookingInfo (JsonObject, Mandatory) Thông tin chi tiết booking

Example

{
  "id": "BOD::221112::d89a3a7f-7667-497a-8db0-7e72374c078e",
  "updatedDate": "2022-11-12T14:46:50.834Z",
  "cacheType": "TICKET",
  "orgCode": "A::1",
  "agencyCode": "A::1",
  "branchCode": null,
  "saleChannel": "B2C_WEB",
  "channelType": "ONLINE",
  "supplierType": "AIR",
  "bookingCode": "BOD::221112::d89a3a7f-7667-497a-8db0-7e72374c078e",
  "bookingType": "DOME",
  "agentCode": null,
  "customerCode": "C::A::1|-1",
  "bookingNumber": "ADCO2211121960553",
  "bookingDate": "2022-11-12T14:46:50.829Z",
  "markupType": "PER_PAX_PER_SEGMENT",
  "bookingInfo": {
    "id": 1960553,
    "orgCode": "A::1",
    "agencyCode": "A::1",
    "saleChannel": "B2C_WEB",
    "channelType": "ONLINE",
    "supplierType": "AIR",
    "bookingCode": "BOD::221112::d89a3a7f-7667-497a-8db0-7e72374c078e",
    "bookingType": "DOME",
    "agentCode": null,
    "agentId": null,
    "agentName": null,
    "branchCode": null,
    "customerCode": "C::A::1|-1",
    "customerId": -1,
    "bookingNumber": "ADCO2211121960553",
    "roundType": "OneWay",
    "fromLocationCode": "HAN",
    "fromLocationName": "Sân bay Nội Bài",
    "fromCity": "Hà Nội",
    "toLocationCode": "SGN",
    "toLocationName": "Sân bay Tân Sơn Nhất",
    "toCity": "Hồ Chí Minh",
    "status": "PENDING",
    "bookingDate": "2022-11-12T14:46:50.829Z",
    "departureDate": "2022-11-26T05:00:00Z",
    "returnDate": null,
    "baseFare": 6499000,
    "equivFare": 50000,
    "serviceTax": 1090000,
    "vat": null,
    "totalFare": 7639000,
    "totalTax": 1090000,
    "agencyMarkupValue": 50000,
    "markupValue": 50000,
    "totalSsrValue": 70000,
    "totalCombo": null,
    "paymentTotalAmount": 0,
    "paymentFee": 0,
    "paymentType": "OTHER",
    "paymentStatus": "PENDING",
    "paymentDate": null,
    "paymentRefNumber": null,
    "partnerOrderId": null,
    "issuedStatus": "PENDING",
    "issuedDate": null,
    "customerFirstName": "VAN A",
    "customerLastName": "NGUYEN",
    "customerPhoneNumber1": "012345678",
    "customerPhoneNumber2": null,
    "customerEmail": "nguyenvana@gotadi.com",
    "taxReceiptRequest": false,
    "taxCompanyName": null,
    "taxAddress1": null,
    "taxAddress2": null,
    "taxNumber": null,
    "paymentBy": null,
    "paymentByCode": null,
    "issuedByCode": null,
    "refundBy": null,
    "refundByCode": null,
    "bookBy": "GUEST",
    "bookByCode": "C::A::1|-1",
    "displayPriceInfo": {
      "bookingNumber": "ADCO2211121960553",
      "baseFare": 6499000,
      "equivFare": 50000,
      "serviceTax": 1090000,
      "totalFare": 7639000,
      "totalTax": 1090000,
      "agencyMarkupValue": 50000,
      "markupValue": 50000,
      "totalSsrValue": 70000,
      "cancellationFee": 0,
      "paymentFee": 0,
      "discountAmount": 0,
      "additionalFee": 0,
      "additionalTaxPerTraveler": 0,
      "vat": null
    },
    "transactionInfos": [
      {
        "id": 1960605,
        "saleChannel": "B2C_WEB",
        "channelType": "ONLINE",
        "supplierType": "AIR",
        "bookingCode": "ADCO2211121960553::HAN-SGN::domd71e7045-f116-4106-9390-b6cbc6f0781c",
        "bookingNumber": "ADCO2211121960553",
        "status": "PENDING",
        "bookingDate": "2022-11-12T14:46:50.829Z",
        "supplierCode": "VN",
        "supplierName": "Vietnam Airline",
        "bookingRefNo": null,
        "passengerNameRecord": null,
        "timeToLive": null,
        "signature": null,
        "detail": "HAN-SGN :: VN 205",
        "originLocationCode": "HAN",
        "destinationLocationCode": "SGN",
        "carrierNo": "205",
        "checkIn": "2022-11-26T07:15:00Z",
        "checkOut": "2022-11-26T05:00:00Z",
        "baseFare": 6499000,
        "equivFare": 50000,
        "serviceTax": 1090000,
        "totalFare": 7639000,
        "totalTax": 1090000,
        "agencyMarkupValue": 50000,
        "markupValue": null,
        "totalSsrValue": 70000,
        "markupKey": "F2C|A::1|A|DOME|BAS|VNA|BUSINESS|-1",
        "markupCode": null,
        "markupFormula": null,
        "paymentAmount": null,
        "issuedStatus": "PENDING",
        "issuedDate": null,
        "etickets": null,
        "listETickets": null,
        "productSeqNumber": "ibe858002371120552",
        "productClass": "BUSINESS",
        "bookingDirection": "DEPARTURE",
        "noAdult": 1,
        "noChild": 0,
        "noInfant": 0,
        "quantity": 0,
        "unitId": null,
        "b2cBasePrice": 0,
        "b2cTaxAndFees": 0,
        "adjustNet": 0,
        "adjustContract": 0,
        "b2cTotalPrice": 0,
        "supplierBookingStatus": "PENDING",
        "supplierPaymentStatus": null,
        "allowHold": true,
        "onlyPayLater": false,
        "refundable": false
      }
    ],
    "agencyMarkupInfos": [
      {
        "agencyCode": "A::1",
        "baseFare": 6499000,
        "equivFare": 50000,
        "serviceTax": 1090000,
        "totalFare": 7639000,
        "totalTax": 1090000,
        "markupValue": 50000,
        "agencyMarkupValue": 50000
      }
    ],
    "numberOfTransactionMarkup": 1,
    "numberOfTransaction": 1,
    "contactInfos": [
      {
        "id": 1960852,
        "bookingNumber": "ADCO2211121960553",
        "contactType": null,
        "contactLevel": null,
        "gender": null,
        "firstName": "VAN A",
        "surName": "NGUYEN",
        "email": "nguyenvana@gotadi.com",
        "ccEmail": null,
        "country": null,
        "city": null,
        "address1": null,
        "address2": null,
        "postalCode": null,
        "phoneCode1": "84",
        "phoneNumber1": "012345678",
        "phoneCode2": null,
        "phoneNumber2": null,
        "bookingId": null,
        "dob": "1988-02-03T17:00:00Z"
      }
    ],
    "travelerInfos": [
      {
        "id": null,
        "bookingNumber": "ADCO2211121960553",
        "bookingTransCode": null,
        "email": null,
        "gender": "MALE",
        "firstName": "VAN A",
        "surName": "NGUYEN",
        "dob": "1988-02-04T00:00:00Z",
        "adultType": "ADT",
        "country": null,
        "city": null,
        "address1": null,
        "address2": null,
        "postalCode": null,
        "phoneNumber1": null,
        "phoneNumber2": null,
        "phoneNumber3": null,
        "phoneNumber4": null,
        "phoneNumber5": null,
        "documentType": null,
        "nationality": null,
        "documentNumber": null,
        "documentExpiredDate": null,
        "documentIssuedDate": null,
        "documentIssuingCountry": null,
        "memberCard": false,
        "memberCardType": null,
        "memberCardNumber": null,
        "memberCardExpiredDate": null,
        "orderIdx": 0,
        "eticket": null,
        "eTicketList": {},
        "adminFee": {},
        "bookingId": null,
        "paxFee": 0,
        "baseFare": 6499000,
        "baseTax": 1090000,
        "personRepresentation": null,
        "serviceRequests": [
          {
            "id": 1960807,
            "bookingNumber": "ADCO2211121960553",
            "bookingTransCode": "ADCO2211121960553::HAN-SGN::domd71e7045-f116-4106-9390-b6cbc6f0781c",
            "bookingTravelerId": 1960753,
            "serviceType": "BAGGAGE",
            "fareCode": "domd71e7045-f116-4106-9390-b6cbc6f0781c",
            "ssrId": "air-tickets.baggage-items.vn.adult-child.2x9kg-1x32kg.free",
            "ssrCode": "FreeBAGGAGE",
            "ssrName": "Xách tay 2x9kg + Ký gửi 1x32kg",
            "ssrAmount": 0,
            "bookingId": null,
            "eTicket": null,
            "bookingDirection": "DEPARTURE"
          },
          {
            "id": 1960806,
            "bookingNumber": "ADCO2211121960553",
            "bookingTransCode": "ADCO2211121960553::HAN-SGN::domd71e7045-f116-4106-9390-b6cbc6f0781c",
            "bookingTravelerId": 1960753,
            "serviceType": "INSURANCE",
            "fareCode": "domd71e7045-f116-4106-9390-b6cbc6f0781c",
            "ssrId": "BV-GTD-TRAVEL FLEXI-TVC",
            "ssrCode": "INS_FLEXI_TVC_BRONZE",
            "ssrName": "B%E1%BA%A3o%20hi%E1%BB%83m%20du%20l%E1%BB%8Bch",
            "ssrAmount": 70000,
            "bookingId": null,
            "eTicket": null,
            "bookingDirection": null
          }
        ]
      }
    ],
    "timeToLive": null,
    "supplierBookingStatus": "PENDING",
    "passengerNameRecords": "",
    "etickets": "",
    "cancellationStatus": null,
    "cancellationFee": 0,
    "cancellationNotes": null,
    "cancellationBy": null,
    "cancellationDate": null,
    "discountAmount": 0,
    "discountVoucherCode": null,
    "discountVoucherName": null,
    "discountRedeemId": null,
    "discountRedeemCode": null,
    "discountDate": null,
    "additionalFee": null,
    "taxPersonalInfoContact": null,
    "bookingNote": null,
    "internalBookingNote": null,
    "promotionID": null,
    "reasonCodePaymentFailed": null,
    "bookingFinalStatus": null,
    "bookingIssuedType": null,
    "allowHold": true,
    "onlyPayLater": false,
    "showPayLaterOption": true,
    "showPayNowOption": true,
    "refundable": false,
    "ownerBooking": false,
    "deleted": null
  },
  "groupPricedItineraries": [
    {
      "groupId": "6ac63940-5aa8-463e-87a7-646bf66a5bcc",
      "airline": "VN",
      "airlineName": "Vietnam Airlines",
      "airSupplier": "VN",
      "fightNo": "205",
      "flightType": "DOMESTIC",
      "roundType": "ONEWAY",
      "originLocationCode": "HAN",
      "originLocationName": "Sân bay Nội Bài",
      "originCity": "Hà Nội",
      "originCountryCode": null,
      "originCountry": null,
      "destinationLocationCode": "SGN",
      "destinationLocationName": "Sân bay Tân Sơn Nhất",
      "destinationCity": "Hồ Chí Minh",
      "destinationCountryCode": null,
      "destinationCountry": null,
      "requiredFields": null,
      "aircraft": "Airbus A321",
      "vnaArea": "SouthTrip",
      "arrivalDateTime": "2022-11-26T07:15:00Z",
      "returnDateTime": null,
      "departureDateTime": "2022-11-26T05:00:00Z",
      "totalPricedItinerary": 1,
      "pricedItineraries": [
        {
          "sequenceNumber": "ibe858002371120552",
          "directionInd": "DEPARTURE",
          "ticketType": "ETICKET",
          "validatingAirlineCode": "VN",
          "validatingAirlineName": "Vietnam Airlines",
          "fightNo": "205",
          "airItineraryPricingInfo": {
            "fareSourceCode": "domd71e7045-f116-4106-9390-b6cbc6f0781c",
            "fareType": "PUBLIC",
            "divideInPartyIndicator": false,
            "fareInfoReferences": null,
            "itinTotalFare": {
              "baseFare": {
                "amount": 6499000,
                "currencyCode": null,
                "decimalPlaces": 2
              },
              "comboMarkup": null,
              "equivFare": {
                "amount": 50000,
                "currencyCode": null,
                "decimalPlaces": 2
              },
              "serviceTax": {
                "amount": 1090000,
                "currencyCode": null,
                "decimalPlaces": 2
              },
              "totalFare": {
                "amount": 7639000,
                "currencyCode": null,
                "decimalPlaces": 2
              },
              "totalTax": {
                "amount": 0,
                "currencyCode": null,
                "decimalPlaces": 2
              },
              "totalPaxFee": {
                "amount": 0,
                "currencyCode": null,
                "decimalPlaces": 2
              }
            },
            "adultFare": {
              "passengerTypeQuantities": {
                "code": "ADT",
                "quantity": 1
              },
              "fareBasisCodes": null,
              "passengerFare": {
                "baseFare": {
                  "amount": 6499000,
                  "currencyCode": null,
                  "decimalPlaces": 2
                },
                "comboMarkup": null,
                "equivFare": null,
                "serviceTax": {
                  "amount": 1090000,
                  "currencyCode": null,
                  "decimalPlaces": 2
                },
                "taxes": null,
                "totalFare": {
                  "amount": 7589000,
                  "currencyCode": null,
                  "decimalPlaces": 2
                },
                "totalPaxFee": {
                  "amount": 0,
                  "currencyCode": null,
                  "decimalPlaces": 2
                },
                "surcharges": [
                  {
                    "amount": 0,
                    "indicator": "Ticket fee per booking",
                    "type": "Ticket fee per booking"
                  }
                ]
              }
            },
            "childFare": null,
            "infantFare": null
          },
          "originDestinationOptions": [
            {
              "originLocationCode": "HAN",
              "originLocationName": "Sân bay Nội Bài",
              "originCity": "Hà Nội",
              "originDateTime": "2022-11-26T05:00:00Z",
              "destinationLocationCode": "SGN",
              "destinationLocationName": "Sân bay Tân Sơn Nhất",
              "destinationCity": "Hồ Chí Minh",
              "destinationDateTime": "2022-11-26T07:15:00Z",
              "flightDirection": "D",
              "journeyDuration": 135,
              "flightSegments": [
                {
                  "departureAirportLocationCode": "HAN",
                  "departureAirportLocationName": "Sân bay Nội Bài",
                  "departureCity": "Hà Nội",
                  "departureDateTime": "2022-11-26T05:00:00Z",
                  "arrivalAirportLocationCode": "SGN",
                  "arrivalAirportLocationName": "Sân bay Tân Sơn Nhất",
                  "arrivalCity": "Hồ Chí Minh",
                  "arrivalDateTime": "2022-11-26T07:15:00Z",
                  "departureAirport": {
                    "airport": "HAN",
                    "scheduledTime": "2022-11-25T22:00:00",
                    "utcOffset": {
                      "hours": 7,
                      "minutes": 420
                    }
                  },
                  "arrivalAirport": {
                    "airport": "SGN",
                    "scheduledTime": "2022-11-26T00:15:00",
                    "utcOffset": {
                      "hours": 7,
                      "minutes": 420
                    }
                  },
                  "cabinClassCode": "C",
                  "cabinClassName": "BUSINESS",
                  "cabinClassText": "Business Flex",
                  "eticket": true,
                  "flightNumber": "205",
                  "journeyDuration": 135,
                  "marketingAirlineCode": "VN",
                  "marriageGroup": null,
                  "mealCode": null,
                  "adultBaggage": null,
                  "childBaggage": null,
                  "infantBaggage": null,
                  "operatingAirline": {
                    "code": "VN",
                    "name": "Vietnam Airlines",
                    "equipment": null,
                    "flightNumber": "205"
                  },
                  "resBookDesignCode": "C",
                  "seatsRemaining": null,
                  "stopQuantity": 0,
                  "stopQuantityInfo": null,
                  "flightDirection": "D",
                  "fareCode": null,
                  "fareBasicCode": null,
                  "supplierJourneyKey": "b+T7Lz8Bk6JHev8ZaYn6JdksP71z9ZD2metfP5B9ooZW6R7siI3w/WBDkelhRaA/GU5MCdNYgtx+o5Th5+oS4ANw2mFbDR3jPyIFXZkJiG1Xxe8RXcWecVpXCUVOWsjLDmaO6GNYKdjgTzxoVC4fTLPA4kxTQMWp4y7aBysm/eI/pz3OR10FpI7tJO45Lmj6xiIIVI9PCT18TN1pVZ35/rNUG2MQJWEQe9akNYB9uVJnt0yZKGJ5Jh+znY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eHK+i2lvMAxbVz50Kpf1SzCZ0AysZKjHoQRItdPi+CQhqPqR7ivcye5Y8NU9tgGXBo4WJ/J5QhXm+3VajARlJ7EREq6H8DV+2Dlzsiiy2IpMmB1DzsnBRaS5lKiOGMTnMHZuvOXPSKIz2jEpLpcjcG2Gt0GHO8B0fVrYo7dRRIuw==",
                  "supplierFareKey": null,
                  "aircraft": "Airbus A321"
                }
              ],
              "cabinClassName": "BUSINESS",
              "key": null
            }
          ],
          "cabinClassName": "BUSINESS",
          "validReturnCabinClasses": null,
          "baggageItems": [
            {
              "id": "air-tickets.baggage-items.vn.adult-child.2x9kg-1x32kg.free",
              "name": "Xách tay 2x9kg + Ký gửi 1x32kg",
              "code": "air-tickets.baggage-items.vn.adult-child.2x9kg-1x32kg.free",
              "amount": 0,
              "serviceType": "BAGGAGE",
              "fareCode": null,
              "direction": null,
              "note": ""
            }
          ],
          "mealItems": null,
          "allowHold": true,
          "onlyPayLater": false,
          "refundable": false,
          "passportMandatory": true
        }
      ],
      "tourCode": null,
      "osiCode": null
    }
  ],
  "hotelAvailability": null,
  "hotelProductPayload": null,
  "hotelProduct": null,
  "tourActivityProduct": null,
  "tourActivityBookingPayload": null,
  "offlineBooking": null,
  "offlineBookingRequest": null,
  "travelerInfo": {
    "airTravelers": [
      {
        "idx": 0,
        "transCode": null,
        "productCode": "domd71e7045-f116-4106-9390-b6cbc6f0781c",
        "passengerId": null,
        "passengerType": "ADT",
        "gender": "MALE",
        "passengerName": {
          "title": "MALE",
          "firstName": "VAN A",
          "lastName": "NGUYEN"
        },
        "dateOfBirth": "1988-02-04T00:00:00Z",
        "passport": {
          "passportNumber": null,
          "passportType": null,
          "country": null,
          "expiryDate": null
        },
        "frequentFlyerType": null,
        "frequentFlyerNumber": null,
        "phone1": null,
        "phone2": null,
        "email": null,
        "specialServiceRequest": {
          "ssrItems": [
            {
              "id": "air-tickets.baggage-items.vn.adult-child.2x9kg-1x32kg.free",
              "name": "Xách tay 2x9kg + Ký gửi 1x32kg",
              "code": "FreeBAGGAGE",
              "amount": 0,
              "serviceType": "BAGGAGE",
              "fareCode": "domd71e7045-f116-4106-9390-b6cbc6f0781c",
              "direction": "DEPARTURE",
              "note": ""
            }
          ],
          "mealPreference": "OTHER",
          "seatPreference": "AISLE"
        },
        "extraServicesRequest": null,
        "eticket": null
      }
    ],
    "contactInfos": [
      {
        "title": null,
        "firstName": "VAN A",
        "lastName": "NGUYEN",
        "areaCode": "84",
        "countryCode": null,
        "city": null,
        "phoneNumber1": "012345678",
        "phoneNumber2": null,
        "email": "nguyenvana@gotadi.com",
        "postCode": null
      }
    ]
  },
  "isPerBookingType": false
}

Last updated