Delete one line of a document

DELETE/api/{parent}/{id}/items/{itemId}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
parent String Document type owning the lines
id Number Parent document unique ID
itemId Number Line unique ID. It must belong to that document.
curl -X DELETE "https://yoursite.com/api/1/123/items/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
{
  "status": 200,
  "messages": {"success": "The record has been deleted."}
}
MethodDELETE
Path/api/{parent}/{id}/items/{itemId}
GroupLine Items
Sincev1.0.0
Defined inRestApi/Controllers/LineItemsController.php