Material Type List

Returns a list of materials types.

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areatspending.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.8v3.8 Overview
ActionYesThe action to performaction=materialtypelist
CompanyYesThe company numbercompany=1

Example request:

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.8&action=materialtypelist&company=1

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 4,
  "totalpages": 2,
  "responsemessage": "",
  "pagerows": 2,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "resourcetypesUuid": "97880FCD8EEC4AA8A26D3BD881DF8455",
      "resourcetypesTimestampModified": 1385821271,
      "resourcetypesRecordVersionNumber": 0,
      "resourcetypesCode": "1/CC",
      "resourcetypesDescription": "Colour Copies1"
    },
    {
      "resourcetypesUuid": "4D7583E97AD841EEB7ACBE273FB3EA16",
      "resourcetypesTimestampModified": 1385821271,
      "resourcetypesRecordVersionNumber": 0,
      "resourcetypesCode": "1/CO",
      "resourcetypesDescription": "Communication"
    }
  ]
}