Option Off

Unsets the purchase as an option type

Option Off

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
ActionYesThe action to performaction=option_off
IdentifierYesPurchase ID or UUIDpurchase=10008229

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/purchases.json?&version=6&action=option_off&purchase=10007388

Example request (legacy username/password):

http://<SERVER>/jsonapi/purchases.json?&version=6&action=option_off&purchase=10007388&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Purchase order option changed. ",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "poInternal": 10007388,
      "poUuid": "7A54C829DD0D174CA43A43B948386413",
      "poTimeStampModified": 1605203565,
      "poRecordVersionNumber": 44,
      "poPONumber": "{EST}",
      "poOption": ""
    }
  ]
}