duanji1924 2017-10-19 18:18
浏览 177
已采纳

DHL运费

I am trying to get the shipping charges. Here is my request:

<?xml version="1.0" encoding="utf-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes"  xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
  <GetQuote>
    <Request>
      <ServiceHeader>
        <MessageTime>2017-10-20T11:28:56.000-08:00</MessageTime>
        <MessageReference>pukka301934229934707056790226292</MessageReference>
        <SiteID>******</SiteID>
        <Password>******</Password>
      </ServiceHeader>
    </Request>
    <From>
      <CountryCode>DE</CountryCode>
      <Postalcode>10717</Postalcode>
      <City>BERLIN</City>
    </From>
    <BkgDetails>
      <PaymentCountryCode>DE</PaymentCountryCode>
      <Date>2017-10-19</Date>
      <ReadyTime>PT9H</ReadyTime>
      <DimensionUnit>CM</DimensionUnit>
      <WeightUnit>KG</WeightUnit>
      <Pieces>
        <Piece>
          <PieceID>1</PieceID>
          <Height>30</Height>
          <Depth>30</Depth>
          <Width>30</Width>
          <Weight>250</Weight>
        </Piece>
       </Pieces>
      <IsDutiable>Y</IsDutiable>
    </BkgDetails>
    <To>
      <CountryCode>US</CountryCode>
      <Postalcode>60603</Postalcode>
      <City>CHICAGO</City>
    </To>
    <Dutiable>
      <DeclaredCurrency>EUR</DeclaredCurrency>
      <DeclaredValue>90</DeclaredValue>
    </Dutiable>
  </GetQuote>
</p:DCTRequest>

I am getting the error:

The requested Global Product Code and Local Product Code is not available based on origin country DE postal location and destination country US postal location for payment country DE. 
Please make sure data entered is valid before proceeding or contact our customer service.

But when I change

  <DimensionUnit>CM</DimensionUnit>
  <WeightUnit>KG</WeightUnit>

to

  <DimensionUnit>IN</DimensionUnit>
  <WeightUnit>LB</WeightUnit>

I get the shipping amount. But I need to send the value in CM and KG. Please help me figure out the error.

  • 写回答

1条回答 默认 最新

  • doutun9179 2018-01-30 19:14
    关注

    One of the reasons could be that you are exceeding the maximum weight limit or passing an incorrect value for the CM and KG units.

    Add a lower value for the weight, start with 10 KG.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 基于作物生长模型下,有限水资源的最大化粮食产量的资源优化模型建立
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo
  • ¥15 科来模拟ARP欺骗困惑求解
  • ¥100 iOS开发关于快捷指令截屏后如何将截屏(或从截屏中提取出的文本)回传给本应用并打开指定页面
  • ¥15 unity连接Sqlserver
  • ¥15 图中这种约束条件lingo该怎么表示出来
  • ¥15 VSCode里的Prettier如何实现等式赋值后的对齐效果?
  • ¥15 流式socket文件传输答疑
  • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式