问题
According to your REST API documentation for Create Passenger Name Record how many fields are required to send RQ as in description(enter link description here) there are approx. 266 fields are required is that true? How can i get the detail information of required fields?
回答1:
Many elements are required if an optional element is used, for example:
If you use: CreatePassengerNameRecordRQ.Profile that it is not required Required: false
The you must use CreatePassengerNameRecordRQ.Profile.UniqueID, Required: true
Since these services follow the old Sabre logic, the mandatory elements are what it used to be called PRINT:
P - Phone number
R - Received from
I - Itinerary
N - Name of traveler
T - Ticketing time limit
So, this would be the bare minimum:
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo.ContactNumbers
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo.ContactNumbers.ContactNumber
CreatePassengerNameRecordRQ.PostProcessing.EndTransaction
CreatePassengerNameRecordRQ.PostProcessing.EndTransaction.Source
CreatePassengerNameRecordRQ.PostProcessing.EndTransaction.Source.ReceivedFrom
CreatePassengerNameRecordRQ.AirBook
(There's a bunch of elements for this, so I will not copy them)
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo.PersonName
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo.PersonName.GivenName
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.CustomerInfo.PersonName.Surname
CreatePassengerNameRecordRQ.TravelItineraryAddInfo
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.AgencyInfo.Ticketing
CreatePassengerNameRecordRQ.TravelItineraryAddInfo.AgencyInfo.Ticketing.TicketType
来源:https://stackoverflow.com/questions/42666782/how-many-fields-are-required-for-create-passenger-name-record-rest-api-call