List the lines of a document

GET/api/{parent}/{id}/items

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
curl -X GET "https://yoursite.com/api/1/123/items" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
[
  {
    "id": 12,
    "title": "Design work",
    "description": "Landing page",
    "quantity": 2,
    "unit_type": "hours",
    "rate": 100,
    "total": 200,
    "sort": 0,
    "item_id": 0,
    "taxable": 1
  }
]
MethodGET
Path/api/{parent}/{id}/items
GroupLine Items
Sincev1.0.0
Defined inRestApi/Controllers/LineItemsController.php