首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DHL船运费

DHL船运费
EN

Stack Overflow用户
提问于 2017-10-19 18:18:40
回答 1查看 4.2K关注 0票数 3

我在试着收取运费。以下是我的要求:

代码语言:javascript
复制
<?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>

我发现了一个错误:

代码语言:javascript
复制
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.

但当我改变

代码语言:javascript
复制
  <DimensionUnit>CM</DimensionUnit>
  <WeightUnit>KG</WeightUnit>

代码语言:javascript
复制
  <DimensionUnit>IN</DimensionUnit>
  <WeightUnit>LB</WeightUnit>

我拿到运费了。但是我需要发送CM和KG的值。请帮我找出错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-01-30 19:14:08

其中一个原因可能是,您超过了最大重量限制或通过一个不正确的值为CM和KG单位。

增加一个较低的重量值,从10公斤开始。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46836420

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档