Cancel

Cancels a real purchase order - allocating a write off invoice against it

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.8v3.8 Overview
ActionYesThe action to performaction=cancel
IdentifierYesPurchase ID or UUIDpurchase=10008229

Example request:

http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.8&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"
    }
  ]
}