POST eco/packages

Request Information

URI Parameters

None.

Body Parameters

OrderPackagePOST
NameDescriptionTypeAdditional information
PackageTypeId

integer

None.

Pax

integer

None.

StartDate

date

None.

SessionTypeId

integer

None.

BookingId

integer

None.

AdventurerId

integer

None.

AdventurerUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "packageTypeId": 1,
  "pax": 2,
  "startDate": "2024-07-26T23:32:12.3693998+02:00",
  "sessionTypeId": 4,
  "bookingId": 1,
  "adventurerId": 5,
  "adventurerUid": "sample string 6"
}

application/xml, text/xml

Sample:
<OrderPackagePOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism">
  <AdventurerId>5</AdventurerId>
  <AdventurerUid>sample string 6</AdventurerUid>
  <BookingId>1</BookingId>
  <PackageTypeId>1</PackageTypeId>
  <Pax>2</Pax>
  <SessionTypeId>4</SessionTypeId>
  <StartDate>2024-07-26T23:32:12.3693998+02:00</StartDate>
</OrderPackagePOST>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrderPackagePOST'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>