POST query/PublicQuery/AllotmentListQuery
Lista de contratos
Request Information
URI Parameters
None.
Body Parameters
RequestQueryOfAllotmentListQueryName | Description | Additional information | Type |
---|---|---|---|
QueryCredentials |
Credenciales |
Required |
QueryCredentials |
QueryRequest |
Petición |
Required |
AllotmentListQuery |
Request Formats
application/json, text/json
Sample:
{ "QueryCredentials": { "User": "sample string 1", "Password": "sample string 2", "UserPasswordToken": "sample string 3" }, "QueryRequest": { "QueryHeader": { "HotelCodeMap": { "HotelSourceCode": "sample string 1", "HotelTargetCode": "sample string 2" }, "MaxRowsResponse": 1, "Source": "sample string 2" }, "UserID": "bb42b4f7-989a-4b15-a908-383eb8a8bc3e" } }
application/xml, text/xml
Sample:
<RequestQueryOfAllotmentListQueryHObn_Sk6F xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorSVC.Contracts.Requests"> <QueryCredentials xmlns:d2p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorSVC.Contracts.Security"> <d2p1:Password>sample string 2</d2p1:Password> <d2p1:User>sample string 1</d2p1:User> <d2p1:UserPasswordToken>sample string 3</d2p1:UserPasswordToken> </QueryCredentials> <QueryRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Queries.Contracting.MasterContracting.MasterContractingAR"> <UserID xmlns="http://schemas.datacontract.org/2004/07/WH_CQRS.DomainQueries">bb42b4f7-989a-4b15-a908-383eb8a8bc3e</UserID> <d2p1:QueryHeader xmlns:d3p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Parameters"> <d3p1:HotelCodeMap xmlns:d4p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.HotelSettings"> <d4p1:HotelSourceCode>sample string 1</d4p1:HotelSourceCode> <d4p1:HotelTargetCode>sample string 2</d4p1:HotelTargetCode> </d3p1:HotelCodeMap> <d3p1:MaxRowsResponse>1</d3p1:MaxRowsResponse> <d3p1:Source>sample string 2</d3p1:Source> </d2p1:QueryHeader> </QueryRequest> </RequestQueryOfAllotmentListQueryHObn_Sk6F>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AllotmentListQueryResponseName | Description | Additional information | Type |
---|---|---|---|
Allotments |
Contratos disponibilidad |
Collection of Allotment | |
Success |
Es válida |
boolean | |
Error |
Error |
string |
Response Formats
application/json, text/json
Sample:
{ "Allotments": [ { "Code": "sample string 1", "Name": "sample string 2" }, { "Code": "sample string 1", "Name": "sample string 2" } ], "Success": true, "Error": "sample string 2" }
application/xml, text/xml
Sample:
<AllotmentListQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Responses.Contracting"> <Error xmlns="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Responses">sample string 2</Error> <Success xmlns="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Responses">true</Success> <Allotments xmlns:d2p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Contracting"> <d2p1:Allotment> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Allotment> <d2p1:Allotment> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Allotment> </Allotments> </AllotmentListQueryResponse>