Web Service Documentation / Categories / Basic Account Services / Edit Customer

Edit Customer

Updated on June 25, 2018

Description

Updates an account for your customer that you are already connected to.

Version

11.0

HTTP Method

PUT

Resource URL

/customer/(customerId)

Header

Field Name Value Comments
Authorization Basic credentials
Content-Type application/xml

Authorization Required

Yes

Parameters

None

XML Schemas

Request/Response Schema Name
Request customer.xsd
Response response.xsd

Example Requests

The following example updates a customer account that has an id of 23421.

PUT  /customer/23421

<customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> </customer>

The following example updates a customer account that has an id of 23421. If the customer account belongs to Canada, an email preference setting (emailPreferenceCanadianAccount) can also be included which indicates whether the account can receive ENERGY STAR information from the Natural Resources of Canada (NRCAN).

PUT  /customer/23421

<customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> <emailPreferenceCanadianAccount>true</emailPreferenceCanadianAccount> </customer>

Example Response

The following example indicates that the customer account was successfully updated.

<response status="Ok">
    <id>23421</id>
    <links>
        <link httpMethod="GET" link="/customer/23421"
              linkDescription="This is the GET url for this Customer."/>
    </links>
</response>
TEST