List of suppliers - for use when creating a PO or re-assigning a different supplier
List suppliers
Parameter | Description | Examples | More info |
---|---|---|---|
API | The API area | purchases.json | |
Action | Supplier lists | &action=supplierslist or &action=expenseslist | |
Parameters described in overview | user=user&password=user&version=3.3 | ||
Identifies the company record(s) you wish to list | |||
Company | Company ID | &company=1 | |
Rows (optional) | No. of records | &rows=3 | |
Page (optional) | No. of pages | &page=1 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.3&action=supplierslist&company=1&rows=2&page=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
}
]
}