Loki Docs
Tools › Transactions › Delete a transaction's receipt

Delete a transaction's receipt

delete_receiptChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first. Safe to retry: the same call twice changes nothing more.
Permission
Transactions, change transactions:write

What your assistant is told

Delete a transaction's receipt AND every item on it. The transaction itself is untouched and keeps its amount; the whole payment simply counts in its own category again, as it did before the receipt was saved. Use it when the user wants the split and the stored product lines gone — the items are the only record of what they bought, so this is the delete that removes them. It cannot be undone; confirm first. To remove one line use delete_receipt_item, and to replace the receipt from a new photo use set_receipt, which does not need this first.

Parameters

  • transactionIdid, requiredUUID of the transaction whose receipt to delete.