List of suppliers - for use when creating a PO or re-assigning a different supplier
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=supplierslist |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=supplierslist&company=1
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 144,
"totalpages": 48,
"responsemessage": "",
"pagerows": 3,
"pagenumber": 1,
"success": true,
"data": [
{
"supplieruuid": "F3AD44183AFC1949941E25E23BEC2C73",
"supplierTimeStampModified": 1506350938,
"supplierRecordVersionNumber": 1,
"supplierCustomField317": "",
"supplierCustomField321": "",
"supplierName": "",
"supplierCode": "1/23329028",
"supplierPhone": "",
"supplierExpense": false,
"supplierInactive": false,
"supplierOnHold": false,
"supplierMainEmail": "",
"supplierSupplytypeDescription": "",
"supplierMarkup": 1,
"supplierWebURL": "",
"supplierProspect": false
},
{
"supplieruuid": "E9B3A17AB538094A9B6AC531E072C16D",
"supplierTimeStampModified": 1472053839,
"supplierRecordVersionNumber": 1,
"supplierCustomField317": "",
"supplierCustomField321": "",
"supplierName": "Fred smith",
"supplierCode": "1/454",
"supplierPhone": "",
"supplierExpense": false,
"supplierInactive": false,
"supplierOnHold": false,
"supplierMainEmail": "",
"supplierSupplytypeDescription": "Couriers",
"supplierMarkup": 0,
"supplierWebURL": "",
"supplierProspect": false
}
]
}