Update Customer Details

Updates the details of a customer.

Method Type URI
POST v90/ws/customer/{customerId}.ws

URI Parameters

Parameter Description Type
customerId Specify the customer ID. Integer

Sample Request

See Sample XML for Customer Web Services.

NOTE   The XML must comply with the schema provided for Customer (see XSD for Customer Web Services).

Sample Response

Success

HTTP Status Code: 200

Response Body:

<customer>
    <type>org</type>
    <enabled>true</enabled>
    <name>Gray Matter Technologies</name>
    <description>737000$</description>
    <crmId>C10H15N</crmId>
    <refId>149.24</refId>
    <phone>(505)555-0193</phone>
    <fax>(505)555-0194</fax>
    <addresses>
        <shippingSameAsBilling>false</shippingSameAsBilling>
        <address>
            <type>billing</type>
            <street>Negra Arroyo Lane, 308</street>
            <city>Albuquerque</city><state>NM</state>
            <country>USA</country>
            <zip>87114</zip>
        </address>
        <address>
            <type>shipping</type>
            <street>4257 Isleta Blvd. SW</street>
            <city>Albuquerque</city>
            <state>NM</state>
            <country>USA</country>
            <zip>87105</zip>
        </address>
    </addresses>
    <vendorId>2</vendorId>
    <defaultContact>
        <emailId>heisenberg@gmail.com</emailId>
        <firstName>Walter</firstName>
        <middleName>Hartwell</middleName>
        <lastName>White</lastName>
        <locale>en</locale>
    </defaultContact>
</customer>

Failure

HTTP Status Code: 404

Response Body: The specified Customer with ID 8 does not exist.