Delete

Delete a purchase

Delete

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewSee overviewStructure of an API call
ActionYesThe action to performaction=delete
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesPurchase ID or UUID"poInternal":"10008229"

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/purchases.json?company=1&&version=6&action=delete&input={
  "data": [
    {
      "poInternal": "10008229"
    }
  ]
}

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/purchases.json?company=1&&version=6&action=delete&input={
  "data": [
    {
      "poInternal": "10008229"
    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "poInternal": 10008242,
      "poUuid": "E22CEDFAB57E3E4EBCE9CCB1D5DA4FAA"
    }
  ]
}