FedEx 和 UPS 追踪 API
任何熟悉 FedEx 或 UPS API 的人。 是否可以计算包裹的“保证送达日期”? 我希望能够判断包裹是否迟到。
谢谢
Anyone familiar with either the FedEx or UPS APIs. Is it possible to calculate the "guaranteed delivery date" of a package. I want to be able to tell if a package arrived late.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用跟踪 API,响应将包含 XML 格式的信息。 我认为该属性是“OrderStatus”,“Delivered”的代码是“011”。 您应该下载 UPS Shipping API 并阅读 Track 规范和示例。
至于“保证交货日期”,似乎仅适用于 UPS Freight LTLGuaranteed(大多数 UPS 选项不保证),但是您可以比较
/TrackResponse/Shipment/* *ScheduledDeliveryDate**
(和时间)到/TrackResponse/Shipment/DeliveryDetails/**DeliveryDate**/Date
。而且,似乎可以得出这样的结论:如果装运有保证日期,则计划日期应等于交货日期。
You have to use the Tracking API and the response will contain this information formatted in XML. I think the property is 'OrderStatus', and the code for Delivered is '011'. You should download the UPS Shipping API and read the Track specifications and examples.
As far as the 'guaranteed delivery date', it seems to only be available for UPS Freight LTL Guaranteed (most UPS options does not guarantee) You can however compare the
/TrackResponse/Shipment/**ScheduledDeliveryDate**
(and Time) to the/TrackResponse/Shipment/DeliveryDetails/**DeliveryDate**/Date
.And, it seems to follow that if the shipment has a guaranteed date, then Scheduled date should equal the Delivery Date.