2017-10-19 5 views
2

私は配送料金を取得しようとしています。ここ は私の要求です:DHL配送料

<?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>IN</DimensionUnit> 
    <WeightUnit>LB</WeightUnit> 

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

を変更したときに、私は出荷量を取得します。しかし、私はCMとKGの値を送る必要があります。私はエラーを把握するのを助けてください。

+0

CMを2.54、KG-LB * 2.21でINに簡単に変換できます。これは理想的ではありませんが、それでも同じ小包でなければなりません。 –

+0

@NigelRen dhl apiで作業したことがありますか、atleastタグについて少し知っていますか? –

+0

いいえ、しかし、私はアメリカでは帝国単位(インチとポンド)で扱う傾向があり、それはメートル法ではありません。 –

答えて

2

CMおよびKGユニットの最大重量制限を超過しているか、不適切な値を渡している可能性があります。

重量の値を小さくすると、10 KGで始まります。

関連する問題