Record order invoice correction
record_order_invoice_correctionAttach a correction invoice or credit note to an existing order invoice after a refund, using a new invoice number and optional URL or provider.
Instructions
Attach a correction invoice (credit note: number, optional URL and provider) to an order that already has its invoice, e.g. after a refund. Allowed on canceled and refunded orders; the number must be new to the order.
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": {
"orderId": "<orderId>",
"number": "<number>"
},
"name": "record_order_invoice_correction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| number | Yes | Correction invoice number | |
| orderId | Yes | ||
| provider | No |