Cancel

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

Purchase order cancellation

Parameter

Description

Examples

More info

API

The API area

purchases.json

Action

Cancel a purchase order

&action=cancel

Parameters described in overview

user=user&password=user&version=3.3

Overview

Identifies the record(s) you wish to cancel

Purchase

Internal Purchase ID

&purchase=10008229

Example request:

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