Returns list of valid supply types.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | expenselines.json | |
General | Yes | Parameters described in overview | user=user&password=user | Structure of an API call |
Company | Yes | The company number | company=1 | |
Supplier | No | Supplier | supplier=ABC | |
Jobphase | No | Job and phase | 1/0001000.001 | |
Supplytype | No | Supply type | supplytype=pen | |
Action | Yes | The action to perform | action=supplytypes |
Example request:
http://<SERVER>/jsonAPI/expenselines.json?user=user&password=user&version=3.9&company=1&action=supplytypes
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
}
]
}