Approve

Approve a purchase order

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewSee overviewStructure of an API call
ActionYesThe action to performaction=approve
IdentifierYesPurchase ID or UUIDpurchase=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"
    }
  ]
}