CustomerService


Click here for a complete list of operations.

Get_Customers

This service is used by OrderDog buyers, and suppliers to get a list of their customers available on the system.
PacketOrderBy: 1=by customer id, 2=by customer name, 3=by bill-to-name.
Please email support@orderdog.com, or call 1-866-ORDERDOG with questions.

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 /customerservice.asmx HTTP/1.1
Host: services.orderdog.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ODService/CustomerService/Get_Customers"

<?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>
    <Get_Customers xmlns="http://tempuri.org/ODService/CustomerService">
      <UserName>string</UserName>
      <Password>string</Password>
      <Version>string</Version>
      <Packet>int</Packet>
      <PacketSize>int</PacketSize>
      <PacketOrderBy>int</PacketOrderBy>
      <CustomerID>string</CustomerID>
      <BuyerPartnerID>int</BuyerPartnerID>
    </Get_Customers>
  </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>
    <Get_CustomersResponse xmlns="http://tempuri.org/ODService/CustomerService">
      <Get_CustomersResult>
        <ErrorText>string</ErrorText>
        <Customers>
          <Customer>
            <customer_id>string</customer_id>
            <od_partner_id>int</od_partner_id>
            <IsManaged>boolean</IsManaged>
            <customer_name>string</customer_name>
            <tax_exempt>boolean</tax_exempt>
            <default_discount>decimal</default_discount>
            <cust_email>string</cust_email>
            <ship_to_name>string</ship_to_name>
            <ship_to_contact>string</ship_to_contact>
            <ship_to_addr1>string</ship_to_addr1>
            <ship_to_addr2>string</ship_to_addr2>
            <ship_to_city>string</ship_to_city>
            <ship_to_state>string</ship_to_state>
            <ship_to_zip>string</ship_to_zip>
            <ship_to_country>string</ship_to_country>
            <bill_to_customer_id>string</bill_to_customer_id>
            <bill_to_name>string</bill_to_name>
            <bill_to_contact>string</bill_to_contact>
            <bill_to_addr1>string</bill_to_addr1>
            <bill_to_addr2>string</bill_to_addr2>
            <bill_to_city>string</bill_to_city>
            <bill_to_state>string</bill_to_state>
            <bill_to_zip>string</bill_to_zip>
            <bill_to_country>string</bill_to_country>
            <phone>string</phone>
            <toll_free>string</toll_free>
            <fax>string</fax>
            <cust_custom_0>string</cust_custom_0>
            <cust_custom_1>string</cust_custom_1>
            <cust_custom_2>string</cust_custom_2>
            <cust_custom_3>string</cust_custom_3>
            <cust_custom_4>string</cust_custom_4>
            <cust_custom_5>string</cust_custom_5>
            <cust_custom_6>string</cust_custom_6>
            <cust_custom_7>string</cust_custom_7>
            <cust_custom_8>string</cust_custom_8>
            <cust_custom_9>string</cust_custom_9>
            <status>string</status>
            <terms>string</terms>
            <bio>string</bio>
            <cre_by>string</cre_by>
            <cre_dt>dateTime</cre_dt>
            <chg_by>string</chg_by>
            <chg_dt>dateTime</chg_dt>
          </Customer>
          <Customer>
            <customer_id>string</customer_id>
            <od_partner_id>int</od_partner_id>
            <IsManaged>boolean</IsManaged>
            <customer_name>string</customer_name>
            <tax_exempt>boolean</tax_exempt>
            <default_discount>decimal</default_discount>
            <cust_email>string</cust_email>
            <ship_to_name>string</ship_to_name>
            <ship_to_contact>string</ship_to_contact>
            <ship_to_addr1>string</ship_to_addr1>
            <ship_to_addr2>string</ship_to_addr2>
            <ship_to_city>string</ship_to_city>
            <ship_to_state>string</ship_to_state>
            <ship_to_zip>string</ship_to_zip>
            <ship_to_country>string</ship_to_country>
            <bill_to_customer_id>string</bill_to_customer_id>
            <bill_to_name>string</bill_to_name>
            <bill_to_contact>string</bill_to_contact>
            <bill_to_addr1>string</bill_to_addr1>
            <bill_to_addr2>string</bill_to_addr2>
            <bill_to_city>string</bill_to_city>
            <bill_to_state>string</bill_to_state>
            <bill_to_zip>string</bill_to_zip>
            <bill_to_country>string</bill_to_country>
            <phone>string</phone>
            <toll_free>string</toll_free>
            <fax>string</fax>
            <cust_custom_0>string</cust_custom_0>
            <cust_custom_1>string</cust_custom_1>
            <cust_custom_2>string</cust_custom_2>
            <cust_custom_3>string</cust_custom_3>
            <cust_custom_4>string</cust_custom_4>
            <cust_custom_5>string</cust_custom_5>
            <cust_custom_6>string</cust_custom_6>
            <cust_custom_7>string</cust_custom_7>
            <cust_custom_8>string</cust_custom_8>
            <cust_custom_9>string</cust_custom_9>
            <status>string</status>
            <terms>string</terms>
            <bio>string</bio>
            <cre_by>string</cre_by>
            <cre_dt>dateTime</cre_dt>
            <chg_by>string</chg_by>
            <chg_dt>dateTime</chg_dt>
          </Customer>
        </Customers>
      </Get_CustomersResult>
    </Get_CustomersResponse>
  </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 /customerservice.asmx HTTP/1.1
