Get document
One document with its lines, totals, status and reminders already sent.
GET https://cotlet.dev/api/v1/lexware-office/documents/{document_id}
read
Returns one invoice or quote: customer, dates, line items, net, tax and gross totals, status, open amount and the reminders already sent. A draft has no number yet; the number appears when the document is finalised.
Parameters
| Name | Type | Description |
|---|---|---|
| document_id string required | string | Document ID from list_documents or create_invoice. |
Request
curl https://cotlet.dev/api/v1/lexware-office/documents/document_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("lexware-office", "get_document", {"document_id":"document_8c41d2"}) const result = await cotlet.call('lexware-office', 'get_document', {"document_id":"document_8c41d2"}); cotlet call lexware-office get_document --data '{"document_id":"document_8c41d2"}' Example response
{
"document_id": "d_9c31be",
"type": "invoice",
"number": "RE1031",
"status": "overdue",
"contact": {
"contact_id": "c_4f2a91",
"name": "Nordlicht Design GmbH",
"email": "buchhaltung@nordlicht.example"
},
"date": "2026-09-02",
"due_date": "2026-09-16",
"lines": [
{
"name": "Consulting, September",
"quantity": 10,
"unit_price_net": 95,
"tax_rate": 19
}
],
"total_net": 950,
"total_tax": 180.5,
"total_gross": 1130.5,
"open_amount": 1130.5,
"currency": "EUR",
"reminders": []
}