gpt4 book ai didi

php - DHL 运费

转载 作者:行者123 更新时间:2023-12-04 14:25:16 25 4
gpt4 key购买 nike

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

<?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 和 KG 单位值。

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

关于php - DHL 运费,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46836420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com