Flight/

Flight cancellation JSON

Flight cancellation JSON
This JSON represents a cancellation record for a flight reservation made by a customer. It includes information about the booking ID, cancellation date, passengers, flight details, and refund amount. The passenger information includes their names, contact information, and address.

JSON Data:

1{ 2 "bookingId": "B12345678", 3 "cancellationDate": "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 "refundAmount": 200.00 47} 48

 

Description:

In this example, we have a flight booking cancellation with a bookingId, cancellationDate, 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 refundAmount (indicating the amount to be refunded to the customer). The address fields for passengers 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