How to get service price in GetReservationRS - sabre

I have booked a valid available service through Sabre PassengerDetailsRS and booking was successful. But in the GetReservationRS, price of the service is missing. How can we get that price. My GetReservationRQ was as below
<?xml version="1.0" encoding="UTF-8"?>
<ns7:GetReservationRQ xmlns:ns7="http://webservices.sabre.com/pnrbuilder/v1_19" Version="1.19.0">
<ns7:Locator>*pnr_number</ns7:Locator>
<ns7:RequestType>Stateful</ns7:RequestType>
<ns7:ReturnOptions PriceQuoteServiceVersion="3.2.0">
<ns7:SubjectAreas>
<ns7:SubjectArea>PRICE_QUOTE</ns7:SubjectArea>
</ns7:SubjectAreas>
<ns7:ViewName>Full</ns7:ViewName>
<ns7:ResponseFormat>STL</ns7:ResponseFormat>
</ns7:ReturnOptions>
</ns7:GetReservationRQ>
</soapenv:Body>
And in the response, that service is present which I booked in the booking step. But there is no pricing reference for that service, only the flight total price is present which is service excluded price
...
/SPORTING FIREARMS
WEAP BA NN1 LHRZRH0720N11AUG/SPORTING FIREARMS
I
BA
110.59
2019-06-16T13:03:00
. . .
How can I get the price of ode="WEAP" (<or114:FreeText>/SPORTING FIREARMS</or114:FreeText>)

you have to add ReturnOptions->SubjectArea->PRICE_QUOTE in GetReservationRQ
e.g:
<ReturnOptions PriceQuoteServiceVersion="3.2.0">
<SubjectAreas>
<SubjectArea>PRICE_QUOTE</SubjectArea>
</SubjectAreas>
</ReturnOptions>
for more details please have a look at below URL (Sabre Documentation)
`https://beta.developer.sabre.com/docs/soap_apis/management/itinerary`/Retrieve_Itinerary

I use GetPriceQuoteRQ after GetReservationRQ.
https://beta.developer.sabre.com/docs/soap_apis/air/fulfill/manage_price_quote_details

As this is an upsell for most airlines it falls under ancillary services - therefore to price them you should use: GetAncillaryOffersRQ

Related

how to update date of birth through 'Update Passenger Name Record' Sabre API

Im not able to update DOB through update PNR sabre api call, could someone help me to resolve this issue?
`-ns2:SpecialReqDetails
-ns2:SpecialService
-ns2:SpecialServiceInfo
-ns2:SecureFlight
-<ns2:PersonName NameNumber="1.1" Gender="M" DateOfBirth="1984-05-15">
ns2:GivenNameTest name</ns2:GivenName>
ns2:Surnametestsurname</ns2:Surname>
</ns2:PersonName>
</ns2:SecureFlight>
-ns2:SecureFlight
-<ns2:PersonName NameNumber="2.1" Gender="M" DateOfBirth="1990-07-11">
ns2:GivenNameTest givenname</ns2:GivenName>
ns2:SurnametestSurname</ns2:Surname>
</ns2:PersonName>
</ns2:SecureFlight>
</ns2:SpecialServiceInfo>
</ns2:SpecialService>
</ns2:SpecialReqDetails>`

ExtendedProperty is not available in the get event api response

We are working on Google Calendar Add-on and need some help regarding Add-on development.
• We used to set the key-value pair under “ExtendedProperty -> private” section of the event and read it on need basis. Earlier(a week back) “ExtendedProperty->private” used to be available but now, we are seeing that “ExtendedProperty” itself is not available in the event response. Whenever we are trying to fetch the key from the event response, error with message “Cannot read property "private" from undefined” occurred.
• Sample event response when extended property was available:
```{
"kind":"calendar#event",
"etag":"\"3109778738149000\"",
"id":"5s2qqbjgqghjo5611mndeb9p17",
"status":"confirmed",
"extendedProperties":{
"private":{
"everyoneDeclinedDismissed":"-1",
"Recurence":"Single"
}
},
"conferenceData":{ },
"reminders":{ }
}```
• Sample event response when extended property is not available:
{
"kind":"calendar#event",
"etag":"\"3132407561772000\"",
"id":"6o22abo31tj8f75j3tsueg5k5c",
"status":"confirmed,
"conferenceData":{ },
"reminders":{ }
}
• Sample code for reading/writing into the event response.
o Get: ```{Event_Response}.extendedProperties.private.Recurence
o Set:
 {Event_Response}.extendedProperties.private['Recurence'] = value
 Calendar.Events.patch(Event_Response, accountId, eventid)```
• Is there any change at API level occurred because get and set for the extended property was working properly earlier(a week back).

Are the XML APIs deprecated in Authorize.Net?

