Change the supplier
Change the supplier
Parameter | Description | Examples | More info |
---|---|---|---|
API | The API area | purchases.json | |
Action | Change supplier | &action=changesupplier | |
Parameters described in overview | user=user&password=user&version=3.3 | ||
Identifies the record(s) you wish to set | |||
Purchase | Internal Purchase ID | &purchase=10008229 | |
Supplier | Supplier Code | &supplier=1/aaaa |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.3&action=changesupplier&supplier=1/aaaa
&purchase=10007388
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order supplier changed. ",
"warningmessage": "",
"success": true,
"data": [
{
"poSupplierCode": "1/aaaa",
"poSupplierContactInternalRef": 0,
"poInternal": 10007388,
"poUuid": "7A54C829DD0D174CA43A43B948386413",
"poTimeStampModified": 1521037172,
"poRecordVersionNumber": 25,
"poPONumber": "{EST}"
}
]
}