List Document Lines
This API retrieves the list of document lines for a specific document.
URL
/documentline/list
Method
GET
Parameters
Name | Type | Required | Description |
---|---|---|---|
guid | String | Yes | GUID of the document. |
doc_type | String | Yes | Type of the document (e.g., invoice, estimate, purchase_order). |
Success Response
{ "success": true, "message": "List of document lines", "result": { "document_lines": [ { "invoice_id": 123, "text": "Item description", "unit_price": 100.0, "quantity": 2, "packages": 1, "discount_percentage": 10.0, "discount_amount": 5.0, "vat_rate": 20.0, "line_guid": "line-guid-123" }, ... ] } }
Error Response
{ "success": false, "message": "Error message" }
Example Request
GET /documentline/list?guid=example-guid&doc_type=invoice