UPS: Why TimeInTransit for UPS Freight API doesn't work? - api

Does anyone knows how to get Time In Transit for UPS Freight Shipping. In developers guide I found instructions to specify TimeInTransitIndicator option:
Presence of the tag indicates Time in Transit information is requested
and will be returned.
But there is no any /FreightRateResponse/TimeInTransit tag in UPS' response.
Also there is no such tag <xsd:element name="TimeInTransit" type="xsd:string" minOccurs="0"/> in FreightRateWebServiceSchema.xsd file from the UPS' developer's kit in response tag <xsd:element name="FreightRateResponse">
Does anyone know how to get TimeInTransit for Freight API? Would be glad for any help.

I asked UPS support and got the answer:
The < freightRate:TimeInTransit > will only be returned when posting a
request to the production URL.
Your key will need to be approved for production access for the Ground
Freight Rating API before you will be able to post successfully to the
production URL.
The .xsd files and WSDL in the developer tool kit are designed to
deliver this element in production without editing, so what you have
observed with the schema files is by design.
And this is example response with TimeInTransit tag from UPS support https://gist.github.com/antongorodezkiy/5973888

Related

eBay API - check Finding API calls count?

Thanks to that page: https://go.developer.ebay.com/api-call-limits we know that eBay allows up to 5000 requests per day per ebay developer account.
But - maybe somebody know - it is possible to check current usage (requests count) and usage history of that limit ?
I ran into this situation myself, and made a note to come back and answer this with the available options I found once I got my own API call limit exceeded errors resolved with the eBay developers program.
Monitor the limit in code) You can crudely monitor your daily usage against the 5000 per day limit using another eBay API - GetAPIAccessRules https://developer.ebay.com/devzone/xml/docs/Reference/eBay/GetApiAccessRules.html
<?xml version="1.0" encoding="utf-8"?>
<GetApiAccessRulesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>ABC...123</eBayAuthToken>
</RequesterCredentials>
</GetApiAccessRulesRequest>
Monitor the daily limit manually) You can more precisely check the API usage in your developer dashboard manually and determine how you are doing here - https://developer.ebay.com/DevZone/account/default.aspx
Just click on "API Reports" under either production or sandbox API sections to view the usage for a given time period.
Just raise the limit) You can submit and pass the eBay API compatibility check with your app and get the 5000 per day limit raised to up to 1.5M calls per day. That process is described here - https://go.developer.ebay.com/compatible-application-check-and-checklist-going-live
This eBay developer technical support link may help also - https://ebaydts.com/eBayKBDetails?KBid=439

How can I deep link into QuickBooks Online with results from API calls that don't include the txnId

QuickBooks Online (QBO) uses a URL format like qbo.intuit.com/app/timeactivity?txnId=123 to point to, in this example, a TimeActivity.
However, in the API, resources are referenced by entityId (returned as just Id when querying via the TimeActivity API), which is different from txnId.
In my time tracking web app, I have a feature that exports time to QBO as TimeActivities. I'd like to provide users with direct links from the time entered in my app to the corresponding TimeActivity in QBO—is there any way to do so?
The answer to this is that it's not currently possible because there's multiple base URLs (I think they call them "realms") in use for QuickBooks Online (qbo.intuit.com is only one of them). Because you do not receive this information as part of linking to QBO via OAuth, there's unfortunately no way to construct proper links.
Yes, when creating a successful TimeActivity you will receive back an Id, which I assume you are persisting.
That Id can be used to query QBO in a simple GET request.
<baseURL>/company/{companyID}/timeactivity/{timeactivityId}

OFX commands for retrieving pending transactions?

I am using an OFX download function written in Python similar to ofxclient to download bank and credit card transactions. However, it only retreives posted transactions, not ones that are in progress. This results in the account infomation frequently being out of date by a day or more. I realize these pending transactions could be temporary (holds, etc.) But most of the time they turn into permanent transactions after they post or drop. But is there some different OFX command I can use to request pending transactions, with the understanding that they are subject to change? It is possible to see them from the web site of every financial institution I have tried, but trying to scrape web sites is out of the question and OFX I though was designed to avoid the need for such non-standard procecures.
Try the <INCLUDEPENDING> flag; see OFX Spec 2.2 - 2017, page 207.
It defaults to N. So, try:
<INCLUDEPENDING>Y
Note: The backend server must support this feature, which is available with OFX 2.2 (VERSION:220).

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

How to complete purchase with eBay trading API

I was able to make an offer using PlaceOfferRequest (XML). What should I do in order to complete the purchase and update the shipping address to where he/she should ship the Item?
I'm using XML in order to post the request.
While I can't find any official resource stating that completing purchases isn't possible, I'm 99% sure that its simply not possible. All you can do is redirect the user to the payments page, using this template for the URL:
http://payments.${DOMAIN}/ws/eBayISAPI.dll?CheckoutProcessor&item=${Item.ItemID}&transactionId=${TransactionID}
Where DOMAIN could be, for example, "sandbox.ebay.de" or just "ebay.com".