GET api/PassengerTypes/PassengerTypesForServiceType?serviceTypeId={serviceTypeId}

Gets the list of passenger types configured against service type

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceTypeId

Service Type Id to filter passenger types.

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of passenger types per service type, null if Novus version does not support this feature.

Collection of PassengerForServiceType
NameDescriptionTypeAdditional information
ServiceTypeId

Service type Id to get passenger types for

integer

None.

PassengerType

Passenger type

string

None.

MinAllowed

Minimum allowed passenger types

integer

None.

MaxAllowed

Maximum number of allowed passenger types

integer

None.

EnableCountRestrictions

Whether the count restrictions are enabled

boolean

None.

Status

Status of the passenger type

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "serviceTypeId": 1,
    "passengerType": "sample string 2",
    "minAllowed": 3,
    "maxAllowed": 4,
    "enableCountRestrictions": true,
    "status": "sample string 6"
  },
  {
    "serviceTypeId": 1,
    "passengerType": "sample string 2",
    "minAllowed": 3,
    "maxAllowed": 4,
    "enableCountRestrictions": true,
    "status": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPassengerForServiceType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
  <PassengerForServiceType>
    <EnableCountRestrictions>true</EnableCountRestrictions>
    <MaxAllowed>4</MaxAllowed>
    <MinAllowed>3</MinAllowed>
    <PassengerType>sample string 2</PassengerType>
    <ServiceTypeId>1</ServiceTypeId>
    <Status>sample string 6</Status>
  </PassengerForServiceType>
  <PassengerForServiceType>
    <EnableCountRestrictions>true</EnableCountRestrictions>
    <MaxAllowed>4</MaxAllowed>
    <MinAllowed>3</MinAllowed>
    <PassengerType>sample string 2</PassengerType>
    <ServiceTypeId>1</ServiceTypeId>
    <Status>sample string 6</Status>
  </PassengerForServiceType>
</ArrayOfPassengerForServiceType>