Supply Types

List of supply types

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=supplytypes
SupplierNoSupplier codesupplier=1/aaaa

Example request:

http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=supplytypes&company=1

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 99,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "supplytypesSupplyType": "5/PRI",
      "supplytypesDescription": "Printers",
      "variable_selected": false
    },
    {
      "supplytypesSupplyType": "8/sub",
      "supplytypesDescription": "Sub Contractors",
      "variable_selected": false
    }
  ]
}