credit_invoice
Create a full credit note for an invoice to process refunds or returns, booking the invoice first when required.
Instructions
Create a FULL credit note for an invoice (refund/return). Fortnox only credits BOOKED invoices; set bookkeep_first=true to book it first. Booking a full credit note puts the goods back in stock — don't add a manual inbound as well. Partial refund: credit, then update_invoice on the credit note to trim its rows.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_number": "<document_number>"
},
"name": "credit_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| bookkeep_first | No | ||
| document_number | Yes |