Click or drag to resize

Get Label

[This is preliminary documentation and is subject to change.]

Gets a Package label either as ZPL code or as a Base64 encoded image.

Sample Request
XML
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:pur="http://PurolatorServices.com/">
    <soap:Header/>
    <soap:Body>
        <pur:GetLabel>
            <pur:request>
                <pur:Credentials>
                    <pur:UserName>TestUser</pur:UserName>
                    <pur:Password>5VJrtqTa</pur:Password>
                    <pur:ClientID>0000000</pur:ClientID>
                </pur:Credentials>
                <pur:OrderNumber/>
                <pur:PackageID>Pkg-0001a</pur:PackageID>
                <pur:TrackingNumber/>
                <pur:LabelType>ZPL</pur:LabelType>
            </pur:request>
        </pur:GetLabel>
    </soap:Body>
</soap:Envelope>
Sample Response
XML
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetLabelResponse xmlns="http://PurolatorServices.com/">
         <GetLabelResult>
            <Status>0</Status>
            <Package>
               <PackageID>Pkg-0001a</PackageID>
               <TrackingNumber>TST000006569</TrackingNumber>
               <ShippingCharge>0</ShippingCharge>
               <ZPLCode>^XA^PR5,5^LH25,0^PW800^LL1200^FO5,10^XGR:PCLLOGO.GRF,1,1^FS^FO8,73^GB18,120,23^FS^FO12,87^A0B,20,23^FR^FDFROM/DE^FS^FO43,70^A0N,22,23^FDSimple Earth Hops^FS^FO43,93^A0N,22,23^FD210 S Lindsey Street^FS^FO43,116^A0N,22,23^FDDodgeville, WI   53533^FS^FO40,187^GB65,25,25^FS^FO40,191^A0N,22,25^FB65,,,C^FR^FDRef:^FS^FO110,191^A0N,22,23^FDMyRef 001^FS^FO8,228^GB18,80,23^FS^FO12,242^A0B,20,23^FR^FDTO/A^FS^FO43,225^A0N,26,27^FDRed Duck Beer^FS^FO43,251^A0N,26,27^FD101 Sample Street^FS^FO43,277^A0N,26,27^FDSuite 202^FS^FO41,303^A0N,32,33^FDScarborough, ON   M1M1M1^FS^FO4,413^GB102,26,26^FS^FO4,417^A0N,25,27^FB102,,,C^FR^FDNOTE:^FS^FO111,416^A0N,28,29^FDNote 001^FS^FO0,445^A0N,17,19^FB800,,,C^FDPurolator's published terms and conditions of service apply - see www.purolatorinternational.com.^FS^FO0,463^A0N,17,19^FB800,,,C^FH^FDLes Modalit_82s et conditions de service publi_82es de Purolator s'appliquent -^FS^FO0,481^A0N,17,19^FB800,,,C^FDvoir www.purolatorinternational.com^FS^FO445,120^XGR:OSNR.GRF,1,1^FS^FO625,340^A0N,117,125^FD^FS^FO4,503^GB102,26,26^FS^FO0,507^A0N,25,27^FB102,,,C^FR^FDDATE^FS^FO0,537^A0N,25,29^FB162,,,C^FD09 Aug 2012^FS^FO334,503^GB131,26,26^FS^FO336,507^A0N,25,27^FB131,,,C^FR^FDPIECES^FS^FO305,537^A0N,25,29^FB191,,,C^FD1 of/de 3^FS^FO569,503^GB225,26,26^FS^FO569,507^A0N,25,27^FB225,,,C^FR^FDWEIGHT/POIDS^FS^FO569,537^A0N,25,29^FB225,,,C^FD2.35 lb^FS^FO55,560^BY3^BCN,250,N,N,N,N^FD>;1311311312019200000065690000100000^FS^FO0,820^A0N,33,43^FB800,,,C^FDPUROLATOR PIN: TST000006569^FS^FO540,880^A0N,117,125^FD52^FS^FO450,1150^A0N,22,23^FDSD: 2012/07/30 - OLS 3^FS^FO400,60^A0N,36,36^FDUNDELIVERABLE RETURN^FS^FO440,97^A0N,36,36^FDTO PCL LOGISTICS^FS^FO400,310^A0N,48,48^FDTest Label^FS^FO400,350^A0N,48,48^FDDo Not Ship^FS^XZ</ZPLCode>
            </Package>
         </GetLabelResult>
      </GetLabelResponse>
   </soap:Body>
</soap:Envelope>