Create a credit note
Reverse a posted invoice with a credit note.
MCP tool odoo_write → create_credit_note
write Confirm
Uses the Credit Note window of the invoice. In reverse mode the credit note is a draft prefilled from the original invoice. In reverse_and_new mode it is validated, reconciled with the original and a new draft invoice is opened. If money goes back to the customer, register that payment afterwards. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices or create_draft_invoice. |
| reason string required | string | Reason shown on the credit note. |
| mode enum | enum | reverse: a draft credit note you can adjust; reverse_and_new: a validated credit note plus a new draft invoice. Default: reverse. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "odoo_write",
"arguments": {
"operation": "create_credit_note",
"arguments": {
"invoice_id": 1,
"reason": "reason"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"credit_note_id": 4230,
"reverses": "INV/2026/00398",
"mode": "reverse",
"status": "draft",
"reason": "Wrong quantity",
"amount_total": 2150,
"currency": "EUR"
},
"isError": false
}