Not logged in - Login
View History

Parcel Shop Finder Service SOAP Example

Parcelshop finder request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://dpd.com/common/service/types/Authentication/2.0" xmlns:ns1="http://dpd.com/common/service/types/ParcelShopFinderService/3.0">
   <soapenv:Header>
      <ns:authentication>
         <delisId>My Delis ID</delisId>
         <authToken>Authentication token</authToken>
         <messageLanguage>en_US</messageLanguage>
      </ns:authentication>
   </soapenv:Header>
   <soapenv:Body>
      <ns1:findParcelShopsByGeoData>
         <longitude>4.2</longitude>
         <latitude>52</latitude>
         <limit>1</limit>
         <consigneePickupAllowed>true</consigneePickupAllowed>
      </ns1:findParcelShopsByGeoData>
   </soapenv:Body>
</soapenv:Envelope> 

Parcelshop finder response

If a request is send with a valid delisId and password this will be the response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <findParcelShopsByGeoDataResponse xmlns="http://dpd.com/common/service/types/ParcelShopFinderService/3.0">
         <parcelShop xmlns="">
            <parcelShopId>NL10463</parcelShopId>
            <company>NAALDWIJK SCOOTERS</company>
            <street>Amperestraat</street>
            <houseNo>1</houseNo>
            <state/>
            <countryN>528</countryN>
            <isoAlpha2>NL</isoAlpha2>
            <isoAlpha3>NLD</isoAlpha3>
            <zipCode>2671 BX</zipCode>
            <city>Naaldwijk</city>
            <phone/>
            <fax/>
            <email/>
            <homepage/>
            <openingHours>
               <weekday>Monday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>18:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Tuesday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>18:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Wednesday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>18:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Thursday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>18:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Friday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>21:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Saturday</weekday>
               <openMorning>08:00</openMorning>
               <closeMorning>12:00</closeMorning>
               <closeAfternoon>17:00</closeAfternoon>
               <openAfternoon>12:00</openAfternoon>
            </openingHours>
            <openingHours>
               <weekday>Sunday</weekday>
               <openMorning>00:00</openMorning>
               <closeMorning>00:00</closeMorning>
               <closeAfternoon>00:00</closeAfternoon>
               <openAfternoon>00:00</openAfternoon>
            </openingHours>
            <extraInfo/>
            <pickupByConsigneeAllowed>true</pickupByConsigneeAllowed>
            <returnAllowed>true</returnAllowed>
            <expressAllowed>false</expressAllowed>
            <expressPickupTime/>
            <prepaidAllowed>true</prepaidAllowed>
            <cashOnDeliveryAllowed>false</cashOnDeliveryAllowed>
            <cashOnDeliveryPayment>0</cashOnDeliveryPayment>
            <distance>0</distance>
            <longitude>4.213330000000</longitude>
            <latitude>51.999370000000</latitude>
            <coordinateX>3916.21589646174</coordinateX>
            <coordinateY>288.504964496879</coordinateY>
            <coordinateZ>5025.99736654627</coordinateZ>
         </parcelShop>
      </findParcelShopsByGeoDataResponse>
   </s:Body>
</s:Envelope>

Parcelshop finder error response

Example of an error response if GEO Coordinates are incorrect.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:SERVER</faultcode>
         <faultstring>Fault occured</faultstring>
         <detail>
            <faultCodeType xmlns="http://schemas.datacontract.org/2004/07/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
              <faultCodeField>PARCEL_1</faultCodeField>
               <messageField>Longitude or latitude is incorrect</messageField>
            </faultCodeType>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>