2017-10-19 8 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>CM</DimensionUnit> 
    <WeightUnit>KG</WeightUnit> 

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

에 나는 선적 양을 얻을 여기 내 요청입니다 . 그러나 저는 CM과 KG에서 그 가치를 보낼 필요가 있습니다. 오류를 찾아 내도록 도와주세요.

+0

CM을 2.54, KG-LB * 2.21로 곱하면 쉽게 CM을 IN으로 변환 할 수 있습니다. 이것은 이상적은 아니지만 여전히 동일한 소포 여야 함을 알아야합니다. –

+0

@NigelRen dhl api에서 일했거나 atleast에서 태그에 대해 조금 알고 있습니까? –

+0

아니요,하지만 저는 미국에서 제국 단위 (인치와 파운드)를 다루는 경향이 있지만 미터법은 아닙니다. –

답변

2

최대 무게 제한을 초과하거나 CM 및 KG 단위에 대해 잘못된 값을 전달할 수있는 이유 중 하나가 있습니다.

무게에 더 낮은 값을 더하고 10 KG로 시작하십시오.