• Resolved kisielk

    (@kisielk)


    Hello,

    I got our credentials from DHL and am trying to use the plugin, but am having an issue getting any shipping rates returned. Here’s the request and response (credentials have been anonymized):

    
    <?xml version="1.0" encoding="UTF-8"?>
    <p:DCTRequest xmlns:p="https://www.dhl.com" xmlns:p1="https://www.dhl.com/datatypes" xmlns:p2="https://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.dhl.com DCT-req.xsd ">
      <GetQuote>
        <Request>
    		<ServiceHeader>
    			<MessageTime>2016-09-22T17:50:40</MessageTime>
    			<MessageReference>1234567890123456789012345678901</MessageReference>
    			<SiteID>XXXXX</SiteID>
    			<Password>XXXXX</Password>
    		</ServiceHeader>
        </Request>
        <From>
    	  <CountryCode>CA</CountryCode>
    	  <Postalcode>V5A2H5</Postalcode>
        </From>
        <BkgDetails>
          <PaymentCountryCode>CA</PaymentCountryCode>
          <Date>2016-09-22</Date>
          <ReadyTime>PT10H21M</ReadyTime>
          <DimensionUnit>IN</DimensionUnit>
          <WeightUnit>LB</WeightUnit>
          <Pieces>
    		<Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>1</Height><Depth>6</Depth><Width>6</Width><Weight>0.141</Weight></Piece>
    	  </Pieces>
    	  <PaymentAccountNumber>XXXXXX</PaymentAccountNumber>
    	  <IsDutiable>N</IsDutiable>
    	  <NetworkTypeCode>AL</NetworkTypeCode>
              
    	  
    	  </BkgDetails>
        <To>
          <CountryCode>CA</CountryCode>
    	  <Postalcode>V5N1J8</Postalcode>
        </To>
    	
      </GetQuote>
    </p:DCTRequest>
    
    
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse
    xmlns:res='https://www.dhl.com'
    xmlns:xsi='https://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation=
    'https://www.dhl.com
    DCT-Response.xsd'><GetQuoteResponse><Response><ServiceHeader><MessageTime>2016-09-22T19:50:41.822+01:00</MessageTime><MessageReference>1234567890123456789012345678901</MessageReference><SiteID>XXXXXXX</SiteID></ServiceHeader></Response><BkgDetails><OriginServiceArea/><DestinationServiceArea/></BkgDetails><Note><Condition><ConditionCode>1004</ConditionCode><ConditionData>The
    requested Global Product Code ${GlobalProductCode} and Local Product Code
    ${LocalProductCode} is not available based on origin country CA and destination
    country CA for payment country
    CA.</ConditionData></Condition></Note></GetQuoteResponse></res:DCTResponse>
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • I am assuming that you are using test keys (not production key).

    This error usually comes because of the erratic test servers of DHL. I would request you to try with production key.

    For getting the production key, just send this request and response to DHL and they will provide you the live credentials.

    Let me know if the problem persists.

    Thread Starter kisielk

    (@kisielk)

    It is a production key, and I have “This is a production key” checked.

    We have analyzed the request and response you provided. We can confirm that this issue not related to our plugin.

    We would request you to check which services are available between the given source and destination. You can use DHL rate calculator.

    If you have found any services available, you can approach DHL with complete request and response, They can provide you some solution. This can be an account related error.

    The issue is that you’re trying to rate a shipment with an Origin of CA and Destination of CA. DHL Express doesn’t support domestic shipping in CA,NG and several other countries.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Requested global product code and local product code is not available’ is closed to new replies.