POST orders/package

Request Information

URI Parameters

None.

Body Parameters

OrderPackage
NameDescriptionTypeAdditional information
PackageTypeId

integer

None.

Pax

integer

None.

StartDate

date

None.

SessionTypeId

integer

None.

BookingId

integer

None.

Adventurer

Adventurer

None.

Addons

Collection of OrderPackage

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'myPortalApi.Models.Orders.OrderPackage'. Path 'addons'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'myPortalApi.Models.Orders.OrderPackage'. Path 'addons'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[myPortalApi.Models.Orders.OrderPackage, myPortalApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[myPortalApi.Models.Orders.OrderPackage, myPortalApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

OrderPackageResponse
NameDescriptionTypeAdditional information
BookingId

integer

None.

OrderHeaderId

integer

None.

OrderTotal

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "bookingId": 1,
  "orderHeaderId": 2,
  "orderTotal": 3.0
}

application/xml, text/xml

Sample:
<OrderPackageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Orders">
  <BookingId>1</BookingId>
  <OrderHeaderId>2</OrderHeaderId>
  <OrderTotal>3</OrderTotal>
</OrderPackageResponse>