LPCustomer
add
Sample Successful Response Without SOAP
<?xml version="1.0"?>
<LP_RESPONSE_INFO>
<RESULT_RECORD>
<TYPE>INFO</TYPE>
<RECORD>CUSTOMER</RECORD>
<KEY>44</KEY>
<FIELD>clientNumber</FIELD>
<MSGCODE>3007</MSGCODE>
<MSGTEXT>New Customer number is:44</MSGTEXT>
</RESULT_RECORD>
</LP_RESPONSE_INFO>
Sample Successfull Response Message With SOAP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:addResponse xmlns:ns="urn:LPCustomer">
<ns:return><![CDATA[<?xml version="1.0"?>
<LP_RESPONSE_INFO>
<RESULT_RECORD>
<TYPE>INFO</TYPE>
<RECORD>CUSTOMER</RECORD>
<KEY>44</KEY>
<FIELD>clientNumber</FIELD>
<MSGCODE>3007</MSGCODE>
<MSGTEXT>New Customer number is:44</MSGTEXT>
</RESULT_RECORD>
</LP_RESPONSE_INFO>
]]></ns:return>
</ns:addResponse>
</soapenv:Body>
</soapenv:Envelope>
Sample Response Message with SOAP (error response)
Example: Response when user defined field key (udfkey) is not blank while adding a new customer record.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:addResponse xmlns:ns="urn:LPCustomer">
<ns:return><![CDATA[<?xml version="1.0"?>
<LP_RESPONSE_INFO>
<RESULT_RECORD>
<TYPE>ERROR</TYPE>
<RECORD>CUSTOMER</RECORD>
<KEY>43</KEY>
<FIELD>udfKey</FIELD>
<MSGCODE>1535</MSGCODE>
<MSGTEXT>UDF key does not match client number.</MSGTEXT>
</RESULT_RECORD>
</LP_RESPONSE_INFO>
]]></ns:return>
</ns:addResponse>
</soapenv:Body>
</soapenv:Envelope>