Material list

List of materials

Material List

List of materials

Parameter

Description

Examples

API

The API area

tspending.json

Action

Material List

&action=materiallist

General

Parameters described in overview

user=user&password=user&version=3.3

Company

The company context

&company=1

input optional rows:

No. of Records

&rows=10

input optional page

No. of Pages

&page=1

Example request:
Request to list materials

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

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 24,
  "totalpages": 12,
  "responsemessage": "",
  "pagerows": 2,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "resourcesUuid": "D941A8DA9E434014A56672D1F00191F5",
      "resourcesTimestampModified": 1458225526,
      "resourcesRecordVersionNumber": 3,
      "resourcesCode": "1/4DEC",
      "resourcesName": "4 decimals"
    },
    {
      "resourcesUuid": "977C27066AA74A5A8B43BE9D6EB9DF09",
      "resourcesTimestampModified": 1458225575,
      "resourcesRecordVersionNumber": 3,
      "resourcesCode": "1/A2CC",
      "resourcesName": "A2 black and white "
    }
  ]
}