Agentivity API

<back to all web services

BookingDetailsByRef

The following routes are available for this service:
GET/BookingDetails
BookingDetailsByRef Parameters:
NameParameterData TypeRequiredDescription
AgentivityRefqueryintegerNoAgentivity Booking Reference
LoadOptionsquerystringNoOptions to retrieve booking details (valid values are: Passengers, Itinerary, DiEntries, Phones, Notepads, VendorRemarks, Tickets, Versions, VendorLocators, CustomFields, Emails, AccountValue, EventDetails or EmailTrails). The option All can be used to get entire booking data.
RecordLocatorquerystringNoRecord locator
PNRCreationDatequerystringNoDate in format YYYYMMDD
RequestConsultantIDquerystringNoRequest Consultant ID (sign on)
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)
CollectionResponse<TItem> Parameters:
NameParameterData TypeRequiredDescription
ResponseMetadataformResponseMetadataNo
ResponseReportformList<TItem>No
ResponseErrorformAgentivityErrorNo
ResponseMetadata Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
HasCacheformboolNo
HasPagingformboolNo
CacheMetadataformCacheMetadataNo
PagingMetadataformPagingMetadataNo
CacheMetadata Parameters:
NameParameterData TypeRequiredDescription
CachedAtformDateTimeNo
CacheExpiresAtformDateTimeNo
IsFromCacheformboolNo
AgentivityError Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
MessageformstringNo
StatusCodeformstringNo
VerboseMessageformstringNo
BookingDetails Parameters:
NameParameterData TypeRequiredDescription
RecordLocatorformstringNo
PNRCreationDateformstringNo
CreationDateformDateTime?No
PNRTicketedformstringNo
AccountformstringNo
OwningConsultantIDformstringNo
OwningConsultantformstringNo
CrsDescriptionformstringNo
LastActionConsultantIDformstringNo
LastActionAgencyLocationIDformstringNo
OwningAgencyLocationIDformstringNo
CreatingAgencyIataformstringNo
CompanyIDformint?No
PassengersformList<PassengerDetails>No
PhonesformList<BookingPhone>No
NotepadsformList<BookingNotepad>No
VendorRemarksformList<VendorRemark>No
DiEntriesformList<DiEntry>No
TicketsformList<BookingTicket>No
VersionsformList<BookingVersion>No
VendorLocatorsformList<BookingVendorLocator>No
CustomFieldsformList<CustomFieldValue>No
EmailsformList<BookingEmail>No
EventDetailsformList<BookingEventDetail>No
AccountLocationsformList<BookingAccountLocation>No
EmailTrailsformList<BookingEmailTrail>No
AgentivityWarningsformList<BookingDetailsWarning>No
AirlineTicketingDuesformList<BookingDetailsAirTicketingDue>No
CTCEformstringNo
CTCMformstringNo
CarbonTonnageformdouble?No
CarbonEmissionsformList<CarbonEmission>No
OwningCompanyCodeformstringNo
AgentivityRefformintNo
ItineraryformItinerarySegmentsCollectionNo
ItineraryFormattedformstringNo
PassengerDetails Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
FirstNameformstringNo
LastNameformstringNo
FrequentFlyersformList<FrequentFlyerDetails>No
SequenceNbrformintNo
LastNameElementformintNo
IsVipformboolNo
TravellerGUIDformstringNo
FrequentFlyerDetails Parameters:
NameParameterData TypeRequiredDescription
VendorformstringNo
NumberformstringNo
FullNumberformstringNo
BookingPhone Parameters:
NameParameterData TypeRequiredDescription
PhoneTypeformstringNo
CityformstringNo
NumberformstringNo
SequenceNbrformintNo
BookingNotepad Parameters:
NameParameterData TypeRequiredDescription
RemarkformstringNo
CreatedDateformDateTime?No
CreatedTimeformstringNo
QualifierformstringNo
SequenceNbrformintNo
VendorRemark Parameters:
NameParameterData TypeRequiredDescription
VendorRemarkIDformintNo
VendorRemarkBase Parameters:
NameParameterData TypeRequiredDescription
TravelOrderIdentifierformint?No
RmkNumformint?No
DateStampformDateTime?No
TimeStampformstringNo
RemarkTypeformstringNo
VendorTypeformstringNo
VendorformstringNo
RemarkformstringNo
DiEntry Parameters:
NameParameterData TypeRequiredDescription
SequenceNbrformintNo
KeywordformstringNo
RemarkformstringNo
BookingTicket Parameters:
NameParameterData TypeRequiredDescription
SegmentNbrformintNo
TicketNumberformstringNo
TicketTypeformstringNo
TicketDetailsAvailableformboolNo
BookingVersion Parameters:
NameParameterData TypeRequiredDescription
AgentivityRefformint?No
DataBaseTimeStampformDateTime?No
EventTypeformstringNo
PnrTicketedformstringNo
LastActionAgentIdformstringNo
AirSegsformintNo
AirPSegsformintNo
HtlSegsformintNo
HtlPSegsformintNo
CarSegsformintNo
CarPSegsformintNo
TrnPSegsformintNo
OwningAgencyLocationIDformstringNo
BookingVendorLocator Parameters:
NameParameterData TypeRequiredDescription
AirSegmentNbrformint?No
CarrierCodeformstringNo
VendorLocatorformstringNo
CustomFieldValue Parameters:
NameParameterData TypeRequiredDescription
PNRPropertiesCustomFieldIDformstringNo
RecordLocatorformstringNo
PNRCreationDateformDateTimeNo
FieldNameformstringNo
FieldValueformstringNo
CustomFieldIDformint?No
CreationDateTimeformDateTime?No
ElementNumberformint?No
GDSformstringNo
BookingEmail Parameters:
NameParameterData TypeRequiredDescription
SequenceNbrformintNo
EmailTypeformstringNo
EmailformstringNo
BookingEventDetail Parameters:
NameParameterData TypeRequiredDescription
ItineraryEventTypeDetailIDformintNo
AgentivityRefformintNo
EventTypeDetailformstringNo
OldDataformstringNo
NewDataformstringNo
DateTimeStampformDateTime?No
EventTypeDetailIDformint?No
BookingAccountLocation Parameters:
NameParameterData TypeRequiredDescription
PrimaryAccountLocationformstringNo
SecondaryAccountLocationformstringNo
ValidformboolNo
ExactMatchformboolNo
GDSformstringNo
BookingEmailTrail Parameters:
NameParameterData TypeRequiredDescription
RecipientEmailformstringNo
DeliveryDetailsformstringNo
MailSentDateTimeformDateTime?No
RecipientLastActivityEventformstringNo
EmailIdformint?No
UserIdformint?No
SentResponseMessageformstringNo
SentResponseErrorCodeformint?No
DeliveredBookingIDformintNo
BookingDetailsWarning Parameters:
NameParameterData TypeRequiredDescription
MessageformstringNo
VendorformstringNo
WarningDateTimeformDateTime?No
OriginalRemarkformstringNo
ClearedDateTimeformDateTime?No
ClearedByConsultantIDformstringNo
PropertiesListformList<BookingWarningProperty>No
BookingWarningProperty Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
BookingDetailsAirTicketingDue Parameters:
NameParameterData TypeRequiredDescription
AirlineformstringNo
DueDateformDateTime?No
DueTimeformstringNo
CarbonEmission Parameters:
NameParameterData TypeRequiredDescription
Valueformdouble?No
UnitformMeasurementUnitNo
ProviderformAssessmentProviderNo
CalculationDateTimeformDateTime?No
CalculationDetailsformCarbonCalculationDetailsNo
MeasurementUnit Parameters:
NameParameterData TypeRequiredDescription
IdformshortNo
SymbolformstringNo
NameformstringNo
AssessmentProvider Parameters:
NameParameterData TypeRequiredDescription
IdformshortNo
NameformstringNo
DescriptionformstringNo
LogoPathformstringNo
CarbonCalculationDetails Parameters:
NameParameterData TypeRequiredDescription
IdformshortNo
NameformstringNo
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

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

