Xero Create Credit Note
xero_create_credit_noteCreate Xero credit notes for customer or supplier accounts by supplying a contact, line items, date, reference, and credit note type.
Instructions
Create a credit note. Requires XERO_WRITE_ENABLED=true.
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": {
"contact_id": "<contact_id>",
"line_items": "<line_items>"
},
"name": "xero_create_credit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Credit note date (YYYY-MM-DD) | |
| reference | No | Reference | |
| contact_id | Yes | Contact UUID | |
| line_items | Yes | JSON array of line items | |
| credit_note_type | No | ACCRECCREDIT or ACCPAYCREDIT | ACCRECCREDIT |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |