Customers

List customers

GET /customers

Example request

$ curl \
    -H 'Authorization: Bearer {bearer_token}' \
    -H 'Accept: application/xml'
    http://api.staging.decisiv.net/platform_api/customers

Query

Filtering

externalID, companyName, address1, address2, city, state, postalCode, countryCode, emailAddress, phoneNumber, faxNumber, customerNumber, accountNumber

Sorting

All filtering fields and createdAt, updatedAt

Limit

10 results

Example

/platform_api/customers?state=VA&sortBy=city

Response

<?xml version="1.0" encoding="UTF-8"?>
<customers xmlns="http://www.decisiv.net/platform_api/0.0.7/Case/CustomerResponse"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/CustomerResponse">
  <customer>
    <id>id0</id>
    <externalID>externalID</externalID>
    <URL>URL0</URL>
    <shippingCustomerURL>shippingCustomerURL</shippingCustomerURL>
    <billingCustomerURL>billingCustomerURL</billingCustomerURL>
    <companyName>companyName</companyName>
    <address1>address1</address1>
    <address2>address2</address2>
    <city>city</city>
    <state>state</state>
    <postalCode>postalCode</postalCode>
    <countryCode>countryCode</countryCode>
    <emailAddress>emailAddress</emailAddress>
    <phoneNumber>phoneNumber</phoneNumber>
    <phoneExtension>phoneExtension</phoneExtension>
    <faxNumber>faxNumber</faxNumber>
    <customerNumber>customerNumber</customerNumber>
    <accountNumber>accountNumber</accountNumber>
    <notes>notes</notes>
    <createdAt>2006-05-04T18:13:51.0</createdAt>
    <updatedAt>2006-05-04T18:13:51.0</updatedAt>
  </customer>
  <customer>
    <id>id1</id>
    <externalID>externalID</externalID>
    <URL>URL1</URL>
    <shippingCustomerURL>shippingCustomerURL</shippingCustomerURL>
    <billingCustomerURL>billingCustomerURL</billingCustomerURL>
    <companyName>companyName</companyName>
    <address1>address1</address1>
    <address2>address2</address2>
    <city>city</city>
    <state>state</state>
    <postalCode>postalCode</postalCode>
    <countryCode>countryCode</countryCode>
    <emailAddress>emailAddress</emailAddress>
    <phoneNumber>phoneNumber</phoneNumber>
    <phoneExtension>phoneExtension</phoneExtension>
    <faxNumber>faxNumber</faxNumber>
    <customerNumber>customerNumber</customerNumber>
    <accountNumber>accountNumber</accountNumber>
    <notes>notes</notes>
    <createdAt>2006-05-04T18:13:51.0</createdAt>
    <updatedAt>2006-05-04T18:13:51.0</updatedAt>
  </customer>
</customers>

Get a single customer

GET /customers/{id}

Response

<?xml version="1.0" encoding="UTF-8"?>
<customer xmlns="http://www.decisiv.net/platform_api/0.0.7/Case/CustomerResponse"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/CustomerResponse">
    <id>id0</id>
    <externalID>externalID</externalID>
    <URL>URL0</URL>
    <shippingCustomerURL>shippingCustomerURL</shippingCustomerURL>
    <billingCustomerURL>billingCustomerURL</billingCustomerURL>
    <companyName>companyName</companyName>
    <address1>address1</address1>
    <address2>address2</address2>
    <city>city</city>
    <state>state</state>
    <postalCode>postalCode</postalCode>
    <countryCode>countryCode</countryCode>
    <emailAddress>emailAddress</emailAddress>
    <phoneNumber>phoneNumber</phoneNumber>
    <phoneExtension>phoneExtension</phoneExtension>
    <faxNumber>faxNumber</faxNumber>
    <customerNumber>customerNumber</customerNumber>
    <accountNumber>accountNumber</accountNumber>
    <notes>notes</notes>
    <createdAt>2006-05-04T18:13:51.0</createdAt>
    <updatedAt>2006-05-04T18:13:51.0</updatedAt>
</customer>