Host: services.orderdog.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>
    <Get_Customers xmlns="http://tempuri.org/ODService/CustomerService">
      <UserName>string</UserName>
      <Password>string</Password>
      <Version>string</Version>
      <Packet>int</Packet>
      <PacketSize>int</PacketSize>
      <PacketOrderBy>int</PacketOrderBy>
      <CustomerID>string</CustomerID>
      <BuyerPartnerID>int</BuyerPartnerID>
    </Get_Customers>
  </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>
    <Get_CustomersResponse xmlns="http://tempuri.org/ODService/CustomerService">
      <Get_CustomersResult>
        <ErrorText>string</ErrorText>
        <Customers>
          <Customer>
            <customer_id>string</customer_id>
            <od_partner_id>int</od_partner_id>
            <IsManaged>boolean</IsManaged>
            <customer_name>string</customer_name>
            <tax_exempt>boolean</tax_exempt>
            <default_discount>decimal</default_discount>
            <cust_email>string</cust_email>
            <ship_to_name>string</ship_to_name>
            <ship_to_contact>string</ship_to_contact>
            <ship_to_addr1>string</ship_to_addr1>
            <ship_to_addr2>string</ship_to_addr2>
            <ship_to_city>string</ship_to_city>
            <ship_to_state>string</ship_to_state>
            <ship_to_zip>string</ship_to_zip>
            <ship_to_country>string</ship_to_country>
            <bill_to_customer_id>string</bill_to_customer_id>
            <bill_to_name>string</bill_to_name>
            <bill_to_contact>string</bill_to_contact>
            <bill_to_addr1>string</bill_to_addr1>
            <bill_to_addr2>string</bill_to_addr2>
            <bill_to_city>string</bill_to_city>
            <bill_to_state>string</bill_to_state>
            <bill_to_zip>string</bill_to_zip>
            <bill_to_country>string</bill_to_country>
            <phone>string</phone>
            <toll_free>string</toll_free>
            <fax>string</fax>
            <cust_custom_0>string</cust_custom_0>
            <cust_custom_1>string</cust_custom_1>
            <cust_custom_2>string</cust_custom_2>
            <cust_custom_3>string</cust_custom_3>
            <cust_custom_4>string</cust_custom_4>
            <cust_custom_5>string</cust_custom_5>
            <cust_custom_6>string</cust_custom_6>
            <cust_custom_7>string</cust_custom_7>
            <cust_custom_8>string</cust_custom_8>
            <cust_custom_9>string</cust_custom_9>
            <status>string</status>
            <terms>string</terms>
            <bio>string</bio>
            <cre_by>string</cre_by>
            <cre_dt>dateTime</cre_dt>
            <chg_by>string</chg_by>
            <chg_dt>dateTime</chg_dt>
          </Customer>
          <Customer>
            <customer_id>string</customer_id>
            <od_partner_id>int</od_partner_id>
            <IsManaged>boolean</IsManaged>
            <customer_name>string</customer_name>
            <tax_exempt>boolean</tax_exempt>
            <default_discount>decimal</default_discount>
            <cust_email>string</cust_email>
            <ship_to_name>string</ship_to_name>
            <ship_to_contact>string</ship_to_contact>
            <ship_to_addr1>string</ship_to_addr1>
            <ship_to_addr2>string</ship_to_addr2>
            <ship_to_city>string</ship_to_city>
            <ship_to_state>string</ship_to_state>
            <ship_to_zip>string</ship_to_zip>
            <ship_to_country>string</ship_to_country>
            <bill_to_customer_id>string</bill_to_customer_id>
            <bill_to_name>string</bill_to_name>
            <bill_to_contact>string</bill_to_contact>
            <bill_to_addr1>string</bill_to_addr1>
            <bill_to_addr2>string</bill_to_addr2>
            <bill_to_city>string</bill_to_city>
            <bill_to_state>string</bill_to_state>
            <bill_to_zip>string</bill_to_zip>
            <bill_to_country>string</bill_to_country>
            <phone>string</phone>
            <toll_free>string</toll_free>
            <fax>string</fax>
            <cust_custom_0>string</cust_custom_0>
            <cust_custom_1>string</cust_custom_1>
            <cust_custom_2>string</cust_custom_2>
            <cust_custom_3>string</cust_custom_3>
            <cust_custom_4>string</cust_custom_4>
            <cust_custom_5>string</cust_custom_5>
            <cust_custom_6>string</cust_custom_6>
            <cust_custom_7>string</cust_custom_7>
            <cust_custom_8>string</cust_custom_8>
            <cust_custom_9>string</cust_custom_9>
            <status>string</status>
            <terms>string</terms>
            <bio>string</bio>
            <cre_by>string</cre_by>
            <cre_dt>dateTime</cre_dt>
            <chg_by>string</chg_by>
            <chg_dt>dateTime</chg_dt>
          </Customer>
        </Customers>
      </Get_CustomersResult>
    </Get_CustomersResponse>
  </soap12:Body>
</soap12:Envelope>