Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | suppliercontacts.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Action | Yes | The action to perform | action=create | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
Supplier Contact Supplier Code | Yes/No | Supplier code. Only pass a supplier code if the company setting "Own supplier account numbers" is unchecked | "suppliercontactSupplierCode":"1/EMAPR" |
Example request:
http://<SERVER>/jsonapi/suppliercontacts.json?user=user&password=user&version=3.9&action=create&input={
"data": [
{
"suppliercontactSupplierCode": "1/EMAPR"
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"suppliercontactUuid": "EC7D896F2B32B14A84310F6798FC98C3",
"suppliercontactInternalRef": 361,
"suppliercontactTimestampModified": 1565699972,
"suppliercontactRecordVersionNumber": 0
}
]
}