Send document
Email a finalised invoice or quote to the customer with its PDF attached.
POST https://cotlet.dev/api/v1/lexware-office/documents/{document_id}
write Confirm
Sends the finalised document from your own sender address with your email text template, to the email address saved on the contact or the one you pass. A draft cannot be sent. The customer receives it at once. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| document_id string required | string | Document ID from list_documents or create_invoice. |
| to string | string | Recipient email. Default: the email saved on the contact. |
| message string | string | Email text. Default: your saved email text template. |
Request
curl -X POST https://cotlet.dev/api/v1/lexware-office/documents/document_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("lexware-office", "send_document", {"document_id":"document_8c41d2"}) const result = await cotlet.call('lexware-office', 'send_document', {"document_id":"document_8c41d2"}); cotlet call lexware-office send_document --data '{"document_id":"document_8c41d2"}' Example response
{
"document_id": "d_c44e19",
"number": "RE1043",
"sent_to": "buchhaltung@nordlicht.example",
"sent_at": "2026-10-14T09:12:00+02:00"
}