restapi';创建乘客姓名记录';警告和错误

restapi';创建乘客姓名记录';警告和错误,rest,api,sabre,Rest,Api,Sabre,测试预订座位时出现以下附加警告和错误。 没有任何关于创建乘客姓名记录REST API调用的适当文档,和的含义较少。在描述中,发送请求需要266个参数 您是否有任何适当的文档,我可以从中获得所有必需的参数详细信息?比如什么是数字,我怎么能得到 工作流程(单程): { "CreatePassengerNameRecordRS": { "ApplicationResults": { "status": "NotProcessed",

测试预订座位时出现以下附加警告和错误。 没有任何关于创建乘客姓名记录REST API调用的适当文档,和的含义较少。在描述中,发送请求需要266个参数

您是否有任何适当的文档,我可以从中获得所有必需的参数详细信息?比如什么是数字,我怎么能得到

工作流程(单程):

{
    "CreatePassengerNameRecordRS": {
        "ApplicationResults": {
            "status": "NotProcessed",
            "Error": [
                {
                    "type": "Application",
                    "timeStamp": "2017-03-08T04:10:41.317-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "ERR.SP.BUSINESS_ERROR",
                                    "content": "PNR has not been created successfully, see remaining messages for details"
                                }
                            ]
                        }
                    ]
                }
            ],
            "Warning": [
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:40.628-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SP.PROVIDER_ERROR",
                                    "content": "NO PROFILE FOUND FOR NAME"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Validation",
                    "timeStamp": "2017-03-08T04:10:40.655-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.CLIENT.VALIDATION_FAILED",
                                    "content": "Request contains incorrect values: Wrong dateTime format"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:40.919-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "FORMAT, CHECK SEGMENT NUMBER-0003"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.024-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": ".DTE.NOT ENT BGNG WITH"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.062-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "\u0087ND NAMES\u0087"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.096-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "\u0087ND NAMES\u0087"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.129-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "\u0087ND NAMES\u0087"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.166-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "NO ARNK INSERTED"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "BusinessLogic",
                    "timeStamp": "2017-03-08T04:10:41.229-06:00",
                    "SystemSpecificResults": [
                        {
                            "Message": [
                                {
                                    "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                    "content": "NEED PHONE FIELD - USE 9"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "TravelItineraryRead": {
            "TravelItinerary": {
                "CustomerInfo": {
                },
                "ItineraryInfo": {
                    "ReservationItems": {
                        "Item": [
                            {
                                "RPH": "1",
                                "MiscSegment": {
                                    "DayOfWeekInd": "7",
                                    "DepartureDateTime": "04-30",
                                    "NumberInParty": "01",
                                    "SegmentNumber": "0001",
                                    "Status": "NN",
                                    "Type": "OTH",
                                    "IsPast": false,
                                    "OriginLocation": {
                                        "LocationCode": "ISB"
                                    },
                                    "Text": [
                                        "TEST"
                                    ],
                                    "Vendor": {
                                        "Code": "PK"
                                    }
                                }
                            }
                        ]
                    }
                },
                "ItineraryRef": {
                    "AirExtras": false,
                    "InhibitCode": "U",
                    "PartitionID": "AA",
                    "PrimeHostID": "1B",
                    "Header": [
                        "CURRENTLY DISPLAYING A PNR OWNED BY THE SABRE PRIME HOST",
                        "RULES AND FUNCTIONALITY FOR THAT PRIME HOST WILL APPLY"
                    ],
                    "Source": {
                        "PseudoCityCode": "3QND",
                        "ReceivedFrom": "SWS TEST"
                    }
                },
                "SpecialServiceInfo": [
                    {
                        "RPH": "001",
                        "Type": "GFX",
                        "Service": {
                            "SSR_Code": "OSI",
                            "Airline": {
                                "Code": "PK"
                            },
                            "Text": [
                                "TEST1-TESTING"
                            ]
                        }
                    }
                ]
            }
        }
    },
    "Links": [
        {
            "rel": "self",
            "href": "https:\/\/api.sabre.com\/v1.0.0\/passenger\/records?mode=create"
        },
        {
            "rel": "linkTemplate",
            "href": "https:\/\/api.sabre.com\/\/passenger\/records?mode="
        }
    ]
}
  • 获取出发地、目的地、日期、所需座位数
  • 将所有必需的参数发送给讨价还价查找器Max,获得响应
  • 发送请求参数以预订座位。创建乘客姓名记录
  • 请求

    {
        "CreatePassengerNameRecordRQ": {
            "targetCity": "3QND",
            "Profile": {
                "UniqueID": {
                    "ID": "ABCD1EF"
                }
            },
                  "AirBook": {
                "OriginDestinationInformation": {
                    "FlightSegment": [{
                        "ArrivalDateTime": "2017-04-30",
                        "DepartureDateTime": "2017-04-30T13:55",
                        "FlightNumber": "309",
                        "NumberInParty": "1",
                        "ResBookDesigCode": "V",
                        "Status": "NN",
                        "DestinationLocation": {
                            "LocationCode": "KHI"
                        },
                        "MarketingAirline": {
                            "Code": "PK",
                            "FlightNumber": "309"
                        },
                        "MarriageGrp": "O",
                        "OriginLocation": {
                            "LocationCode": "ISB"
                        }
                    }]
                }
            },
            "AirPrice": {
                "PriceRequestInformation": {
                    "OptionalQualifiers": {
                        "MiscQualifiers": {
                            "TourCode": {
                                "Text": "TEST1212"
                            }
                        },
                        "PricingQualifiers": {
                            "PassengerType": [{
                                "Code": "CNN",
                                "Quantity": "1"
                            }]
                        }
                    }
                }
            },
            "MiscSegment": {
                "DepartureDateTime": "2017-04-30",
                "NumberInParty": 1,
                "Status": "NN",
                "Type": "OTH",
                "OriginLocation": {
                    "LocationCode": "ISB"
                },
                "Text": "TEST",
                "VendorPrefs": {
                    "Airline": {
                        "Code": "PK"
                    }
                }
            },
            "SpecialReqDetails": {
                "AddRemark": {
                    "RemarkInfo": {
                        "FOP_Remark": {
                            "Type": "CHECK",
                            "CC_Info": {
                                "Suppress": true,
                                "PaymentCard": {
                                    "AirlineCode": "PK",
                                    "CardSecurityCode": "1234",
                                    "Code": "VI",
                                    "ExpireDate": "2012-12",
                                    "ExtendedPayment": "12",
                                    "ManualApprovalCode": "123456",
                                    "Number": "4123412341234123",
                                    "SuppressApprovalCode": true
                                }
                            }
                        },
                        "FutureQueuePlaceRemark": {
                            "Date": "12-21",
                            "PrefatoryInstructionCode": "11",
                            "PseudoCityCode": "IPCC1",
                            "QueueIdentifier": "499",
                            "Time": "06:00"
                        },
                        "Remark": [{
                            "Type": "Historical",
                            "Text": "TEST HISTORICAL REMARK"
                        },
                        {
                            "Type": "Invoice",
                            "Text": "TEST INVOICE REMARK"
                        },
                        {
                            "Type": "Itinerary",
                            "Text": "TEST ITINERARY REMARK"
                        },
                        {
                            "Type": "Hidden",
                            "Text": "TEST HIDDEN REMARK"
                        }]
                    }
                },
                "AirSeat": {
                    "Seats": {
                        "Seat": [{
                            "NameNumber": "1.1",
                            "Preference": "AN",
                            "SegmentNumber": "0"
                        },
                        {
                            "NameNumber": "2.1",
                            "Preference": "AN",
                            "SegmentNumber": "1"
                        },
                        {
                            "NameNumber": "3.1",
                            "Preference": "AN",
                            "SegmentNumber": "1"
                        }]
                    }
                },
                "SpecialService": {
                    "SpecialServiceInfo": {
                        "Service": [{
                            "SSR_Code": "OSI",
                            "PersonName": {
                                "NameNumber": "testing"
                             #},
                            "Text": "TEST1",
                            "VendorPrefs": {
                                "Airline": {
                                    "Code": "PK"
                                }
                            }
                        }]
                    }
                }
            },
            "PostProcessing": {
                "RedisplayReservation": true,
                "ARUNK": "",
                "QueuePlace": {
                    "QueueInfo": {
                        "QueueIdentifier": [{
                            "Number": "100",
                            "PrefatoryInstructionCode": "11"
                        }]
                    }
                },
                "EndTransaction": {
                    "Source": {
                        "ReceivedFrom": "SWS TEST"
                    }
                }
            }
        }
    }
    
    响应:

    {
        "CreatePassengerNameRecordRS": {
            "ApplicationResults": {
                "status": "NotProcessed",
                "Error": [
                    {
                        "type": "Application",
                        "timeStamp": "2017-03-08T04:10:41.317-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "ERR.SP.BUSINESS_ERROR",
                                        "content": "PNR has not been created successfully, see remaining messages for details"
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "Warning": [
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:40.628-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SP.PROVIDER_ERROR",
                                        "content": "NO PROFILE FOUND FOR NAME"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "Validation",
                        "timeStamp": "2017-03-08T04:10:40.655-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.CLIENT.VALIDATION_FAILED",
                                        "content": "Request contains incorrect values: Wrong dateTime format"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:40.919-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "FORMAT, CHECK SEGMENT NUMBER-0003"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.024-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": ".DTE.NOT ENT BGNG WITH"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.062-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "\u0087ND NAMES\u0087"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.096-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "\u0087ND NAMES\u0087"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.129-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "\u0087ND NAMES\u0087"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.166-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "NO ARNK INSERTED"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "BusinessLogic",
                        "timeStamp": "2017-03-08T04:10:41.229-06:00",
                        "SystemSpecificResults": [
                            {
                                "Message": [
                                    {
                                        "code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
                                        "content": "NEED PHONE FIELD - USE 9"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            "TravelItineraryRead": {
                "TravelItinerary": {
                    "CustomerInfo": {
                    },
                    "ItineraryInfo": {
                        "ReservationItems": {
                            "Item": [
                                {
                                    "RPH": "1",
                                    "MiscSegment": {
                                        "DayOfWeekInd": "7",
                                        "DepartureDateTime": "04-30",
                                        "NumberInParty": "01",
                                        "SegmentNumber": "0001",
                                        "Status": "NN",
                                        "Type": "OTH",
                                        "IsPast": false,
                                        "OriginLocation": {
                                            "LocationCode": "ISB"
                                        },
                                        "Text": [
                                            "TEST"
                                        ],
                                        "Vendor": {
                                            "Code": "PK"
                                        }
                                    }
                                }
                            ]
                        }
                    },
                    "ItineraryRef": {
                        "AirExtras": false,
                        "InhibitCode": "U",
                        "PartitionID": "AA",
                        "PrimeHostID": "1B",
                        "Header": [
                            "CURRENTLY DISPLAYING A PNR OWNED BY THE SABRE PRIME HOST",
                            "RULES AND FUNCTIONALITY FOR THAT PRIME HOST WILL APPLY"
                        ],
                        "Source": {
                            "PseudoCityCode": "3QND",
                            "ReceivedFrom": "SWS TEST"
                        }
                    },
                    "SpecialServiceInfo": [
                        {
                            "RPH": "001",
                            "Type": "GFX",
                            "Service": {
                                "SSR_Code": "OSI",
                                "Airline": {
                                    "Code": "PK"
                                },
                                "Text": [
                                    "TEST1-TESTING"
                                ]
                            }
                        }
                    ]
                }
            }
        },
        "Links": [
            {
                "rel": "self",
                "href": "https:\/\/api.sabre.com\/v1.0.0\/passenger\/records?mode=create"
            },
            {
                "rel": "linkTemplate",
                "href": "https:\/\/api.sabre.com\/\/passenger\/records?mode="
            }
        ]
    }
    

    请避免发布相同的问题。以下是我刚刚发布的关于所需元素的答案:


    关于航段号,它们代表行程航段,您正在添加一个航班航段,因此与之关联的航段号为1。

    请避免发布相同的问题。以下是我刚刚发布的关于所需元素的答案:


    关于航段号,它们表示行程航段,您正在添加一个航班航段,因此与之关联的航段号将为1。

    您收到了哪些错误或警告?“代码”:“ERR.SP.BUSINESS\u ERROR”,“content”:“尚未成功创建PNR,请参阅剩余消息以了解详细信息”请参阅上面的响应数组以了解详细的警告和错误。您将收到哪些错误或警告?“代码”:“ERR.SP.BUSINESS_ERROR”,“内容”:“尚未成功创建PNR,请参阅剩余消息以了解详细信息。”“有关警告和错误的详细信息,请参阅上面的响应数组。