Load compcode list

This API retrieves the list of company codes available to which users can be assigned, and is used by administrators.

Example API call

/lcapi?book=1&collection=1&target=admin&action=get_compcode_list

Parameters

ParameterDescription
targetadmin
actionget_compcode_list
bookThe id of the publication, an integer, such as 1.
collection The id of the collection, an integer, such as 1.

Returns

On success
<COMPCODES>
     <COMPCODEBODY>
          <COMPCODEITEM COMPCODE_ID=’id’>
			            <COMP_CODE>CODE</COMP_CODE>
		            	<COMP_NAME>NAME</COMP_NAME>
	        	</COMPCODEITEM>
	    </COMPCODEBODY>
</COMPCODES>
On failure
<COMPCODES></COMPCODES>