Cancels a real purchase order - allocating a write off invoice against it
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=cancel | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=cancel&purchase=10008233
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order cancelled and written off. ",
"warningmessage": "",
"success": true,
"data": [
{
"poCancelDate": "2018-03-14",
"poCancelTime": "11:16",
"poCancelTimeZone": "UTCA",
"poCancelDateUtc": "2018-03-14",
"poCancelTimeUtc": "11:16",
"poCancelUserId": 54,
"poPicked": false,
"poPickedForQuote": false,
"poOption": "",
"poInternal": 10005708,
"poUuid": "BEA6082B7BE911E2B9FC00155D003416",
"poTimeStampModified": 1521026168,
"poRecordVersionNumber": 8,
"poPONumber": "012097"
}
]
}