Web Service Documentation / Categories / Basic Account Services / Edit Customer
Updated on August 25, 2019
24.0
PUT
/customer/(customerId)
Field Name | Value | Comments |
---|---|---|
Authorization | Basic credentials | |
Content-Type | application/xml |
Yes
None
Request/Response | Schema Name |
---|---|
Request | customer.xsd |
Response | response.xsd |
The following example updates a customer account that has an id of 23421.
PUT /customer/23421<?xml version="1.0" encoding="UTF-8"?> <customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> <billboardMetric>score</billboardMetric> </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<?xml version="1.0" encoding="UTF-8"?> <customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> <billboardMetric>score</billboardMetric> <emailPreferenceCanadianAccount>true</emailPreferenceCanadianAccount> </customer>
The following example indicates that the customer account was successfully updated.
<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok">
<id>23421</id>
<links>
<link httpMethod="GET" link="/customer/23421" linkDescription="This is the GET url for this Customer."/>
</links>
</response>