How many fields are required for Create Passenger Name Record REST API call?

天大地大妈咪最大 提交于 2019-12-12 02:29:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!