UPS Rates API - International shipping - api

I have an implementation for shipping working for US shipping, however I am unable to get this implementation to work with international shipping. I am using the shipping codes 07, 08, 54, and 55 but am getting the error
"111210 The requested service is unavailable between the selected locations.".
I dont get this error when I enter a ship to address in the US. I have tried Spain and Mexico.
Does the rates API support international shipping? Is there anything different that needs to be done or passed in to get international shipping rates to work?

After posting my comment to OP I found the solution I was looking for. In case anyone else encounters this post while researching this problem here's what worked for me:
In your request, for Service Code, use one of the Worldwide codes. I used 65 (UPS Worldwide Saver) for my specific needs.
Hope that helps someone in the future!

Related

Does anyone know of a global tax rate API that includes all countries?

I was wondering if anyone can help me?
I have been searching for an API for merchant tax rates that includes all countries. I need to be able to state and apply any and all tax rates from one country to another but am having some difficulty finding one that fits the criteria.
The selling/dispatch destination needs to be able to be customisable/changeable and I need to be able to choose any country I want sell to.
The API needs to be compatible with PHP 7.
I have tried looking for an API that covers this but the only one I found and reached out to has not replied and it has been a while since the first request.
Thanks

Unable to ADD Indian Payment Method in Whatsapp Business API using Payment Methods (https://developers.facebook.com/)

I have read the document regarding payments and also raised the customer support ticket in Meta for Developers(Developer Support) and find the relevant question but I didn't get the proper solution on how to add Indian Payment Method.
Does anyone know anything about adding payment method in India? Any help would be appreciated.
Latest Update:
WhatsApp Business API has launched payment support in India country from 20 Oct 2022,
https://developers.facebook.com/docs/whatsapp/business-platform/changelog#october-20--2022
Note: Your location and currency cannot be changed once set, refer to the documentation
There is no India country on the Payment settings page, see the available countries,
First Step
But you can try selecting a random country and you will see the INR currency,
Second Step

On-Demand Flight Status | Gate Information not working

using the Java SDK, trying to use the On-Demand Flight Status API will result in following error, if a Gate is specified:
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $[0].flightPoints[0].departure.gate
From the documentation I assume that gate should be a JSONObject with the mainGate attribute, but apparently it has been encoded as a JSONArray in the SDK.
I would be grateful about some feedback on this. Maybe I am doing something wrong?
Thanks!
P.S.
If I may add some suggestions:
Would it be possible to make segments.partnership return the flight number of the operating carrier, if the search is done with a codeshare flight? Currently it seems to just return 0, if a codeshare flight number is entered. (e.g. searching for A37136 will return OA0, instead of OA136). Also, it would be great if segments.partnership was to return all codeshare flight numbers for particular flight, and not only one.
The possibility to access fare rules from Flight Offers would be great as well. I understand that displaying fares between two cities is a feature of the Enterprise API (which I probably am not eligible to use), but it would be great to be able to see data, such as Travel and Sales restrictions like these:
VALID FOR TRAVEL COMMENCING ON/AFTER 20SEP 21 AND ON/BEFORE 10MAR 22.
TICKETS MUST BE ISSUED ON/BEFORE 29SEP 21.
As always, thank you for your work!
Below you can find the answers on the topics mentioned in your questions:
Java SDK - gate info not working
Thanks for the report, we've opened the issue on GitHub where you can track its status.
Flight Fare rules
The fare rules can be found for each flight with the Flight Offers Price API where you would have to add the query parameter include=detailed-fare-rules your URL, such as:
https://test.api.amadeus.com/v1/shopping/flight-offers/pricing?include=detailed-fare-rules
Operating carrier in codeshare flight
Indeed with the specific flight doesn't return properly the operating carrier flight number, however, we tested it with other codeshare flights and it worked fine. It seems that the issue is coming directly from the providers and the data they share.
Return all codeshare flight numbers
This is not possible from the legal point of view, as it means it would expose the partnerships and private business between the airlines.

UPS Test Tracking Numbers (is there a such thing?)

I finally got the UPS tracking API to work. Or atleast I think I do. It is giving me a 'invalid tracking number' response. My problem right now is I have no packages to track. Does anyone know of any resources that allow me to test fake orders from UPS, or anything that will give a response ? Thanks
I am using the UPS Tracking Developers Kit and need package resposnes.
Here's an update in case someone comes across this as I did.
The below data is taken from the Tracking Web Service Developer Guide (January 9, 2017).
You should be able to access it from the UPS Developer Kit download page. There's a section called Download the API with a link to download Tracking.zip. The developer guide is located at Tracking.zip\Tracking\Developers Guide\Tracking Web Service Developer Guide.pdf The table is located on page 7.
"Type","Value","Option","Service","Response"
"Tracking","1Z12345E0205271688\n(Signature Availability)","Activity (All)","2nd Day Air","Delivered"
"Tracking","1Z12345E6605272234","None (Last)","World Wide Express","Delivered"
"Shipping","1Z12345E0305271640\n(Second Package:\n1Z12345E0393657226)","None (Last)","Ground","Delivered"
"Tracking","1Z12345E1305277940","None (Last)","Next Day Air Saver","ORIGIN SCAN"
"Tracking","1Z12345E6205277936","Activity (All)","Next Day Air Saver","2nd Delivery attempt"
"Tracking","1Z12345E020527079","None (Last)",,"Invalid Tracking Number"
"Tracking","1Z12345E1505270452","None (Last)",,"No Tracking Information Available"
"Tracking",990728071,"Activity (All)","UPS Freight LTL","In Transit"
"Tracking",3251026119,"Activity (All)",,"Delivered Origin CFS"
"MI Tracking Number",9102084383041101186729,"None (Last)",,
"MI Reference Number","cgish000116630","None (Last)",,
"Tracking","1Z648616E192760718","Activity","UPS Worldwide Express Freight","Order Process by UPS"
"Tracking",5548789114,"Activity","UPS Express Freight","Response for UPS Air Freight"
"Tracking","ER751105042015062","Activity","UPS Ocean","Response for UPS Ocean Freight"
"Tracking","1ZWX0692YP40636269","Activity","UPS SUREPOST","Response for UPS SUREPOST"
Hope that helps the next person to come along :)
You can use production tracking numbers on the UPS test environment. Moreover, on the Appendix H of the Tracking Web Service Developers Guide (December 31, 2012), you can find a list of tracking numbers that can be useful if you want see tracking numbers with different set of information like proof of delivery.
Best!
These were taken from the July 11, 2016, UPS Tracking Tracking Web Service Developer Guide, pg. 13.
TRACKING NUMBER, SERVICE, RESPONSE
1Z12345E0205271688 (Signature Availability), 2nd Day Air, Delivered
1Z12345E6605272234, World Wide Express, Delivered
1Z12345E0305271640, (Second Package: 1Z12345E0393657226), Ground, Delivered
1Z12345E1305277940, Next Day Air Saver, ORIGIN SCAN
1Z12345E6205277936, Day Air Saver, 2nd Delivery attempt
1Z12345E020527079, Invalid Tracking Number
1Z12345E1505270452, No Tracking Information Available
990728071, UPS Freight LTL, In Transit
3251026119, Delivered Origin CFS
MI Tracking Number: 9102084383041101186729
MI Reference Number: cgish000116630
1Z648616E192760718, UPS Worldwide Express Freight, Order Process by UPS
5548789114, UPS Express Freight, Response for UPS Air Freight
ER751105042015062, UPS Ocean, Response for UPS Ocean Freight
1ZWX0692YP40636269, UPS SUREPOST, Response for UPS SUREPOST

does paypal provide services for getting sales tax w.r.t zip code for US?

I am using paypal for my payments, i wanted to include the tax thing w.r.t zip code. like when customer enters the zip code i could get the sales tax percentage w.r.t that zip code. I believe there will be any way of it in paypal but unfortunately i couldn't find that. kindly guide me in this regard, thanks
You can use a 3rd party service like http://zip2tax.com/
I think there is also a service on Paypal where you can input the zip code range or US State and tax amount for that area, (but I think it only works with paid Paypal account Website Payments Pro).
Also have a look at: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_ProfileAndTools#id08A9ED00LTU