Get Customer By Customer ID
Get Customer By Customer ID

This method returns a single Customer’s properties. The client makes a GET request providing input parameters CustomerID and 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 ID
HTTP METHOD GET
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/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>
	<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>
	<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}",
    "CustomerUserID": "{CustomerUserID}"
}