Returns a list of expense sheet suppliers.
Supplier List
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expensesheets.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Action | Yes | The action to perform | action=supplierlist | |
| Company | Yes | The company number | company=16 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=16&action=supplierlist
Example request (legacy username/password):
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=16&action=supplierlist&user=<username>&password=<password>
Example response:
Note:
supplierSettingsObject will either return a null value or a set of settings fields, These settings fields will only be returned if they have had their value explicitly set.
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"supplieruuid": "DB41D3826892184B8B3951A1B8C79279",
"supplierTimeStampModified": 1605014776,
"supplierRecordVersionNumber": 3,
"supplierCurrencyCode": "16/EUR",
"supplierMultiCurrency": true,
"supplierName": "User - Andy",
"supplierSettingsObject": {
"PostExpensesInDefaultCurrency": true
},
"supplierCode": "16/S123487"
}
]
}