Skip to content

Instantly share code, notes, and snippets.

@nonbeing
Created October 17, 2017 12:31
Show Gist options
  • Save nonbeing/8170fece75be8a9895b6d64b36815684 to your computer and use it in GitHub Desktop.
Save nonbeing/8170fece75be8a9895b6d64b36815684 to your computer and use it in GitHub Desktop.
agent booking sample json
{
"_id": 200325283,
"clientInterface": "mobile-iOS",
"totalFareWithCurrency": {
"amount": 1628000,
"currency": "IDR"
},
"totalSeatSelectionFareWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"userSelectedSeatClass": "ECONOMY",
"ticketIssuanceTime": 1504767599698,
"totalChildrenFarePerPaxWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"ownerBusinessEntityId": {
"id": "trinusa_travelindo"
},
"conversionTableId": 1504682861728,
"userInvoiceId": {
"id": 1577862896833025429,
"scope": "[email protected]",
"kind": "user"
},
"oldBookingTime": 0,
"numSeats": 4,
"oldBookingExpirationTime": 0,
"passengers": {
"adults": [
{
"documentIssuanceLocation": null,
"documentIssuanceDate": null,
"documentType": null,
"countryOfResidence": null,
"watchlistExlusionNumber": null,
"specialServiceRequestCode": null,
"documentNo": null,
"title": "MR",
"faxNumber": null,
"phoneNumber": null,
"gender": "M",
"birthDate": null,
"firstName": "Denish",
"documentExpirationDate": null,
"lastName": "Gunawan",
"addressLines": [
],
"emailAddress": null,
"specialFoodRequestCode": null,
"addOns": [
[
{
"insurance": null,
"baggage": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"weight": 20,
"baggageType": 0,
"quantity": 1,
"unitOfMeasure": "KG",
"currency": "IDR"
},
"sportEquipment": null,
"transitService": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"currency": "IDR",
"serviceName": null
},
"seatSelection": null,
"comfortKit": null,
"meal": null
}
]
],
"isActive": true,
"birthLocation": null,
"nationality": null,
"frequentFlyers": [
{
"id": null,
"accountNumber": null,
"status": "UNKNOWN"
}
],
"eTicket": null,
"language": null,
"notes": null
},
{
"documentIssuanceLocation": null,
"documentIssuanceDate": null,
"documentType": null,
"countryOfResidence": null,
"watchlistExlusionNumber": null,
"specialServiceRequestCode": null,
"documentNo": null,
"title": "MISS",
"faxNumber": null,
"phoneNumber": null,
"gender": "F",
"birthDate": null,
"firstName": "Arviana Laurensia Chaiyadi",
"documentExpirationDate": null,
"lastName": "Putri",
"addressLines": [
],
"emailAddress": null,
"specialFoodRequestCode": null,
"addOns": [
[
{
"insurance": null,
"baggage": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"weight": 20,
"baggageType": 0,
"quantity": 1,
"unitOfMeasure": "KG",
"currency": "IDR"
},
"sportEquipment": null,
"transitService": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"currency": "IDR",
"serviceName": null
},
"seatSelection": null,
"comfortKit": null,
"meal": null
}
]
],
"isActive": true,
"birthLocation": null,
"nationality": null,
"frequentFlyers": [
{
"id": null,
"accountNumber": null,
"status": "UNKNOWN"
}
],
"eTicket": null,
"language": null,
"notes": null
},
{
"documentIssuanceLocation": null,
"documentIssuanceDate": null,
"documentType": null,
"countryOfResidence": null,
"watchlistExlusionNumber": null,
"specialServiceRequestCode": null,
"documentNo": null,
"title": "MR",
"faxNumber": null,
"phoneNumber": null,
"gender": "M",
"birthDate": null,
"firstName": "Darvin Febrian",
"documentExpirationDate": null,
"lastName": "Hariman",
"addressLines": [
],
"emailAddress": null,
"specialFoodRequestCode": null,
"addOns": [
[
{
"insurance": null,
"baggage": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"weight": 20,
"baggageType": 0,
"quantity": 1,
"unitOfMeasure": "KG",
"currency": "IDR"
},
"sportEquipment": null,
"transitService": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"currency": "IDR",
"serviceName": null
},
"seatSelection": null,
"comfortKit": null,
"meal": null
}
]
],
"isActive": true,
"birthLocation": null,
"nationality": null,
"frequentFlyers": [
{
"id": null,
"accountNumber": null,
"status": "UNKNOWN"
}
],
"eTicket": null,
"language": null,
"notes": null
},
{
"documentIssuanceLocation": null,
"documentIssuanceDate": null,
"documentType": null,
"countryOfResidence": null,
"watchlistExlusionNumber": null,
"specialServiceRequestCode": null,
"documentNo": null,
"title": "MISS",
"faxNumber": null,
"phoneNumber": null,
"gender": "F",
"birthDate": null,
"firstName": "Florencia",
"documentExpirationDate": null,
"lastName": "Ariella",
"addressLines": [
],
"emailAddress": null,
"specialFoodRequestCode": null,
"addOns": [
[
{
"insurance": null,
"baggage": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"weight": 20,
"baggageType": 0,
"quantity": 1,
"unitOfMeasure": "KG",
"currency": "IDR"
},
"sportEquipment": null,
"transitService": {
"priceWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"price": 0,
"currency": "IDR",
"serviceName": null
},
"seatSelection": null,
"comfortKit": null,
"meal": null
}
]
],
"isActive": true,
"birthLocation": null,
"nationality": null,
"frequentFlyers": [
{
"id": null,
"accountNumber": null,
"status": "UNKNOWN"
}
],
"eTicket": null,
"language": null,
"notes": null
}
],
"children": [
],
"infants": [
]
},
"partnerIds": [
],
"agentInvoiceId": null,
"userId": "[email protected]",
"numChildren": 0,
"totalAdultFarePerPaxWithCurrency": {
"amount": 407000,
"currency": "IDR"
},
"historyCreated": false,
"tickets": null,
"hasInsurance": false,
"bookingTime": 1504767319307,
"status": "ISSUED",
"issueTime": 1504767600073,
"numAdults": 4,
"numInfants": 0,
"bookingTickets": {
"bookingTicketList": [
{
"filename": null,
"pdfTicketId": "2017/09/07/200325283Depart-843800a213a5ca7d4099a973bde9b8bc.pdf",
"type": "FLIGHT_ORIGINATING"
}
]
},
"totalFare": 1628000,
"operationState": {
"allowsAutoIssue": false,
"needPreIssuanceOperation": false,
"currentWorkflowTask": null,
"workflowInstanceId": null,
"numPaymentSmsCommunicationAttempts": 0,
"hasGivenUpRebookAttempt": false,
"hasGivenUpIssueAttempt": false,
"lastCheckWithARS": 1504767598582,
"numIssueStepAttempts": 0,
"issueCommunicated": true,
"numRebookStepAttempts": 0,
"hasGivenUpCancelAttempt": false,
"numPaymentEmailCommunicationAttempts": 0,
"numCancelStepAttempts": 0,
"consistentWithARS": true,
"paymentCommunicated": false
},
"userPaymentStatus": "VERIFIED",
"bookingExpirationTime": 1504776319146,
"travelAgentRemarks": null,
"auth": null,
"bookingStatus": null,
"isMockBooking": false,
"totalChildrenFarePerPax": 0,
"numSegmentSeats": 4,
"totalTransitServiceFareWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"actionLog": {
"actions": [
]
},
"isRescheduleBooking": false,
"locale": "en_ID",
"destinationAirport": "JOG",
"isGeneratedByAutoRebook": false,
"pdfFileId": null,
"totalAdultFarePerPax": 407000,
"totalBaggageFare": 0,
"pnrBookingCodes": "YIGORW",
"labelDisplayData": null,
"currency": "IDR",
"routeDepartureTimes": [
1505642400000
],
"bookingContact": {
"lastName": "Gunawan",
"phone": [
"+62811969866"
],
"email": "[email protected]",
"personTitle": "MR",
"firstName": "Denish"
},
"paymentExpirationTime": 0,
"profileId": 6108651,
"totalBaggageFareWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"isBookingRescheduleValid": false,
"cancelStatus": null,
"agentPaymentStatus": "NOT_VERIFIED",
"travelAgentRemarksEdited": false,
"firstFlightTime": 1505642400000,
"imageFileId": null,
"tags": null,
"cookieVisitInfo": null,
"isFlightBasicRescheduleBooking": false,
"tripType": "ONE_WAY",
"totalInfantFarePerPaxWithCurrency": {
"amount": 0,
"currency": "IDR"
},
"numJourneys": 1,
"isCrossSelling": false,
"fulfillmentIds": "JT_trinusa2",
"primaryAirlineIds": "JT",
"highestSeatPublishedClasses": "PROMO",
"totalTransitServiceFare": 0,
"purchaseReferenceInsurance": true,
"totalInfantFarePerPax": 0,
"paymentVerificationTime": 1504767499486,
"sourceAirport": "CGK",
"providerBookingIds": null,
"__lut": 1504767600073,
"__mtid": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment