LabelRequest


Click here for a complete list of operations.

GetLabels

LabelRequest will return the URL to allow printing of pre-paid shipping labels. (GetLabels v1 - Deprecated 07/2019)

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /LabelRequest.asmx HTTP/1.1
Host: www.therecyclingsite.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://cloverenvironmental.com/webservices/GetLabels"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetLabels xmlns="http://cloverenvironmental.com/webservices/">
      <elabel_id>string</elabel_id>
      <label_sku>string</label_sku>
      <label_qty>int</label_qty>
      <customer_name>string</customer_name>
      <customer_account>string</customer_account>
      <customer_first_name>string</customer_first_name>
      <customer_last_name>string</customer_last_name>
      <customer_address_line1>string</customer_address_line1>
      <customer_address_line2>string</customer_address_line2>
      <customer_city>string</customer_city>
      <customer_state>string</customer_state>
      <customer_zip>string</customer_zip>
      <customer_country>string</customer_country>
      <customer_phone>string</customer_phone>
      <additional_info>string</additional_info>
    </GetLabels>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetLabelsResponse xmlns="http://cloverenvironmental.com/webservices/">
      <GetLabelsResult>string</GetLabelsResult>
    </GetLabelsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /LabelRequest.asmx HTTP/1.1
Host: www.therecyclingsite.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetLabels xmlns="http://cloverenvironmental.com/webservices/">
      <elabel_id>string</elabel_id>
      <label_sku>string</label_sku>
      <label_qty>int</label_qty>
      <customer_name>string</customer_name>
      <customer_account>string</customer_account>
      <customer_first_name>string</customer_first_name>
      <customer_last_name>string</customer_last_name>
      <customer_address_line1>string</customer_address_line1>
      <customer_address_line2>string</customer_address_line2>
      <customer_city>string</customer_city>
      <customer_state>string</customer_state>
      <customer_zip>string</customer_zip>
      <customer_country>string</customer_country>
      <customer_phone>string</customer_phone>
      <additional_info>string</additional_info>
    </GetLabels>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetLabelsResponse xmlns="http://cloverenvironmental.com/webservices/">
      <GetLabelsResult>string</GetLabelsResult>
    </GetLabelsResponse>
  </soap12:Body>
</soap12:Envelope>