POST api/Product/PackageBeforeBook
Request Information
URI Parameters
None.
Body Parameters
cEntityBeforeBook| Name | Description | Type | Additional information |
|---|---|---|---|
| _SendHash | string |
None. |
|
| _SendCredentials | string |
None. |
|
| _PaymentMethod | string |
None. |
|
| _NrAdults | integer |
None. |
|
| _NrChilds | integer |
None. |
|
| ListaPassageiros | Collection of cEntityPassengerDetails |
None. |
Request Formats
application/json, text/json
Sample:
{
"_SendHash": "sample string 1",
"_SendCredentials": "sample string 2",
"_PaymentMethod": "sample string 3",
"_NrAdults": 4,
"_NrChilds": 5,
"ListaPassageiros": [
{
"passengerId": "sample string 1",
"groupId": "sample string 2",
"age": "sample string 3",
"passengerName": "sample string 4",
"passengerSurName": "sample string 5",
"genero": "sample string 6",
"email": "sample string 7",
"telefone": "sample string 8"
},
{
"passengerId": "sample string 1",
"groupId": "sample string 2",
"age": "sample string 3",
"passengerName": "sample string 4",
"passengerSurName": "sample string 5",
"genero": "sample string 6",
"email": "sample string 7",
"telefone": "sample string 8"
}
]
}
application/xml, text/xml
Sample:
<cPackage.cEntityBeforeBook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JOLIDEY">
<ListaPassageiros>
<cPackage.cEntityPassengerDetails>
<age>sample string 3</age>
<email>sample string 7</email>
<genero>sample string 6</genero>
<groupId>sample string 2</groupId>
<passengerId>sample string 1</passengerId>
<passengerName>sample string 4</passengerName>
<passengerSurName>sample string 5</passengerSurName>
<telefone>sample string 8</telefone>
</cPackage.cEntityPassengerDetails>
<cPackage.cEntityPassengerDetails>
<age>sample string 3</age>
<email>sample string 7</email>
<genero>sample string 6</genero>
<groupId>sample string 2</groupId>
<passengerId>sample string 1</passengerId>
<passengerName>sample string 4</passengerName>
<passengerSurName>sample string 5</passengerSurName>
<telefone>sample string 8</telefone>
</cPackage.cEntityPassengerDetails>
</ListaPassageiros>
<_NrAdults>4</_NrAdults>
<_NrChilds>5</_NrChilds>
<_PaymentMethod>sample string 3</_PaymentMethod>
<_SendCredentials>sample string 2</_SendCredentials>
<_SendHash>sample string 1</_SendHash>
</cPackage.cEntityBeforeBook>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>