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

Parameters: get_document
NameTypeDescription
document_id string required string Document ID from list_documents or create_invoice.

Request

cURL
curl https://cotlet.dev/api/v1/lexware-office/documents/document_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("lexware-office", "get_document", {"document_id":"document_8c41d2"})
Node.js
const result = await cotlet.call('lexware-office', 'get_document', {"document_id":"document_8c41d2"});
CLI
cotlet call lexware-office get_document --data '{"document_id":"document_8c41d2"}'

Example response

JSON

{
  "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": []
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.