I heard that authorize.net has a new API. I use an API to manage recurring payments where I send XML requests of the form shown below (in PHP, i.e. $authnet_ etc . will be replaced by actual values). Is this deprecated?
<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<ARBCreateSubscriptionRequest xmlns= \"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">
<merchantAuthentication>
<name>$authnet_loginname</name>
<transactionKey>$authnet_transactionkey</transactionKey>
</merchantAuthentication>
<subscription>
<name>{$name}</name>
<paymentSchedule>
<interval>
<length>$length</length>
<unit>$unit</unit>
</interval>
<startDate>$startDate</startDate>
<totalOccurrences>$totalOccurrences</totalOccurrences>
</paymentSchedule>
<amount>$intern_amount</amount>
<payment>
<creditCard>
<cardNumber>$x_card_number</cardNumber>
<expirationDate>$expirationDate</expirationDate>
</creditCard>
</payment>
<order>
<invoiceNumber>$action_id</invoiceNumber>
<description>$description</description>
</order>
<customer>
<email>$x_email</email>
<phoneNumber> $x_phone </phoneNumber>
</customer>
<billTo>
<firstName>$intern_first_name</firstName>
<lastName>$intern_last_name</lastName>
<address>$intern_address</address>
<city>$intern_city</city>
<state>$intern_state</state>
<zip>$intern_zip</zip>
<country>$intern_country</country>
</billTo>
<shipTo>
<firstName>$intern_ship_to_first_name</firstName>
<lastName>$intern_ship_to_last_name</lastName>
<address>$intern_ship_to_address</address>
<city>$intern_ship_to_city</city>
<state>$intern_ship_to_state</state>
<zip>$intern_ship_to_zip</zip>
<country>$intern_ship_to_country</country>
</shipTo>
</subscription>
</ARBCreateSubscriptionRequest>
Authorize.Net did not deprecate XML formatted API requests. They work in parallel with the newer JSON format.
They still list it on their API Reference and documentation.

ElectronicHorizon Constructor AccessControlException using HERE-API

I receive the following error when calling the ElectronicHorizon constructor. I have the Freemium Premium SDK and I've already verified that the package name, app id, app code, and license key are correct. I am already successfully performing routing using CoreRouter. Is this behavior expected for a freemium account? Or is it an issue with my implementation
The following is called to start the MapEngine:
MapEngine.getInstance().init(appContext, onEngineInitListener);
In the OnEngineInitListener is defined the following:
#Override
public void onEngineInitializationCompleted(Error error) {
if (error == Error.NONE) {
ElectronicHorizon eh = new ElectronicHorizon();
} else {
}
}
The following is the offending code:
ElectronicHorizon eh = new ElectronicHorizon();
Error:
java.security.AccessControlException: Access to this operation is denied. Contact your HERE representative for more information.
at com.nokia.maps.MapAccessorImpl.<init>(MapAccessorImpl.java:55)
at com.here.android.mpa.electronic_horizon.MapAccessor.<init>(MapAccessor.java:28)
at com.here.android.mpa.electronic_horizon.ElectronicHorizon.<init>(ElectronicHorizon.java:114)
Please see https://developer.here.com/faqs#payment-subscription
Especially Point 4 in section "Licensing & Terms":
"What other limits apply to my Freemium or Pro plan?
The Electronic Horizon feature in the Premium Mobile SDK is excluded. Please contact us if you're interested in this feature."

Why getting "User is not allowed to perform this action" in PayPal Sandbox

I am POSTing the following message to https://svcs.sandbox.paypal.com/AdaptivePayments/Pay:
<?xml version="1.0" encoding="utf-16"?>
<PayRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<requestEnvelope>
<detailLevel>ReturnAll</detailLevel>
<errorLanguage>en_US</errorLanguage>
</requestEnvelope>
<clientDetails>
<ipAddress>127.0.0.1</ipAddress>
<deviceId>platformSDKDotNetSample</deviceId>
<applicationId>APP-80W284485P519543T</applicationId>
<customerType>Developer</customerType>
<partnerName>GreenDot</partnerName>
<customerId>GreenDot</customerId>
</clientDetails>
<actionType>PAY</actionType>
<cancelUrl></cancelUrl>
<currencyCode>USD</currencyCode>
<memo>MP ref 8050042402450937112</memo>
<receiverList>
<receiver>
<amount>5</amount>
<email>koseas#greendotcorp.com</email>
<primary>false</primary>
<invoiceId>123456</invoiceId>
<paymentType>PERSONAL</paymentType>
</receiver>
</receiverList>
<senderEmail>PersonalTestAccount#greendotcorp.com</senderEmail>
<returnUrl></returnUrl>
<trackingId>111111</trackingId>
<fundingConstraint>
<allowedFundingType>
<fundingTypeInfo>
<fundingType>RECEIVABLE</fundingType>
</fundingTypeInfo>
</allowedFundingType>
</fundingConstraint>
</PayRequest>
and getting this response:
<ns3:FaultMessage xmlns:ns3="http://svcs.paypal.com/types/common"
xmlns:ns2="http://svcs.paypal.com/types/ap">
<responseEnvelope>
<timestamp>2013-04-02T14:25:32.304-07:00</timestamp>
<ack>Failure</ack>
<correlationId>54974e7a32854</correlationId>
<build>5563463</build>
</responseEnvelope>
<error>
<errorId>550001</errorId>
<domain>PLATFORM</domain>
<subdomain>Application</subdomain>
<severity>Error</severity>
<category>Application</category>
<message>User is not allowed to perform this action</message>
<parameter>Sender is not allowed to perform this action</parameter>
</error>
</ns3:FaultMessage>
The sender email is the personal account I set up. It is verified and has balance of 5000 USD. The Card status is "Activatged". Why am I getting "User is not allowed to perform this action"?
Found this info in the API docs
Note: FundingConstraint is unavailable to API callers with standard
permission levels; for more information, refer to the section Adaptive
Payments Permission Levels.
If I remove the fundingConstraint node from the request, I get a successful response.
Is it possible to test requests requiring higher permsission levels in the sandbox?

Resources