【问题标题】:USPS Shipping API Standard Post Machinable tagUSPS Shipping API 标准邮政可加工标签
【发布时间】:2019-04-09 20:16:21
【问题描述】:

好的,所以我几天来一直在尝试弄清楚如何使用 USPS 运输 API 来获取“标准邮政”服务下包裹的运费。我可以发送媒体邮件、优先邮件和头等邮件,但每次我尝试发送“标准邮件”时都会收到此错误:

服务类型 Retail Gound 和服务类型 All 的可加工值必须为“真”或“假”。

如果我随后添加 True 或 False,我现在会收到此错误:

元素“Package”具有无效的子元素“Machinable”。预期的可能元素列表:'ZipOrigination'。

这是我一直在玩弄的请求:

https://secure.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="(omitted)">

<Package ID="standard"> 
<Service>Standard Post</Service> 
<FirstClassMailType>PARCEL</FirstClassMailType>
<Machinable>True</Machinable>
<ZipOrigination>44121</ZipOrigination> 
<ZipDestination>99352</ZipDestination> 
<Pounds>6</Pounds> 
<Ounces>8</Ounces> 
<Container>VARIABLE</Container> 
<Size>LARGE</Size> 
<Width>17</Width> 
<Length>13</Length> 
<Height>11</Height> 
<Girth>1</Girth> 
</Package>


</RateV4Request> 

【问题讨论】:

    标签: api email shipping usps postal


    【解决方案1】:

    试试这个示例请求:

    XML=<RateV4Request USERID=""><Revision>3</Revision><Package ID="0"><Service>PRIORITY</Service><ZipOrigination>22201</ZipOrigination><ZipDestination>26301</ZipDestination><Pounds>8</Pounds><Ounces>2</Ounces><Container></Container><Width>2</Width><Length>3</Length><Height>5</Height><Girth>1</Girth><Machinable>FALSE</Machinable></Package></RateV4Request>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-31
      • 1970-01-01
      相关资源
      最近更新 更多