Submit letter text
submit_letter_textTypesets plain text as a business letter (DIN 5008: sender block, date, subject, closing, signature) after create_letter. text is the body from the salutation on; subject, date, closing and signature_name are optional. For own layouts or tables use submit_letter_pdf. Replaces the previous version; an open review page updates itself. Charges nothing. Fails for paid letters (cancel with delete_letter) and for text beyond 40 pages. preview_url is a web page, not an image. Next: create_payment_link or purchase_letter.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"letter_id": "<letter_id>",
"text": "<text>"
},
"name": "submit_letter_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date of the letter, YYYY-MM-DD. Default: today. | |
| text | Yes | The body, starting with the salutation, in the language of the letter, e.g. 'Dear Sir or Madam,'. Paragraphs are separated by a blank line; lines starting with '- ' or '1. ' become lists; **bold** is allowed. Sender, recipient, date and subject are set separately and do not belong in the text. | |
| closing | No | Closing phrase. Default: the usual closing of the language; not added again if the text already ends with one. | |
| subject | No | Subject line, e.g. 'Cancellation of my membership, member no. 4711'. | |
| language | No | Language of the letter: de, en, fr, es, it, nl, pl or pt. It sets the date format and the default closing. Default: from the recipient's country, otherwise English. | |
| letter_id | Yes | The letter_id returned by create_letter or list_letters, e.g. 'a21517e4dac913a8'. | |
| signature_name | No | Name under the closing. Default: the sender's name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Last error of this letter, if any. | |
| pages | No | Number of A4 pages. | |
| price | No | Total price incl. postage and VAT, formatted, e.g. '4,84 €'. | |
| sender | No | Postal address. | |
| status | No | created, preview_ready, awaiting_payment, purchasing, purchased or purchase_unclear. | |
| payment | No | pending, paid, balance, refunded or a test marker. | |
| product | No | Deutsche Post postage product. | |
| delivery | No | 'automatic' (sent by Deutsche Post) or 'self_print' (the user prints and posts it). | |
| tracking | No | Tracking after dispatch. | |
| letter_id | No | Id of the letter, used by all other letter tools. | |
| next_step | No | What to do next. | |
| posted_on | No | Date the letter was posted, YYYY-MM-DD. | |
| recipient | No | Postal address. | |
| sender_id | No | Saved sender used for this letter. | |
| test_mode | No | Set when purchases are simulated (review accounts, test operation). | |
| price_cent | No | Total price in euro cents. | |
| registered | No | Registered mail with tracking. | |
| status_url | No | Status page of the letter. | |
| upload_url | No | URL that accepts the raw PDF via PUT until purchase. | |
| invoice_url | No | Invoice. | |
| preview_url | No | Web page with the whole letter: review and payment before purchase, status after. It is a web page, not an image file. | |
| approval_url | No | Page where the user approves and pays this letter. | |
| delivered_at | No | Delivery time reported by Deutsche Post. | |
| postage_cent | No | Deutsche Post postage in cents. | |
| product_code | No | Code of the postage product. | |
| link_validity | No | How long the links stay valid. | |
| tracking_note | No | Limits of tracking for the destination. | |
| user_language | No | Language of the user, for pages and e-mails. | |
| letter_pdf_url | No | self_print only: franked PDF to print. | |
| preview_images | No | PNG images of the pages, for showing the letter inline. | |
| return_receipt | No | Registered mail with return receipt. | |
| dispatch_status | No | queued, posted, cancelled or test. | |
| preview_pdf_url | No | Preview PDF with specimen stamp. | |
| service_fee_cent | No | Service fee in cents. | |
| delivery_estimate | No | Expected delivery, without guarantee. | |
| price_from_balance | No | Price when paid from the prepaid balance. | |
| posting_receipt_url | No | Proof of posting for registered mail. | |
| returned_undeliverable_at | No | Set when the letter came back as undeliverable. |