POST query/PublicQuery/ExternalChargeInsert
Inserción de cargos por aplicaciones externas
Request Information
URI Parameters
None.
Body Parameters
RequestQueryOfExternalChargeInsert| Name | Description | Additional information | Type |
|---|---|---|---|
| QueryCredentials |
Credenciales |
Required |
QueryCredentials |
| QueryRequest |
Petición |
Required |
ExternalChargeInsert |
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"
},
"InsertExternalChargeRequest": {
"ExternalCharge": {
"BookingCode": "sample string 1",
"CreditContact": {
"RoomCode": "sample string 1",
"ContactName": "sample string 2",
"ContactId": 3,
"HasCredit": true,
"LimitCredit": 5.0
},
"Source": "sample string 2",
"SourceDocument": "sample string 3",
"Date": "2025-12-13T11:48:29.6392603+01:00",
"TotalAmount": 5.0,
"CashCode": "sample string 6"
}
},
"UserID": "f56e4e53-e61a-4e0e-ba19-aa3786352360"
}
}
application/xml, text/xml
Sample:
<RequestQueryOfExternalChargeInsertZyAg_Pmzi 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.Financials.ExternalCharge.ExternalChargeAR">
<UserID xmlns="http://schemas.datacontract.org/2004/07/WH_CQRS.DomainQueries">f56e4e53-e61a-4e0e-ba19-aa3786352360</UserID>
<d2p1:InsertExternalChargeRequest xmlns:d3p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Requests.Financials">
<d3p1:ExternalCharge xmlns:d4p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Financials">
<d4p1:BookingCode>sample string 1</d4p1:BookingCode>
<d4p1:CashCode>sample string 6</d4p1:CashCode>
<d4p1:CreditContact xmlns:d5p1="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Contacts">
<d5p1:ContactId>3</d5p1:ContactId>
<d5p1:ContactName>sample string 2</d5p1:ContactName>
<d5p1:HasCredit>true</d5p1:HasCredit>
<d5p1:LimitCredit>5</d5p1:LimitCredit>
<d5p1:RoomCode>sample string 1</d5p1:RoomCode>
</d4p1:CreditContact>
<d4p1:Date>2025-12-13T11:48:29.6392603+01:00</d4p1:Date>
<d4p1:Source>sample string 2</d4p1:Source>
<d4p1:SourceDocument>sample string 3</d4p1:SourceDocument>
<d4p1:TotalAmount>5</d4p1:TotalAmount>
</d3p1:ExternalCharge>
</d2p1:InsertExternalChargeRequest>
<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>
</RequestQueryOfExternalChargeInsertZyAg_Pmzi>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SuccessResponse| Name | Description | Additional information | Type |
|---|---|---|---|
| Success |
Es válida |
boolean | |
| Error |
Error |
string |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": "sample string 2"
}
application/xml, text/xml
Sample:
<SuccessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMS.QueryProcessorBC.Commons.Responses"> <Error>sample string 2</Error> <Success>true</Success> </SuccessResponse>