receipts_refund
Issue a refund receipt for a previously issued receipt, automatically mirroring the original with negative quantities and inverted payments. Supports full or partial line 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.
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. |