PUT eco/bookings

Request Information

URI Parameters

None.

Body Parameters

BookingPUT
NameDescriptionTypeAdditional information
Addons

Collection of PackagePOST

None.

BookingRef

string

None.

Id

integer

None.

MerchantReference

string

None.

Packages

Collection of PackagePOST

None.

Pax

integer

None.

Permits

Collection of PermitPOST

None.

SessionId

integer

None.

Date

date

None.

StatusId

integer

None.

SupplierUid

string

None.

TotalCost

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "addons": [
    {
      "packageTypeId": 1,
      "pax": 2
    },
    {
      "packageTypeId": 1,
      "pax": 2
    }
  ],
  "bookingRef": "sample string 1",
  "id": 2,
  "merchantReference": "sample string 3",
  "packages": [
    {
      "packageTypeId": 1,
      "pax": 2
    },
    {
      "packageTypeId": 1,
      "pax": 2
    }
  ],
  "pax": 4,
  "permits": [
    {
      "count": 1,
      "permitTypeId": 2,
      "pax": 3
    },
    {
      "count": 1,
      "permitTypeId": 2,
      "pax": 3
    }
  ],
  "sessionId": 5,
  "date": "2024-02-21T07:47:54.656725+02:00",
  "statusId": 7,
  "supplierUid": "sample string 8",
  "totalCost": 9.0
}

application/xml, text/xml

Sample:
<BookingPUT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism.Bookings">
  <Addons xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism">
    <d2p1:PackagePOST>
      <d2p1:PackageTypeId>1</d2p1:PackageTypeId>
      <d2p1:Pax>2</d2p1:Pax>
    </d2p1:PackagePOST>
    <d2p1:PackagePOST>
      <d2p1:PackageTypeId>1</d2p1:PackageTypeId>
      <d2p1:Pax>2</d2p1:Pax>
    </d2p1:PackagePOST>
  </Addons>
  <BookingRef>sample string 1</BookingRef>
  <Date>2024-02-21T07:47:54.656725+02:00</Date>
  <Id>2</Id>
  <MerchantReference>sample string 3</MerchantReference>
  <Packages xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism">
    <d2p1:PackagePOST>
      <d2p1:PackageTypeId>1</d2p1:PackageTypeId>
      <d2p1:Pax>2</d2p1:Pax>
    </d2p1:PackagePOST>
    <d2p1:PackagePOST>
      <d2p1:PackageTypeId>1</d2p1:PackageTypeId>
      <d2p1:Pax>2</d2p1:Pax>
    </d2p1:PackagePOST>
  </Packages>
  <Pax>4</Pax>
  <Permits xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism">
    <d2p1:PermitPOST>
      <d2p1:Count>1</d2p1:Count>
      <d2p1:Pax>3</d2p1:Pax>
      <d2p1:PermitTypeId>2</d2p1:PermitTypeId>
    </d2p1:PermitPOST>
    <d2p1:PermitPOST>
      <d2p1:Count>1</d2p1:Count>
      <d2p1:Pax>3</d2p1:Pax>
      <d2p1:PermitTypeId>2</d2p1:PermitTypeId>
    </d2p1:PermitPOST>
  </Permits>
  <SessionId>5</SessionId>
  <StatusId>7</StatusId>
  <SupplierUid>sample string 8</SupplierUid>
  <TotalCost>9</TotalCost>
</BookingPUT>

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 'BookingPUT'.

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>