Get Customer By Customer Bank Code
Get Customer By Customer Bank Code

This method returns a single Customer’s properties. The client makes GET request to url with LangId, CompanyID and CustomerBankCode parameters. 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 BANK CODE
HTTP METHOD GET
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/customerbc.json/{BankCode}/{LangID}https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/customerbc.xml/{BankCode}/{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}"
}