List of supplier contacts
| 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=contacts | |
| Supplier | No | Supplier code | supplier=1/aaaa |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=4&action=contacts&company=1&supplier=1/aaaa
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 5,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"suppliercontactInternalRef": 304,
"suppliercontactForwardsfullName": "Jammy Dodger",
"variable_selected": false
},
{
"suppliercontactInternalRef": 266,
"suppliercontactForwardsfullName": "Jimmy Smith",
"variable_selected": false
},
{
"suppliercontactInternalRef": 276,
"suppliercontactForwardsfullName": "jon test ing2",
"variable_selected": false
},
{
"suppliercontactInternalRef": 332,
"suppliercontactForwardsfullName": "s1 s1",
"variable_selected": false
}
]
}