Supply Types List

supplytypeslist

Parameter

Type

I/O

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

Supplier

String

IN

Identifier for the supplier context

Jobphase

[OPTIONAL]

String

IN

Identifier for jobphase

Supplytype

[OPTIONAL]

String

IN

Identifier for supplytype

Response

XML / JSON

OUT

An XML tree / JSON string containing the supply types and descriptions which the user has access to.

Description

Calling the expenses API with an action of supplytypeslist retrieves a list of supply types and associated descriptions.

Return Values

Response – List of supply type descriptions along with the expense type VAT code.

The structure of the response is:

<supplytypes morepages="False" totalpages="1" totalrows="2">
  <supplytype supplytypes_uuid="B72F300B76724DD6A4E0F10DB1080E69">
    <supplytypes_description>
      Hotel Expenses1
    </supplytypes_description>
    <supplytypes_supplytype>1/HOT</supplytypes_supplytype>
    <supplytypes_vatcode>0</supplytypes_vatcode>
  </supplytype>
</supplytypes>
"errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 2,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
         	 {
            "supplytypes_uuid": "B72F300B76724DD6A4E0F10DB1080E69",
            "supplytypes_description": "Hotel Expenses1",
            "supplytypes_supplytype": "1/HOT",
            "supplytypes_vatcode": 0
       	 },
{
            "supplytypes_uuid": "B35A79D2BA714F7FB1183AF9B6C2E487",
            "supplytypes_description": "Mileagex",
            "supplytypes_supplytype": "1/MIL",
            "supplytypes_vatcode": 3
       	 }
  ]