Delete income
delete_incomeDelete one income record or many to the bin (soft-delete, restorable). Send id for one record, which returns {error}. Or send ids (up to 250) to delete many in one call, which returns {error, deleted: [id ...], errors: [{id, message} ...]}. That is partial success: ids this business does not own, already deleted, or unknown are skipped and listed in errors, and error is true only when nothing was deleted. The ledger recomputes, so a linked invoice's outstanding is restored. Confirm with the user before deleting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | One income id to delete. | |
| ids | No | Up to 250 income ids to delete in one call. Partial success: ids this business does not own, already deleted, or unknown are skipped and listed in errors. |