List of supply types
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=supplytypes | |
Supplier | No | Supplier code | supplier=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
}
]
}