HTTP + CSV

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

GET //BookingDetails HTTP/1.1 
Host: api.agentivity.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseMetadata":{"Success":false,"HasCache":false,"HasPaging":false,"CacheMetadata":{"IsFromCache":false,"CachedAt":"\/Date(-62135596800000-0000)\/","CacheExpiresAt":"\/Date(-62135596800000-0000)\/"},"PagingMetadata":{"Offset":"String","Limit":"String","TotalRecords":0,"ResponseRecords":0}},"ResponseReport":[{"AgentivityRef":0,"RecordLocator":"String","PNRCreationDate":"String","CreationDate":"\/Date(-62135596800000-0000)\/","PNRTicketed":"String","Account":"String","OwningConsultantID":"String","OwningConsultant":"String","CrsDescription":"String","LastActionConsultantID":"String","LastActionAgencyLocationID":"String","OwningAgencyLocationID":"String","CreatingAgencyIata":"String","CompanyID":0,"Passengers":[{"Id":0,"FirstName":"String","LastName":"String","FrequentFlyers":[{"Vendor":"String","Number":"String","FullNumber":"String"}],"SequenceNbr":0,"LastNameElement":0,"IsVip":false,"TravellerGUID":"String"}],"Phones":[{"PhoneType":"String","City":"String","Number":"String","SequenceNbr":0}],"Notepads":[{"Remark":"String","CreatedDate":"\/Date(-62135596800000-0000)\/","CreatedTime":"String","Qualifier":"String","SequenceNbr":0}],"VendorRemarks":[{"VendorRemarkID":0,"TravelOrderIdentifier":0,"RmkNum":0,"DateStamp":"\/Date(-62135596800000-0000)\/","TimeStamp":"String","RemarkType":"String","VendorType":"String","Vendor":"String","Remark":"String"}],"DiEntries":[{"SequenceNbr":0,"Keyword":"String","Remark":"String"}],"Tickets":[{"SegmentNbr":0,"TicketNumber":"String","TicketType":"String","TicketDetailsAvailable":false}],"Versions":[{"AgentivityRef":0,"DataBaseTimeStamp":"\/Date(-62135596800000-0000)\/","EventType":"String","PnrTicketed":"String","LastActionAgentId":"String","AirSegs":0,"AirPSegs":0,"HtlSegs":0,"HtlPSegs":0,"CarSegs":0,"CarPSegs":0,"TrnPSegs":0,"OwningAgencyLocationID":"String"}],"VendorLocators":[{"AirSegmentNbr":0,"CarrierCode":"String","VendorLocator":"String"}],"CustomFields":[{"PNRPropertiesCustomFieldID":"String","RecordLocator":"String","PNRCreationDate":"\/Date(-62135596800000-0000)\/","FieldName":"String","FieldValue":"String","CustomFieldID":0,"CreationDateTime":"\/Date(-62135596800000-0000)\/","ElementNumber":0,"GDS":"String"}],"Emails":[{"SequenceNbr":0,"EmailType":"String","Email":"String"}],"EventDetails":[{"ItineraryEventTypeDetailID":0,"AgentivityRef":0,"EventTypeDetail":"String","OldData":"String","NewData":"String","DateTimeStamp":"\/Date(-62135596800000-0000)\/","EventTypeDetailID":0}],"AccountLocations":[{"PrimaryAccountLocation":"String","SecondaryAccountLocation":"String","Valid":false,"ExactMatch":false,"GDS":"String"}],"EmailTrails":[{"RecipientEmail":"String","DeliveryDetails":"String","MailSentDateTime":"\/Date(-62135596800000-0000)\/","RecipientLastActivityEvent":"String","EmailId":0,"UserId":0,"SentResponseMessage":"String","SentResponseErrorCode":0,"DeliveredBookingID":0}],"AgentivityWarnings":[{"Message":"String","Vendor":"String","WarningDateTime":"\/Date(-62135596800000-0000)\/","OriginalRemark":"String","ClearedDateTime":"\/Date(-62135596800000-0000)\/","ClearedByConsultantID":"String","PropertiesList":[{"Name":"String","Value":"String"}]}],"AirlineTicketingDues":[{"Airline":"String","DueDate":"\/Date(-62135596800000-0000)\/","DueTime":"String"}],"CTCE":"String","CTCM":"String","CarbonTonnage":0,"CarbonEmissions":[{"Value":0,"Unit":{"Id":0,"Symbol":"String","Name":"String"},"Provider":{"Id":0,"Name":"String","Description":"String","LogoPath":"String"},"CalculationDateTime":"\/Date(-62135596800000-0000)\/","CalculationDetails":{"Id":0,"Name":"String"}}],"OwningCompanyCode":"String","Itinerary":[{"SegmentType":"String","SegmentNbr":0,"BoardPoint":"String","OffPoint":"String","OperatorCode":"String","OperatorService":"String","SegmentStatus":"String","DepartureTimeFormatted":"String","ArrivalTimeFormatted":"String","ChangeOfDayFormatted":"String","ServiceCode":"String","StartDate":"String","EndDate":"String","TicketNumber":"String","VendorLocators":"String","EquipmentCode":"String","Equipment":"String"}],"ItineraryFormatted":"String"}],"ResponseError":{"ErrorCode":"String","Message":"String","StatusCode":"String","VerboseMessage":"String"}}