dourang20110122 2013-09-19 13:44
浏览 77

从UPS API获取实际包装重量

Is anybody here familiar with the UPS API? I'm trying to figure out how to get the actual package weight from when UPS scanned in the package, I'm using the UPS Tracking api, below I have an example output from the API.

My problem is, it shows the weight that was entered when you created the shipping label and not the actual weight of the package.

Any ideas?

Array
(
    [TRACKRESPONSE] => Array
        (
            [RESPONSE] => Array
                (
                    [TRANSACTIONREFERENCE] => Array
                        (
                            [XPCIVERSION] => 1.0
                        )

                    [RESPONSESTATUSCODE] => 1
                    [RESPONSESTATUSDESCRIPTION] => Success
                )

            [SHIPMENT] => Array
                (
                    [SHIPPER] => Array
                        (
                            [SHIPPERNUMBER] => XXXXX
                            [ADDRESS] => Array
                                (
                                    [ADDRESSLINE1] => 1 Main St.
                                    [CITY] => Sometown
                                    [STATEPROVINCECODE] => XX
                                    [POSTALCODE] => 0000   0000
                                    [COUNTRYCODE] => US
                                )

                        )

                    [SHIPTO] => Array
                        (
                            [ADDRESS] => Array
                                (
                                    [CITY] => SOMECITY
                                    [STATEPROVINCECODE] => XX
                                    [POSTALCODE] => 00000
                                    [COUNTRYCODE] => US
                                )

                        )

                    [SHIPMENTWEIGHT] => Array
                        (
                            [UNITOFMEASUREMENT] => Array
                                (
                                    [CODE] => LBS
                                )

                            [WEIGHT] => 33.00
                        )

                    [SERVICE] => Array
                        (
                            [CODE] => 003
                            [DESCRIPTION] => GROUND
                        )

                    [SHIPMENTIDENTIFICATIONNUMBER] => 1ZAXXXXXXXXXXXXXX
                    [PICKUPDATE] => 20130917
                    [PACKAGE] => Array
                        (
                            [TRACKINGNUMBER] => 1ZAXXXXXXXXXXXXXX
                            [ACTIVITY] => Array
                                (
                                    [ACTIVITYLOCATION] => Array
                                        (
                                            [ADDRESS] => Array
                                                (
                                                    [CITY] => SOMECITY
                                                    [STATEPROVINCECODE] => XX
                                                    [POSTALCODE] => 00000
                                                    [COUNTRYCODE] => US
                                                )

                                            [CODE] => M7
                                            [DESCRIPTION] => RECEIVER
                                            [SIGNEDFORBYNAME] => SOMEONE
                                        )

                                    [STATUS] => Array
                                        (
                                            [STATUSTYPE] => Array
                                                (
                                                    [CODE] => D
                                                    [DESCRIPTION] => DELIVERED
                                                )

                                            [STATUSCODE] => Array
                                                (
                                                    [CODE] => KB
                                                )

                                        )

                                    [DATE] => 20130918
                                    [TIME] => 120100
                                )

                            [PACKAGEWEIGHT] => Array
                                (
                                    [UNITOFMEASUREMENT] => Array
                                        (
                                            [CODE] => LBS
                                        )

                                    [WEIGHT] => 33.00
                                )

                        )

                )

        )

)
  • 写回答

1条回答 默认 最新

  • dphs48626 2013-09-19 13:57
    关注

    UPS doesn't output a scanned weight of the package, sorry but you just won't be able to show data they don't provide in their API.

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法