0

UPS API に詳しい人はいますか? UPS が荷物をスキャンしたときに実際の荷物の重量を取得する方法を見つけようとしています。UPS 追跡 API を使用しています。API からの出力例を以下に示します。

私の問題は、パッケージの実際の重量ではなく、配送ラベルを作成したときに入力した重量が表示されることです。

何か案は?

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
                                )

                        )

                )

        )

)
4

1 に答える 1

1

UPS はパッケージのスキャンされた重量を出力しません。申し訳ありませんが、API で提供されていないデータを表示することはできません。

于 2013-09-19T13:57:55.580 に答える