> ## Documentation Index
> Fetch the complete documentation index at: https://whalescorp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Void Invoice

```text theme={null}
UPDATE invoices SET status='void', void_reason=$reason
WHERE id=$id AND instance_id=$instanceId AND status != 'void'
```

**Policy**: Void for pre-payment errors. Invoice number is retired, never reused. For post-payment corrections: use credit note (planned — see §14).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.