Adding removing pax from flight draft
Tickets needs to be exposed before adding first passenger, this needs to be fixed
- create a flight (frontend)
- read tickests of that flight api/external/flight/52366/tickets or api/external/flight/52366/passengers
- no tickest is shown, i need first to add a passenger, this is not good since they cant use the prefered workflow
Add Passenger to Flight
FL3XX can only accurately assign passengers if identified by an external or internal reference.
To assign a passenger to a specific ticket use this endpoint
PUT api/external/flight/:flightid/passenger/:ticket
{
"comment": "string",
"externalReference": "string",
"internalId": 0,
"isMain": true,
"links": [
{
"deprecation": "string",
"href": "string",
"hreflang": "string",
"media": "string",
"name": "string",
"profile": "string",
"rel": {},
"title": "string",
"type": "string"
}
],
"paxExternalReference": "string",
"paxIdCardId": 0,
"paxType": "NONE",
"paxUserId": 0,
"ticketId": 0
}
The most important reference is the paxUserId, which need to be set to the internalID of the passenger
"comment" is the luggage type
In order to assign passenger you need first to read the list of tickets for a specific flight with this endpoint ...
then assign passenger to the ticket usign endpoint ...
Infant
Updated about 1 month ago