Material Type List

Materialtypelist

Parameter

Type

Description

[IN]

Parameters described in Overview

Company

String

[IN]

The users default company number for the companies list

Action

String

[IN]

Identifier for the list requested

Resource

String

[IN]

Identifier for the resource context

Response

XML/JSON

[OUT]

An XML tree / JSON string containing material types the user has access to

Description

Calling the timesheets API with an action of materialtypelist retrieves a list of material type codes and associated names.

Return Values

Response – List of material types.

The structure of the response is:

<materialtypes morepages="False" totalpages="1" totalrows="1">
  <materialtype resourcetypes_uuid="97880FCD8EEC4AA8A26D3BD881DF8455">
    <resourcetypes_restypecode>1/CC</resourcetypes_restypecode>
    <resourcetypes_restypedesc>Colour Copies</resourcetypes_restypedesc>
  </materialtype>
</materialtypes>
{
    "errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 1,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
        {
            "resourcetypes_uuid": "97880FCD8EEC4AA8A26D3BD881DF8455", 
            "resourcetypes_restypedesc": "Colour Copies",
            "resourcetypes_restypecode": "1/CC"
        }
    ]
}