Return label confirming example (label in the box)

Information

Return labels require some specific fields to be used:

  • address of receiver: Shipment/Address/AddressType 01
  • address of sender: Customer/Address/AddressType 02
  • return address: Shipment/Address/AddressType 08
  • product code: seeĀ Products
  • return barcode: Shipment/ReturnBarcode

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:con="http://postnl.nl/cif/services/ConfirmingWebService/" 
xmlns:tpp="http://postnl.nl/cif/domain/ConfirmingWebService/">
    <soapenv:Body>
        <con:Confirming>
            <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: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:Address>
                            <tpp:AddressType>08</tpp:AddressType>
                            <tpp:City>Vianen</tpp:City>
                            <tpp:CompanyName>PostNL</tpp:CompanyName>
                            <tpp:Countrycode>NL</tpp:Countrycode>
                            <tpp:HouseNr>123</tpp:HouseNr>
                            <tpp:Street>Antwoodnummer</tpp:Street>
                            <tpp:Zipcode>4131LV</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:Dimension>
                        <tpp:Weight>4300</tpp:Weight>
                    </tpp:Dimension>
                    <tpp:ProductCodeDelivery>3085</tpp:ProductCodeDelivery>
                    <tpp:ReturnBarcode>3SRETR12345678</tpp:ReturnBarcode>
                </tpp:Shipment>
            </tpp:Shipments>
        </con:Confirming>
    </soapenv:Body>
</soapenv:Envelope>