This method updates a customer’s information. The client makes a PUT request providing Request body in either xml or json format and input parameter LangID in the request url. The output will be either in json or xml format depending on the request type. Response returns success or fail of the operation as boolean.
| Name | Value | |
|---|---|---|
| REST-API METHOD | UPDATE CUSTOMER BY CUSTOMER ID | |
| HTTP METHOD | PUT | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/Customer.json/{CustomerID}/{LangID} | https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/Customer.xml/{CustomerID}/{LangID} |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<Customer>
<CustomerEmail>{CustomerEmailAddress}</CustomerEmail>
<CustomerHomePhoneNumber>{CustomerHomePhone}</CustomerHomePhoneNumber>
<CustomerMobilePhoneNumber>{MobilePhone}</CustomerMobilePhoneNumber>
<CustomerName>{CustomerName}</CustomerName>
<CustomerSurname>{CustomerSurname}</CustomerSurname>
<CustomerPassword>{CustomerPassword}</CustomerPassword>
<CustomerWorkPhoneNumber>{CustomerWorkPhone}</CustomerWorkPhoneNumber>
<CustomerBusinessChannelID>{BusinessChannelID}</CustomerBusinessChannelID>
<CustomerUnitID>{CustomerUnit}</CustomerUnitID>
</Customer>
{
"CustomerEmail": "{CustomerEmailAddress}",
"CustomerHomePhoneNumber": "{CustomerHomePhone}",
"CustomerMobilePhoneNumber": "{MobilePhone}",
"CustomerName": "{CustomerName}",
"CustomerSurname": "{CustomerSurname}",
"CustomerPassword": "{CustomerPassword}",
"CustomerWorkPhoneNumber": "{CustomerWorkPhone}",
"CustomerBusinessChannelID": "{BusinessChannelID}",
"CustomerUnitID": "{CustomerUnit}"
}
<boolean>{OperationResult}</boolean>
{
"0": "{OperationResult}"
}