Material List

Materiallist

ParameterTypeDescription
[IN] Parameters described in Overview
CompanyString[IN] The users default company number for the companies list
ActionString[IN] Identifier for the list requested
ResourceString[IN] Identifier for the resource context
Resourcetype [OPTIONAL]String[IN] filter for the FM material resource type
ResponseXML/JSON[OUT] An XML tree / JSON string containing resources the user has access to

Description

Calling the timesheets API with an action of materiallist retrieves a list of resource codes and associated resource names.

Return Values

Response – List of material resources.

The structure of the response is:

<materials morepages="False" totalpages="1" totalrows="1">
<material resources_uuid="8EB24B0E80E046C680618EB8BABEF895">
<resources_resourcecode>1/A3CC</resources_resourcecode>
<resources_resourcename>A3 Colour Copies</resources_resourcename>
</material>
</Materials>
{
    "errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 1,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
        {
            "resources_resourcecode": "1/A3CC",
            "resources_uuid": "8EB24B0E80E046C680618EB8BABEF895",
            "resources_resourcename": "A3 Colour Copies"
        }]
}