Agentivity API

<back to all web services

GetPassengerLocationsByCountry

The following routes are available for this service:
GET/PassengerLocationsByCountry
GetPassengerLocationsByCountry Parameters:
NameParameterData TypeRequiredDescription
CountryCodequerystringYes2 letter country code
DateEndquerystringYesDate in format YYYYMMDD
DateStartquerystringYesDate in format YYYYMMDD
InTransitOnlyquerystringNoInclude passengers that are in transit only in response
AccountquerystringNoComma Delimited List of Accounts
modifierquerystringNo
IncludeItineraryqueryboolNo
ItineraryFormattingqueryFormattingStyleNo
CustomFieldquerystringNoComma Delimited List of Custom Fields
RepeatByPassengerquerybooleanNoOption to place passenger names on separate lines in the downloadable result (spreadsheet)
CompanyLevelRequestBase Parameters:
NameParameterData TypeRequiredDescription
OwningCompanyCodequerystringNoComma Delimited List of Owning Company Codes
UserNamequerystringNoUserName in form of an email address
PagingMetadata Parameters:
NameParameterData TypeRequiredDescription
OffsetquerystringNoStarting Record
LimitquerystringNoNumber of records to return (PageSize)
TotalRecordsquerystringNoTotal Number of Records in a Full Reponse (if no paging)
ResponseRecordsquerystringNoTotal Number of Records in this Reponse (on this page)
FormattingStyle Enum:
NameValue
None0
Html1
Charting2
CollectionResponse<TItem> Parameters:
NameParameterData TypeRequiredDescription
ResponseMetadataformResponseMetadataNo
ResponseReportformList<ApiRequestPerHour>No
ResponseErrorformAgentivityErrorNo
ResponseMetadata Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
HasCacheformboolNo
HasPagingformboolNo
CacheMetadataformCacheMetadataNo
PagingMetadataformPagingMetadataNo
CacheMetadata Parameters:
NameParameterData TypeRequiredDescription
CachedAtformDateTimeNo
CacheExpiresAtformDateTimeNo
IsFromCacheformboolNo
ApiRequestPerHour Parameters:
NameParameterData TypeRequiredDescription
RequestDateformDateTimeNo
Hour0formintNo
Hour1formintNo
Hour2formintNo
Hour3formintNo
Hour4formintNo
Hour5formintNo
Hour6formintNo
Hour7formintNo
Hour8formintNo
Hour9formintNo
Hour10formintNo
Hour11formintNo
Hour12formintNo
Hour13formintNo
Hour14formintNo
Hour15formintNo
Hour16formintNo
Hour17formintNo
Hour18formintNo
Hour19formintNo
Hour20formintNo
Hour21formintNo
Hour22formintNo
Hour23formintNo
AgentivityError Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
MessageformstringNo
StatusCodeformstringNo
VerboseMessageformstringNo
PassengerLocation Parameters:
NameParameterData TypeRequiredDescription
RecordLocatorformstringNo
TravelDateformDateTime?No
DepartureDateformDateTime?No
BoardPointformstringNo
OffPointformstringNo
PnrTicketedformstringNo
AccountformstringNo
ConsultantformstringNo
PaxListformstringNo
PhoneNbrformstringNo
EmailAddressformstringNo
DestinationCitiesformstringNo
ConnectionsformstringNo
CarrierCodesformstringNo
HotelsNamesformstringNo
FlightNumbersformstringNo
OwningAgencyLocationIDformstringNo
IataCodesformstringNo
AgentivityRefformintNo
ItineraryformItinerarySegmentsCollectionNo
ItineraryFormattedformstringNo
CustomFieldsformCustomFieldsCollectionNo
DepartureDateTimeformDateTime?No
CurrentArrivalDateTimeformDateTime?No
SegmentTypeformstringNo
AirSegmentNbrformstringNo
PNRCreationDateformDateTime?No
TicketNumbersformstring[]No
VendorLocatorsformBookingExtVendorLocator[]No
PassengerInfoformBookingPassengerModel[]No
ItinerarySegment Parameters:
NameParameterData TypeRequiredDescription
SegmentTypeformstringNo
SegmentNbrformintNo
BoardPointformstringNo
OffPointformstringNo
OperatorCodeformstringNo
OperatorServiceformstringNo
SegmentStatusformstringNo
DepartureTimeFormattedformstringNo
ArrivalTimeFormattedformstringNo
ChangeOfDayFormattedformstringNo
ServiceCodeformstringNo
StartDateformstringNo
EndDateformstringNo
TicketNumberformstringNo
VendorLocatorsquerystringNoComma separated list of vendor locators
EquipmentCodeformstringNo
EquipmentformstringNo
CustomFieldData Parameters:
NameParameterData TypeRequiredDescription
FieldNameformstringNo
FieldValueformstringNo
BookingExtVendorLocator Parameters:
NameParameterData TypeRequiredDescription
CarrierCodeformstringNo
VendorLocatorformstringNo
BookingPassengerModel Parameters:
NameParameterData TypeRequiredDescription
FirstNameformstringNo
LastNameformstringNo
PassengerDataIdformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /PassengerLocationsByCountry HTTP/1.1 
Host: api.agentivity.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AgentivityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="schemas.agentivity.com/types">
  <ResponseMetadata>
    <Success>false</Success>
    <HasCache>false</HasCache>
    <HasPaging>false</HasPaging>
    <CacheMetadata>
      <IsFromCache>false</IsFromCache>
      <CachedAt>0001-01-01T00:00:00</CachedAt>
      <CacheExpiresAt>0001-01-01T00:00:00</CacheExpiresAt>
    </CacheMetadata>
    <PagingMetadata>
      <Limit>String</Limit>
      <Offset>String</Offset>
      <ResponseRecords>0</ResponseRecords>
      <TotalRecords>0</TotalRecords>
    </PagingMetadata>
  </ResponseMetadata>
  <ResponseReport>
    <Segment>
      <RecordLocator>String</RecordLocator>
      <TravelDate>0001-01-01T00:00:00</TravelDate>
      <DepartureDate>0001-01-01T00:00:00</DepartureDate>
      <BoardPoint>String</BoardPoint>
      <OffPoint>String</OffPoint>
      <PnrTicketed>String</PnrTicketed>
      <Account>String</Account>
      <Consultant>String</Consultant>
      <PaxList>String</PaxList>
      <PhoneNbr>String</PhoneNbr>
      <EmailAddress>String</EmailAddress>
      <DestinationCities>String</DestinationCities>
      <Connections>String</Connections>
      <CarrierCodes>String</CarrierCodes>
      <AgentivityRef>0</AgentivityRef>
      <HotelsNames>String</HotelsNames>
      <FlightNumbers>String</FlightNumbers>
      <OwningAgencyLocationID>String</OwningAgencyLocationID>
      <IataCodes>String</IataCodes>
      <Itinerary>
        <ItinerarySegment>
          <ArrivalTimeFormatted>String</ArrivalTimeFormatted>
          <BoardPoint>String</BoardPoint>
          <ChangeOfDayFormatted>String</ChangeOfDayFormatted>
          <DepartureTimeFormatted>String</DepartureTimeFormatted>
          <EndDate>String</EndDate>
          <Equipment>String</Equipment>
          <EquipmentCode>String</EquipmentCode>
          <OffPoint>String</OffPoint>
          <OperatorCode>String</OperatorCode>
          <OperatorService>String</OperatorService>
          <SegmentNbr>0</SegmentNbr>
          <SegmentStatus>String</SegmentStatus>
          <SegmentType>String</SegmentType>
          <ServiceCode>String</ServiceCode>
          <StartDate>String</StartDate>
          <TicketNumber>String</TicketNumber>
          <VendorLocators>String</VendorLocators>
        </ItinerarySegment>
      </Itinerary>
      <ItineraryFormatted>String</ItineraryFormatted>
      <CustomFields>
        <CustomField>
          <FieldName>String</FieldName>
          <FieldValue>String</FieldValue>
        </CustomField>
      </CustomFields>
      <DepartureDateTime>0001-01-01T00:00:00</DepartureDateTime>
      <CurrentArrivalDateTime>0001-01-01T00:00:00</CurrentArrivalDateTime>
      <SegmentType>String</SegmentType>
      <AirSegmentNbr>String</AirSegmentNbr>
      <PNRCreationDate>0001-01-01T00:00:00</PNRCreationDate>
      <TicketNumbers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </TicketNumbers>
      <VendorLocators>
        <VendorLocator>
          <CarrierCode>String</CarrierCode>
          <VendorLocator>String</VendorLocator>
        </VendorLocator>
      </VendorLocators>
      <PassengerInfo>
        <Passenger>
          <FirstName>String</FirstName>
          <LastName>String</LastName>
          <PassengerDataId>0</PassengerDataId>
          <Tickets>
            <Ticket>
              <Number>String</Number>
              <Type>String</Type>
            </Ticket>
          </Tickets>
        </Passenger>
      </PassengerInfo>
    </Segment>
  </ResponseReport>
  <ResponseError>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StatusCode>String</StatusCode>
    <VerboseMessage>String</VerboseMessage>
  </ResponseError>
</AgentivityResponse>