I'm currently retrieving a PNR information using the Retrieve PNR API. For display, i need to group the flights by legs. However, the flight returned in the view i'm using (DefaultWithPq) are simply returned as a single sequence of segments :
<stl18:Segments>
<stl18:Segment sequence="1" id="8">
...
<stl18:Segment sequence="2" id="9">
...
<stl18:Segment sequence="3" id="10">
...
<stl18:Segment sequence="4" id="11">
...
</stl18:Segments>
How is it possible from those sequence (without calculating with departure times destinations etc.) to know which ones are in the departure leg and which ones are in the return leg ?
thank you
Unfortunately this would be have to be done by your application's logic, as the service does not return that information. You can use dates and marriage indicators but there is no element to show which one is the inbound or outbound flight. Usually customers obtain this with shopping services like BFM.
Related
Question: What is the right way to filter active users based on the presence of an event?
I'm trying to report on a count of users that have performed a particular action (purchased an item) on my site.
The aim is to have a Daily Unique Buyer (akin to DAU or 1dayUsers) and Monthly Unique Buyer (akin MAU or 30dayUser) metric.
For the Daily Unique Buyer metric I have tried two separate approaches and I am getting different results for both.
Approach 1) Use ga:Users metric and apply filter ga:eventCategory=="Purchase"
Approach 2) Create custom Segment, Ensure that Advanced Filter condition is for Users (not Sessions) and set the same filter ga:eventCategory=="Purchase"
The first approach seems to yield the desired result when compared to the second.
Unfortunately, the first approach does not extend to computing the same metric for Monthly Unique Buyers.
Most post on StackOverflow suggest that creating a segment (approach 2) is the right way forward. This however, yields more users than events, which can't be correct.
Even more perplexing - Applying the segment in Audience -> Active Users interface yields a different result to programmatic app-script query below
const optArgs = {
'dimensions': 'ga:date',
'sort': '-ga:date','
start-index': '1',
'max-results': 250,
'segment: 'gaid::xxxx',
}
Analytics.Data.Ga.get(
myViewId, startDate, endDate, 'ga:1dayUsers', optArgs
);
update: For those that struggled with this. I don't claim to understand why, but I was able to get the correct number by querying the desired metrics 1dayUsers and 30dayUsers one date at a time.
Running the report over a date range failed. I checked this with the list of actual active users (under User Explorer in the interface) and both 1 day and 30 day metrics are correct.
Would love for someone to explain why this is needed.
At hootsuite.com we are using v2/shares to create reports for multiple social profiles over large periods of time.
The documentation for that endpoint specifies here that: "Shares are ordered by creation time".
at the moment, when I go to https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:organization:15100279&sharesPerOwner=500&start=290
I'll see "activity": "urn:li:activity:6537431951580684288" with createdTime 1558645236755 between two other shares that both have bigger createTime (1559217643294 and 1559131242301)
This means that the creation time is not the order.
If the order has been changed on lastModified time, please suggest a method to paginate through shares up to a last known share fetched 1 day ago, while guaranteeing no new shares were missed.
I am trying to implement AMTRAK Rail bookings using Sabre's RailShopRS.
I've been able to get a list of available journeys but now I'm struggling to figure out how I get a price for those journeys. It looks like the price should be part of the availability response but there never appears to be a price anywhere.
Is this something that should be part of the initial availability response or do I have to make a new request with details of the specific train and faretype?
Does this help?
http://files.developer.sabre.com/doc/providerdoc/rail/RailServicesDescription_v1.12.0.html#amtrak
Here are some sample request and responses:
http://files.developer.sabre.com/doc/providerdoc/rail/RS_Sample_RQ_RS_1_12_0.zip
There should be a list of 'Offers' within the response, with a reference to a JourneyId that can be used to match the fares with its corresponding journey/train option.
I would like to know how to pass Frequent Flyer's number in case 2 different Airlines.
Do I need to pass Airline wise i.e Segment wise, or can I pass for Marketing Airline.
For Instance:
Say Marketing Airline is "9W" and Suppose 2 connecting Airlines are "9W" and "AI", so in this case, will it be ok if I just pass for "9W" (Marketing Airline) ?
I think passing MarketingAirline in ProgramID should be OK.
according to Sabre documentation, you can pass frequent flyer number using PassengerDetailsRQ when creating PNR with this XML element:
<CustLoyalty MembershipID="155P9B76" NameNumber="1.1" ProgramID="XX"
SegmentNumber="1" TravelingCarrierCode="YY"/>
The thing you have to know that you can't combine SegmentNumber element with TravellingCarrierCode. In your case, you have two different airlines to ticket but you want pass the frequent flyer number to only one of these, then you can do:
<CustLoyalty MembershipID="155P9B76" NameNumber="1.1" ProgramID="XX" TravelingCarrierCode="XX"/>
ProgramID is the airline that you want to pass the frequent flyer number, TravellingCarrierCode can be same or different (due to operating / marketing airline differentiation). NameNumber stands for passenger I guess, I didn't have exact information for that so I don't want to give you wrong information about that attribute.
The schema you should follow in request is:
PassengerDetailsRQ --> TravelItineraryAddInfoRQ --> CustomerInfo --> CustLoyalty
Regards.
I've a requirement where in, I need to get all the transfer orders, that has been associated with the sales order.
Is there any api / attribute in getOrderDetails API that has transfer order number or TransferOrderHeaderKey ?
In the input, I've both sales order number and orderHeaderKey.
You should be able to use getOrderList call with a combination of documentType for Transfer Order and Derived_from_chained_order_header_key
Using below input you would be able to get all the transfer orders by invoking getOrderList api
<Order DocumentType="0006">
<OrderLine ChainedFromOrderHeaderKey="<SalesOrderHeaderKey>"/>
</Order>