Flight/

Flight booking JSON

Flight booking JSON
This JSON represents a sample booking record containing details of a flight reservation made by a customer. It includes information about the booking, passengers, flight, and payment. The booking ID, booking date, and total price are included in the booking details.

JSON Data:

1{ 2 "bookingId": "B12345678", 3 "bookingDate": "2022-02-08T12:00:00Z", 4 "passengers": [ 5 { 6 "firstName": "John", 7 "lastName": "Doe", 8 "email": "johndoe@example.com", 9 "dob": "1990-01-01", 10 "gender": "M", 11 "address": { 12 "street": "123 Main St", 13 "city": "Anytown", 14 "state": "CA", 15 "postalCode": "12345", 16 "country": "USA" 17 }, 18 "phoneNumber": "+1 555-555-5555" 19 }, 20 { 21 "firstName": "Jane", 22 "lastName": "Doe", 23 "email": "janedoe@example.com", 24 "dob": "1992-03-15", 25 "gender": "F", 26 "address": { 27 "street": "456 Second St", 28 "city": "Anycity", 29 "state": "CA", 30 "postalCode": "67890", 31 "country": "USA" 32 }, 33 "phoneNumber": "+1 555-555-5556" 34 } 35 ], 36 "flight": { 37 "flightNumber": "UA123", 38 "origin": "SFO", 39 "destination": "JFK", 40 "departureDate": "2022-02-15T08:00:00Z", 41 "arrivalDate": "2022-02-15T16:00:00Z", 42 "airline": "United Airlines", 43 "fareClass": "Economy", 44 "farePrice": 250.00 45 }, 46 "payment": { 47 "cardType": "Visa", 48 "cardNumber": "**** **** **** 1234", 49 "expirationDate": "03/24", 50 "billingAddress": { 51 "street": "789 Third St", 52 "city": "Anyvillage", 53 "state": "CA", 54 "postalCode": "24680", 55 "country": "USA" 56 }, 57 "totalPrice": 500.00 58 } 59} 60

 

Description:

In this example, we have a flight booking with a bookingId, bookingDate, passengers (an array of objects, each representing a passenger on the flight), flight (containing details about the flight, including flightNumber, origin, destination, departureDate, arrivalDate, airline, fareClass, and farePrice), and payment (containing details about the payment method, including cardType, cardNumber, expirationDate, billingAddress, and totalPrice). The address fields for passengers and billingAddress are objects with street, city, state, postalCode, and country fields.

episyche logo

Developed by

Episyche Technologies

Copyright © 2022-2024 Episyche Technologies. All rights reserved.

twitter
linkedin