我正在尝试使用 Shippo 获取要在美国境内发送的 USPS 运输标签,但似乎无法显示任何费率

Posted

技术标签:

【中文标题】我正在尝试使用 Shippo 获取要在美国境内发送的 USPS 运输标签,但似乎无法显示任何费率【英文标题】:I'm trying to use Shippo to get a USPS shipping label to send within the US, but can't seem to get any rates to appear 【发布时间】:2015-11-20 04:11:44 【问题描述】:

这是我的要求:

地址来自:

Array(
[name] => Mr.John
[street1] => 1234 Market Street
[city] => San Francisco
[zip] => 95432
[state] => CA
[phone] => +1 415 123 1234
[email] => mrjohn+test@gmail.com
[country] => US
[object_purpose] => QUOTE
[company] => Shippo

)

地址:

Array(
[name] => Ms. Jane
[street1] => 1234 Mission Street
[city] => San Francisco
[zip] => 91234
[state] => CA
[phone] => +1 415 234 2345
[email] => msjane+test@gmail.com
[country] => US
[object_purpose] => QUOTE
[street2] =>
[company] =>

)

自定义项目:

Shippo_Object Object(
[_apiKey:protected] => xxxx
[_values:protected] => Array (
    [object_created] => [date]
    [object_updated] => [date]
    [object_id] => xxxxx
    [object_owner] => sender+test@gmail.com
    [object_state] => VALID
    [description] => IPhone 6
    [quantity] => 1
    [net_weight] => 3
    [mass_unit] => lb
    [value_amount] => 450
    [value_currency] => USD
    [origin_country] => US
    [tariff_number] =>
    [metadata] => Order ID #123123
)
[_unsavedValues:protected] => Shippo_Util_Set Object (
    [_elts:Shippo_Util_Set:private] => Array (
    )
)
[_transientValues:protected] => Shippo_Util_Set Object (
    [_elts:Shippo_Util_Set:private] => Array (
        )
)
[_retrieveOptions:protected] => Array (
)

)

定制运输:

   Shippo_Object Object( 
[_apiKey:protected] => xxxx
[_values:protected] => Array ( 
    [object_created] => [date]
    [object_updated] => [date]
    [object_id] => xxxxx
    [object_owner] => sender+test@gmail.com
    [object_state] => VALID 
    [certify_signer] => Mr. John
    [certify] => 1 [items] => Array ( 
        [0] => xxxx 
        ) 
    [non_delivery_option] => ABANDON 
    [contents_type] => MERCHANDISE 
    [contents_explanation] => IPhone 6 
    [exporter_reference] => 
    [importer_reference] => 
    [invoice] => #123123 
    [commercial_invoice] => 
    [license] => 
    [certificate] => 
    [notes] => 
    [eel_pfc] =>  
    [aes_itn] => 
    [disclaimer] => 
    [incoterm] => 
    [metadata] => Order ID #123123 
) 
[_unsavedValues:protected] => Shippo_Util_Set Object ( 
    [_elts:Shippo_Util_Set:private] => Array ( 
    ) 
) 
[_transientValues:protected] => Shippo_Util_Set Object ( 
    [_elts:Shippo_Util_Set:private] => Array ( 
    ) 
) 
[_retrieveOptions:protected] => Array ( 
    )
)

我错过了什么吗?我已经填写了 address_to、address_from、custom item 和 custom shipping。

【问题讨论】:

另外,请求中只是“重量”而不是“净重量”吗? 【参考方案1】:

我是七宝队的!

您通话中的一切似乎都很好。请仔细检查您的 USPS 帐户是否已激活 - 您可以通过 Carrier Accounts Endpoint 或直接在 Carriers Page 上进行编辑。

由于货件是国内货件,您无需添加“海关物品”或“海关运输”信息。您只应在创建国际货件时提供此信息。

从每个电话号码中删除 +1,这不是必需的,并且可能会导致问题。

希望这会有所帮助。

【讨论】:

以上是关于我正在尝试使用 Shippo 获取要在美国境内发送的 USPS 运输标签,但似乎无法显示任何费率的主要内容,如果未能解决你的问题,请参考以下文章

使用 Swift 访问 Shippo API 返回未记录的错误

Shippo API 导入错误

Shippo:在其他函数中使用生成的交易的 label_url 变量

使用 Shippo 和 PHP 制作运输标签

Shippo api不返回活跃运营商的所有费率[关闭]

在 Shippo 中创建 Shipment 对象会返回处于 Queued 状态的对象