delete_credit_note
Remove an unposted credit note. Ensures only credit notes are deleted, and requires posted credit notes to be unposted first.
Instructions
Delete an unposted credit note.
Validates the target is a credit note before deletion.
Posted credit notes cannot be deleted — unpost first via
unpost_invoice, then delete.
Args:
id: Credit note ID. Preferred parameter name — matches
get_invoice / post_invoice / etc.
credit_note_id: Legacy alias for id. Accepted for
back-compat; pass exactly one of id or
credit_note_id.
owner_type: Optional "customer" or "vendor"
disambiguator for ID collisions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| owner_type | No | ||
| credit_note_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |