Approve 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=approve | |
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=approve&purchase=10008233
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order approved. ",
"warningmessage": "",
"success": true,
"data": [
{
"poPOApproved": true,
"poPOApprovedDate": "2018-03-14",
"poPOApprovedTime": "10:37",
"poPOApprovedUserId": 54,
"poPOApprovedDateUtc": "2018-03-14",
"poPOApprovedTimeUtc": "10:37",
"poPOApprovedTimeZone": "UTCA",
"poInternal": 10008255,
"poUuid": "38AB3496BAC5FB44A2C88F4A879098CB",
"poTimeStampModified": 1521023848,
"poRecordVersionNumber": 14,
"poPONumber": "012090"
}
]
}