List the lines of a document
GET/api/{parent}/{id}/items
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| 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
}
]