Normalised data model
Many PaxFaB Servicing API responses use a type of normalised data model.
This is where data redundancy is reduced through the use of IDs and references to those IDs.
For example, the retrieve order response lists the passengers once in the passengers object with each passenger object being assigned a passengerId that is unique for a given instance of that response.
"passengers": [
{
"passengerId": "T2",
"firstName": "EAMON",
"gender": "MALE",
"surname": "TEST",
"title": "MR"
}
],
Other objects within that response (e.g items) can then reference one or more of those passengers using passengerRefIds, passengerRefId, or context specific fields like associatedInfantPassengerRefId.
"items": [
{
"price": {
"baseAmount": 53,
"currency": "GBP",
"taxes": {...},
"totalAmount": 103.73
},
"services": [
{
"type": "SEGMENT",
"passengerRefIds": [
"T2"
],
"flightSegmentRefIds": [
"BA8752-LCY-BHD-2022-02-19"
],
"fareDefinitionRefId": "PCR_1"
},