List of supplier contacts
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 (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/purchases.json?&version=6&action=contacts&company=1&supplier=1/aaaa
Example request (legacy username/password):
http://<SERVER>/jsonapi/purchases.json?&version=6&action=contacts&company=1&supplier=1/aaaa&user=<username>&password=<password>
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
}
]
}