Get Customer By Customer E-mail
Get Customer By Customer E-mail

This method returns a single Customer’s properties. 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.

Please note that “CustomerBusinessChannelID” and “CustomerUnitID” values in the Customer Node will always be 0 when retrieving Customer Information. These fields are only used during customer creation.
Name Value
REST-API METHOD GET CUSTOMER BY CUSTOMER EMAIL
HTTP METHOD GET
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/Customer.json/{CustomerEmail}/{LangID}https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/Customer.xml/{CustomerEmail}/{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/jsonAuthorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml
  • XML
  • JSON
ENDPOINT DEFINITION
GET
RESPONSE BODY
                                    
                                        <?xml version="1.0" encoding="utf-8"?>
<Customer xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <CustomerBusinessChannelID>{CustomerBusinessChannelID}</CustomerBusinessChannelID>
    <CustomerCode>{CustomerCode}</CustomerCode>
    <CustomerDefaultLangID>{CustomerDefaultLangID}</CustomerDefaultLangID>
    <CustomerEmail>{CustomerEmail}</CustomerEmail>
    <CustomerHomePhoneNumber>{CustomerHomePhoneNumber}</CustomerHomePhoneNumber>
    <CustomerID>{CustomerID}</CustomerID>
    <CustomerMobilePhoneNumber>{CustomerMobilePhoneNumber}</CustomerMobilePhoneNumber>
    <CustomerName>{CustomerName}</CustomerName>
    <CustomerSurname>{CustomerSurname}</CustomerSurname>
    <CustomerUnitID>{CustomerUnitID}</CustomerUnitID>
    <CustomerWorkPhoneNumber>{CustomerWorkPhoneNumber}</CustomerWorkPhoneNumber>
    <UpdateMi4ibizCustomer>{UpdateMi4ibizCustomer}</UpdateMi4ibizCustomer>
    <CustomerUserID>{CustomerUserID}</CustomerUserID>
</Customer>                                    
                                
                                                                        
                                        {
    "CustomerBusinessChannelID": "{CustomerBusinessChannelID}",
    "CustomerCode": "{CustomerCode}",
    "CustomerDefaultLangID": "{CustomerDefaultLangID}",
    "CustomerEmail": "{CustomerEmail}",
    "CustomerHomePhoneNumber": "{CustomerHomePhoneNumber}",
    "CustomerID": "{CustomerID}",
    "CustomerMobilePhoneNumber": "{CustomerMobilePhoneNumber}",
    "CustomerName": "{CustomerName}",
    "CustomerSurname": "{CustomerSurname}",
    "CustomerUnitID": "{CustomerUnitID}",
    "CustomerWorkPhoneNumber": "{CustomerWorkPhoneNumber}",
    "UpdateMi4ibizCustomer": "{UpdateMi4ibizCustomer}",
    "CustomerUserID": "{CustomerUserID}"
}