Get Customer Fields By Customer ID
Get Customer Fields By Customer ID

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

Name Value
REST-API METHOD GET CUSTOMER FIELDS BY CUSTOMER ID
HTTP METHOD GET
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/ customerfield.json/{CustomerID}/{LangID}https://api.csm.next4biz.net/services/CustomerService/{CompanyID}/ customerfield.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"?>
<CustomerFields
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<CustomerField>
		<CustomerFieldID>{CustomerFieldID}</CustomerFieldID>
		<CustomerFieldValues>
			<CustomerFieldReferenceValue CustomerFieldReferenceValueID="{ID}" />
		</CustomerFieldValues>
	</CustomerField>
	<CustomerField>
		<CustomerFieldID>{CustomerFieldID}</CustomerFieldID>
		<CustomerFieldValue>{CustomerFieldValue}</CustomerFieldValue>
	</CustomerField>
</CustomerFields>                                    
                                
                                                                        
                                        {
    "CustomerField": [
        {
            "CustomerFieldID": "{CustomerFieldID}",
            "CustomerFieldValues": {
                "CustomerFieldReferenceValue": {
                    "CustomerFieldReferenceValueID": "{ID}"
                }
            }
        },
        {
            "CustomerFieldID": "{CustomerFieldID}",
            "CustomerFieldValue": "{CustomerFieldValue}"
        }
    ]
}