Manual refund / pay credit note
refund_invoiceRecord a manual refund against an invoice or pay out a credit note, specifying the gateway used for the transaction.
Instructions
Record a manual (offline) refund against an invoice or pay out a credit note. Requires the gateway the refund was made through. DESTRUCTIVE: records money movement.
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": {
"invoice_id": "<invoice_id>",
"gateway_id": "<gateway_id>"
},
"name": "refund_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount in invoice currency (omit = full) | |
| gateway_id | Yes | Gateway UUID | |
| invoice_id | Yes | Invoice UUID |