Magento - UPS 运输退货错误“服务代码缺失或无效”

发布于 2024-12-20 05:22:44 字数 387 浏览 2 评论 0原文

我正在 Magento 安装中配置 UPS 运输,并且当我处理运输订单(将产品添加到包裹等)时 - 点击“确定”生成运输标签后,出现错误“缺少或无效服务”返回代码”。我尝试过更改包裹类型、重量、递送确认选项 - 所有这些都给出相同的结果。 UPS 运输方式配置中的网关 URL 设置为 http://www.ups .com/using/services/rave/qcostcgi.cgi。请参阅附图以获取错误消息。预先感谢您提供的任何见解!

错误消息截图

I'm configuring UPS shipping in a Magento installation and when I'm processing an order for shipment (adding products to pack!age, etc.) - after hitting "OK" to generate a shipping label, the error "Missing or invalid service code" is returned. I've tried changing the package type, weight, delivery confirmation options - all give the same result. The gateway URL in the UPS shipping method configuration is set to http://www.ups.com/using/services/rave/qcostcgi.cgi. See attached image for error message. Thanks in advance for any insight that could be provided!

error message screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

口干舌燥 2024-12-27 05:22:44

以下是有效服务代码的列表(针对运输包裹):

01 = Next Day Air
02 = 2nd Day Air
03 = Ground
07 = Express
08 = Expedited
11 = UPS Standard
12 = 3 Day Select
13 = Next Day Air Saver
14 = Next Day Air Early AM
54 = Express Plus
59 = 2nd Day Air A.M.
65 = UPS Saver
82 = UPS Today Standard
83 = UPS Today Dedicated Courier
84 = UPS Today Intercity
85 = UPS Today Express
86 = UPS Today Express Saver

以下是有效服务代码的列表(针对运输货运):

308 = UPS Freight LTL 
309 = UPS Freight LTL – Guaranteed 
334 = UPS Freight LTL - Guaranteed A.M. 
349 = UPS Standard LTL

Here is a list of valid services codes (for Shipping Packages):

01 = Next Day Air
02 = 2nd Day Air
03 = Ground
07 = Express
08 = Expedited
11 = UPS Standard
12 = 3 Day Select
13 = Next Day Air Saver
14 = Next Day Air Early AM
54 = Express Plus
59 = 2nd Day Air A.M.
65 = UPS Saver
82 = UPS Today Standard
83 = UPS Today Dedicated Courier
84 = UPS Today Intercity
85 = UPS Today Express
86 = UPS Today Express Saver

Here is a list of valid services codes (for Shipping Freight):

308 = UPS Freight LTL 
309 = UPS Freight LTL – Guaranteed 
334 = UPS Freight LTL - Guaranteed A.M. 
349 = UPS Standard LTL
林空鹿饮溪 2024-12-27 05:22:44

我想我会为此给出我的答案,因为我最近遇到了这个问题,这是我能找到的唯一真正引用这个问题的问题,而且答案并不是明确的解决方案。

为了让 UPS 生成运输标签,您需要在配置中使用 XML API 对其进行设置。如果未使用 XML API 设置并且通过地面运输下达订单,则在数据库中为该订单设置的服务代码为“ups_GND”。然而,XML API 正在寻找“ups_03”的服务代码。由于这是针对表 sales_flat_order 字段 shipping_method 下的订单进行设置的,因此对 XML API 的所有请求都将使用错误的服务代码。前面的答案给出的服务代码列表是正确的,您只需将“ups_”后面的部分替换为正确的数字即可。一旦您切换到 XML API,所有订单都将具有正确的代码。

希望这将为任何想要解决此问题的人提供更多指导。

I thought I would throw in my answer for this, since I ran into this problem recently and this is the only question really referencing this that I could find, and the answer is less than definitive with a solution.

For UPS to generate shipping labels, you need to have it set up with the XML API in your configuration. When it is not set up with the XML API and an order is placed with ground shipping, the service code that gets set in the database for the order is "ups_GND". The XML API however is looking for a service code of "ups_03". Since this is set for the order in the table sales_flat_order under the field shipping_method, all of the requests to the XML API are going to use the wrong service code. The list of service codes that the previous answer gives are correct, you just have to replace the part after "ups_" with the correct number. Once you switch to the XML API, all orders will have the correct code.

Hopefully this will give a little more instruction for anyone looking to impliment a fix for this issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文