【问题标题】:DHL Shipping ChargesDHL 运费
【发布时间】:2018-03-31 21:02:30
【问题描述】:

我正在尝试收取运费。 这是我的要求:

<?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>

我收到错误:

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.

但是当我改变时

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

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

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

【问题讨论】:

  • CM 乘以 2.54,KG-LB *2.21 即可轻松将其转换为 IN。知道这并不理想,但仍然应该是同一个包裹。
  • @NigelRen 你有没有研究过 dhl api 或者至少对标签有点了解?
  • 不,但我知道在美国他们倾向于使用英制单位(英寸和磅)而不是公制。
  • 好的,谢谢你的帮助 :) @NigelRen

标签: php xml opencart dhl


【解决方案1】:

其中一个原因可能是您超过了最大重量限制或传递了错误的 CM 和 KG 单位值。

为重量添加一个较低的值,从 10 KG 开始。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-05-05
    • 2018-12-26
    • 1970-01-01
    • 2014-09-12
    • 2019-03-16
    • 2021-10-31
    • 2022-07-18
    相关资源
    最近更新 更多