drsrq26482 2010-02-04 20:03
浏览 72
已采纳

未记载的UPS API问题

At work, I'm working on including UPS integration for our product's shopping cart. I'm currently using the documented API, which supplies WSDLs. To use this API, you need a username, password and API key (our customers who use the cart for their business will have to provide this information).

There is another (undocumented) API for calculating shipping rates at:

http://www.ups.com/using/services/rave/qcostcgi.cgi

I've noticed a lot of sites using it, but I cannot seem to find any documentation for it. It also seems to be extremely old (I think it dates from the early '00s). It doesn't perform any sort of authentication so you can use it to get a quick quote. We were thinking of using this API so that our customers can use it to get a quick quote without jumping through hoops to get a UPS username, password, and API Key. My gut feeling tells me that I probably shouldn't rely on an undocumented API that can possibly go offline any day. I've also read posts where the tool calculates rates incorrectly (compared to the documented API). I haven't verified this (plan to do that next).

I just wanted to see if anyone here knew anything about it or had any documentation for it.

UPDATE:

After a quick test, it appears that the values are incorrect. For a 150 lb. package that's shipped from Hoboken, NJ to Chandler, AZ via 2nd Day Air, the documented API reports a total cost of $622.56 whereas the CGI reports a total cost of $495.18. So there is some discrepancy.

  • 写回答

1条回答 默认 最新

  • doubi4617 2010-02-04 20:09
    关注

    I've seen it/used it in osCommerce. Check there and here for examples, if you still want to pursue this solution.

    Your gut feeling is right - you're better off using something documented/supported. No telling if/when they'll pull the plug on qcostcgi.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?