receipts_refund
Issue full or partial refund counter-receipts that mirror an issued receipt with negative quantities and inverted payments, linked to the parent for traceable refunds.
Instructions
Issue a refund (counter-)receipt that mirrors the parent receipt with negative quantities and inverted payment amounts. The refund is auto-issued, linked back via refundOf, and inherits the parent receipt series. Parent must be issued and not itself a refund. Omit lineSelections for a full refund of the whole receipt; pass it to refund only specific lines (with possibly partial quantities). Multiple partial refunds against the same parent are allowed until the original quantities are exhausted.
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": {
"uuid": "<uuid>"
},
"name": "receipts_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the parent issued receipt to refund | |
| companyId | No | Company UUID (overrides configured default) | |
| lineSelections | No | When provided, only the listed lines are refunded with the given (partial) quantities. When omitted, the entire receipt is refunded. |