Supply types

Supply types

Returns list of valid supply types

  <th>
    Description
  </th>

  <th>
    Examples
  </th>
</tr>
  <td>
    The API area
  </td>

  <td>
    expenselines.json
  </td>
</tr>

<tr>
  <td>
    Action
  </td>

  <td>
    Supply Types
  </td>

  <td>
    &amp;action=supplytypes
  </td>
</tr>

<tr>
  <td>
    Action
  </td>

  <td>
    Supply Type Lists
  </td>

  <td>
    &amp;action=supplytypeslist
  </td>
</tr>

<tr>
  <td>
    General
  </td>

  <td>
    Parameters described in overview
  </td>

  <td>
    user=user&amp;password=user&amp;version=3.2
  </td>
</tr>

<tr>
  <td>
    <input mandatory>company:
  </td>

  <td>
    Company ID
  </td>

  <td>
    &amp;company=1
  </td>
</tr>

<tr>
  <td>
    <input optional>supplier:
  </td>

  <td>
    Supplier
  </td>

  <td>
    &amp;supplier=ABC
  </td>
</tr>

<tr>
  <td>
    <input optional>jobphase:
  </td>

  <td>
    Job Phase
  </td>

  <td>
    &amp;jobphase=1/0001000.001
  </td>
</tr>

<tr>
  <td>
    <input optional>supplytype:
  </td>

  <td>
    Supplier Type
  </td>

  <td>
    &amp;supplytype=pen
  </td>
</tr>
Parameter
API

Example request:
Request to list supply types

http://<SERVER>/jsonAPI/expenselines.json?user=user&password=user&version=3.2&action=supplytypes&company=1
http://<SERVER>/jsonAPI/expenselines.json?user=user&password=user&version=3.2&action=supplytypeslist&company=1

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 16,
  "totalpages": 8,
  "responsemessage": "",
  "pagerows": 2,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "supplytypesUuid": "D91524692ADCCB4B863D155FD9A5B1B3",
      "supplytypesTimestampModified": 1519836024,
      "supplytypesRecordversionnumber": 5,
      "supplytypesDescription": "Expense info 1",
      "supplytypesMileage": false,
      "supplytypesRate": 0,
      "supplytypesSupplyType": "1/666",
      "supplytypesVatcode": 1
    },
    {
      "supplytypesUuid": "B72F300B76724DD6A4E0F10DB1080E69",
      "supplytypesTimestampModified": 1392042573,
      "supplytypesRecordversionnumber": 3,
      "supplytypesDescription": "Expense info 2",
      "supplytypesMileage": false,
      "supplytypesRate": 0,
      "supplytypesSupplyType": "1/HOT",
      "supplytypesVatcode": 0
    }
  ]
}