Delete payslips
delete_payslipsDelete payslips by id for good. A finalised payslip's journal leaves the books with it. Without confirm true it changes nothing and answers reason confirm-required with what it would delete; ask the user, then call again with confirm true. A finalised payslip dated in a locked period, or a payslip on a pay run that finalises itself on its pay date, is refused. A missing or another business's id refuses the whole batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| confirm | No | Send true only after the user has agreed to the change the refusal described. |