create_credit_note
Create a credit note against an existing invoice, reducing the amount owed. Requires Finance role or above.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Reason for the credit note (required). | |
| confirm | No | Set true to perform the action. Omit or false returns a preview only — nothing is written. | |
| invoice_id | Yes | ID of the invoice to credit (required). | |
| credit_amount | Yes | Total credit amount (required, must be > 0 and ≤ invoice total). | |
| idempotency_key | No | Optional caller-supplied key; retrying with the same key returns the original result instead of acting twice. |