Draft a credit note
credit_note_draftPrepare a credit note for an issued invoice (by id or number): the way an issued invoice is corrected. Without lines it credits the whole invoice; with lines (as on an invoice) a part. It may credit a paid invoice: what it gives back beyond what is due is the customer's credit (to allocate or refund). Without invoice, with customer (a code) and lines: a credit note of its own, the customer's credit (a German company prints it as Gutschrift). reason says why and is printed. It is a draft: it is issued like an invoice. A whole invoice is cancelled by voiding it. Nothing in the books changes here.
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": {
"reason": "<reason>",
"idempotency_key": "<idempotency_key>"
},
"name": "credit_note_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| notes | No | ||
| reason | Yes | ||
| company | No | ||
| invoice | No | ||
| customer | No | ||
| issue_date | No | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||