Sunday delivery (Labelling) example

Information

Sunday delivery shipments require some specific fields to be used:

  • product code: see Products
  • product option: characteristic 101, option 008
  • DeliveryDate: for example 18-05-2016 00:00:00

Request

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:lab="http://postnl.nl/cif/services/LabellingWebService/" 
xmlns:tpp="http://postnl.nl/cif/domain/LabellingWebService/">
       <soapenv:Body>
        <lab:GenerateLabel>
      <tpp:Customer>
        <tpp:Address>
          <tpp:AddressType>02</tpp:AddressType>
          <tpp:City>Hoofddorp</tpp:City>
          <tpp:CompanyName>PostNL</tpp:CompanyName>
          <tpp:Countrycode>NL</tpp:Countrycode>
          <tpp:FirstName>Frank</tpp:FirstName>
          <tpp:HouseNr>42</tpp:HouseNr>
          <tpp:HouseNrExt>A</tpp:HouseNrExt>
          <tpp:Name>Peeters</tpp:Name>
          <tpp:Street>Siriusdreef</tpp:Street>
          <tpp:Zipcode>2132WT</tpp:Zipcode>
        </tpp:Address>
        <tpp:CollectionLocation>123456</tpp:CollectionLocation>
        <tpp:CustomerCode>DEVC</tpp:CustomerCode>
        <tpp:CustomerNumber>11223344</tpp:CustomerNumber>
      </tpp:Customer>
      <tpp:Message>
        <tpp:MessageID>1</tpp:MessageID>
        <tpp:MessageTimeStamp>29-06-2016 12:00:00</tpp:MessageTimeStamp>
        <tpp:Printertype>GraphicFile|PDF</tpp:Printertype>
      </tpp:Message>
      <tpp:Shipments>
        <tpp:Shipment>
          <tpp:Addresses>
            <tpp:Address>
              <tpp:AddressType>01</tpp:AddressType>
              <tpp:City>Utrecht</tpp:City>
              <tpp:CompanyName>PostNL</tpp:CompanyName>
              <tpp:Countrycode>NL</tpp:Countrycode>
              <tpp:FirstName>Peter</tpp:FirstName>
              <tpp:HouseNr>137</tpp:HouseNr>
              <tpp:HouseNrExt/>
              <tpp:Name>de Ruiter</tpp:Name>
              <tpp:Street>Oldenburgerstraat</tpp:Street>
              <tpp:Zipcode>3573SJ</tpp:Zipcode>
            </tpp:Address>
          </tpp:Addresses>
          <tpp:Barcode>3SDEVC6659149</tpp:Barcode>
          <tpp:Contacts>
            <tpp:Contact>
              <tpp:ContactType>01</tpp:ContactType>
              <tpp:Email>receiver@gmail.com</tpp:Email>
              <tpp:SMSNr>0612345678</tpp:SMSNr>
            </tpp:Contact>
          </tpp:Contacts>
          <tpp:DeliveryDate>22-05-2016 14:00:00</tpp:DeliveryDate>
          <tpp:Dimension>
            <tpp:Weight>4300</tpp:Weight>
          </tpp:Dimension>
          <tpp:ProductCodeDelivery>3089</tpp:ProductCodeDelivery>
          <tpp:ProductOptions>
            <tpp:ProductOption>
              <tpp:Characteristic>101</tpp:Characteristic>
              <tpp:Option>008</tpp:Option>
            </tpp:ProductOption>
          </tpp:ProductOptions>
        </tpp:Shipment>
      </tpp:Shipments>
   </lab:GenerateLabel>
  </soapenv:Body>
</soapenv:Envelope>