Restore deleted
restore_deletedRestore a binned (soft-deleted) record by kind + id, undoing its delete. Restoring a document (invoice, bill, quote, purchase order, credit note) also restores the payments that were binned with it. Idempotent — restoring a record that is not binned changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The binned record's id. | |
| entity | Yes | The binned record's kind: "expense", "income", "contract" (any document — invoice, bill, quote, purchase order, credit note; "document" is accepted too), "invoice" (a legacy-store invoice or quote), "client", "supplier", "transaction", "product", "variant", "journal-entry", "message" or "tag". |