Unapprove a purchase order
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 |
Action | Yes | The action to perform | action=unapprove | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 |
Example request:
http://<SERVER>/jsonapi/purchases.json?company=1&user=user&password=user&version=3.9&action=unapprove&purchase=10008233
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order unapproved. ",
"warningmessage": "",
"success": true,
"data": [
{
"poPOApproved": false,
"poPOApprovedDate": "0000-00-00",
"poPOApprovedTime": "00:00",
"poPOApprovedUserId": 0,
"poPOApprovedDateUtc": "0000-00-00",
"poPOApprovedTimeUtc": "00:00",
"poPOApprovedTimeZone": "",
"poInternal": 10008255,
"poUuid": "38AB3496BAC5FB44A2C88F4A879098CB",
"poTimeStampModified": 1521024460,
"poRecordVersionNumber": 15,
"poPONumber": "012090"
}
]
}