Receipts: delete receipt by id_by_customer
receipts_deleteDelete a mistakenly filed receipt by per-customer ID to remove it from the customer account. The deletion is recoverable with receipts_restore.
Instructions
🔴 DESTRUCTIVE · deletes data: Deletes or cancels a record. Confirm with the user before calling. Receipt deletes are restorable; cost-location deletes are not. Cancelling a posting deletes it if it is not yet fixed, otherwise it books a reversal posting.
delete receipt by id_by_customer
Mark a receipt as deleted for a specified customer account by id_by_customer. You can get the "id_by_customer" by using the "/receipts/get method" first.
Use to remove a receipt that was filed by mistake.
Recoverable: receipts_restore brings the receipt back. Confirm with the user before calling.
Endpoint: POST /receipts/delete/id_by_customer
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": {
"id_by_customer": "<id_by_customer>"
},
"name": "receipts_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_by_customer | Yes | Required per-customer record ID obtained from the corresponding list tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | blank | |
| success | Yes | Success boolean | |
| id_by_customer | No | blank |