GlobalPack combilabel example

Information

GlobalPack combilabel require some specific fields to be used: 

  • address of receiver: Shipment/Address/AddressType 01 
  • address of sender: Shipment/Address/AddressType 02 
  • product code: see Products
  • fallback barcode: Shipment/DownPartnerBarcode (this barcode is used when the combilabel request is not successful; only necessary for combilabel shipments, not for regular GlobalPack) 
  • content: Shipment/Customs/Content/Content (at least one Content segment is required) shipment type: Shipment/Customs/ShipmentType (the following types are possible: Gift, Documents, Commercial Sample, Commercial Goods, Returned Goods)
  • handle as non-deliverable: Shipment/Customs/HandleAsNonDeliverable (set to true or false) 
  • currency: Shipment/Customs/Currency 
  • certificate/license/invoice (with number): Shipment/Customs/Certificate(Nr) or License(Nr) or Invoice(Nr) (at least one of these fields is required; not in the case of ShipmentType = Gift or Documents)

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>Shanghai</tpp:City>
              <tpp:CompanyName>PostNL</tpp:CompanyName>
              <tpp:Countrycode>CN</tpp:Countrycode>
              <tpp:FirstName>Peter</tpp:FirstName>
              <tpp:HouseNr>137</tpp:HouseNr>
              <tpp:HouseNrExt/>
              <tpp:Name>de Ruiter</tpp:Name>
              <tpp:Street>Nanjinglu</tpp:Street>
              <tpp:Zipcode>310000</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:Customs>
            <tpp:Content>
              <tpp:Content>
                <tpp:CountryOfOrigin>NL</tpp:CountryOfOrigin>
                <tpp:Description>Powdered milk</tpp:Description>
                <tpp:HSTariffNr>100878</tpp:HSTariffNr>
                <tpp:Quantity>2</tpp:Quantity>
                <tpp:Value>20.00</tpp:Value>
                <tpp:Weight>4300</tpp:Weight>
              </tpp:Content>
            </tpp:Content>
            <tpp:Currency>EUR</tpp:Currency>
            <tpp:HandleAsNonDeliverable>false</tpp:HandleAsNonDeliverable>
            <tpp:Invoice>true</tpp:Invoice>
            <tpp:InvoiceNr>22334455</tpp:InvoiceNr>
            <tpp:ShipmentType>Commercial Goods</tpp:ShipmentType>
          </tpp:Customs>
          <tpp:Dimension>
            <tpp:Weight>4300</tpp:Weight>
          </tpp:Dimension>
          <tpp:DownPartnerBarcode>CC123456785NL</tpp:DownPartnerBarcode>
          <tpp:ProductCodeDelivery>4947</tpp:ProductCodeDelivery>
        </tpp:Shipment>
      </tpp:Shipments>
    </lab:GenerateLabel>
  </soapenv:Body>
</soapenv:Envelope>