Delete a purchase
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | See overview | Structure of an API call |
Action | Yes | The action to perform | action=delete | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
Identifier | Yes | Purchase ID or UUID | "poInternal":"10008229" |
Example request:
http://<SERVER>/jsonapi/purchases.json?company=1&user=user&password=user&version=3.9&action=delete&input={
"data": [
{
"poInternal": "10008229"
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"poInternal": 10008242,
"poUuid": "E22CEDFAB57E3E4EBCE9CCB1D5DA4FAA"
}
]
}