This method updates a customer’s information. The client makes a POST request providing Request body in either xml or json format and input parameter CompanyId, CustomerID and 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 POST | |
| HTTP METHOD | POST | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/UpdateCustomer.json/{CustomerID}/{LangID} | https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/UpdateCustomer.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}"
}
<?xml version="1.0" encoding="utf-8"?>
<boolean
xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
{OperationResult}
</boolean>
{
"0": "\n {OperationResult}\n"
}