POST orders/permit

Request Information

URI Parameters

None.

Body Parameters

OrderPermit
NameDescriptionTypeAdditional information
Adventurer

Adventurer

None.

PermitTypeId

integer

None.

Count

integer

None.

ActivityTypeId

integer

None.

StartDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "adventurer": {
    "contactNo": "sample string 1",
    "emailAddress": "sample string 2",
    "emergencyContactNo": "sample string 3",
    "id": 4,
    "fullName": "sample string 5",
    "rsaId": "sample string 6",
    "uid": "sample string 7"
  },
  "permitTypeId": 1,
  "count": 2,
  "activityTypeId": 1,
  "startDate": "2024-11-28T06:39:17.0345264+00:00"
}

application/xml, text/xml

Sample:
<OrderPermit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Orders">
  <ActivityTypeId>1</ActivityTypeId>
  <Adventurer xmlns:d2p1="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Adventures">
    <d2p1:ContactNo>sample string 1</d2p1:ContactNo>
    <d2p1:EmailAddress>sample string 2</d2p1:EmailAddress>
    <d2p1:EmergencyContactNo>sample string 3</d2p1:EmergencyContactNo>
    <d2p1:FullName>sample string 5</d2p1:FullName>
    <d2p1:Id>4</d2p1:Id>
    <d2p1:RsaId>sample string 6</d2p1:RsaId>
    <d2p1:Uid>sample string 7</d2p1:Uid>
  </Adventurer>
  <Count>2</Count>
  <PermitTypeId>1</PermitTypeId>
  <StartDate>2024-11-28T06:39:17.0345264+00:00</StartDate>
</OrderPermit>

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

Response Information

Resource Description

OrderPermitResponse
NameDescriptionTypeAdditional information
OrderHeaderId

integer

None.

Total

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "orderHeaderId": 1,
  "total": 1.0
}

application/xml, text/xml

Sample:
<OrderPermitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Orders">
  <OrderHeaderId>1</OrderHeaderId>
  <Total>1</Total>
</OrderPermitResponse>