Delete letter
delete_letterDeletes a draft, or cancels a paid letter sent for the user that has not been posted yet: the stamp goes back to Deutsche Post and the full amount is refunded the way the user paid. Only letters of this account; others return "Letter not found". Use it when the user no longer wants the letter; to change a draft use update_letter. Cannot be undone; order records without personal data are kept by law. Posted letters and purchased self_print letters are only erased, not refunded.
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>"
},
"name": "delete_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| letter_id | Yes | The letter_id returned by create_letter or list_letters, e.g. 'a21517e4dac913a8'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Refunded amount. | |
| refund | No | refunded_to_payment_method, returned_to_balance, refund_pending or test_no_money. | |
| deleted | No | true when content and addresses were erased. | |
| remains | No | What is kept by law. | |
| cancelled | No | true when a paid letter was cancelled before dispatch. | |
| letter_id | No | Id of the letter. |