Undo a line resolution
Clear the recorded resolution on a bill line (the “Undo” action). Idempotent — undoing an already-clear line just returns the refreshed view. The group’s status re-derives.
Response
OK
A bill's three-way match: each bill line with its allocations and derived price/quantity variances (computed at read time, never stored), plus fuzzy purchase-order and delivery-note suggestions for lines that still need matching.
Unique identifier of this match group.
The bill under review.
Lifecycle status of the match: Open (nothing to settle), Variance (a flagged difference awaits a human decision), Resolved (settled), or Synced (exported — not reachable yet).
Open, Variance, Resolved, Synced Per-line rounding tolerance, in the bill's currency, that every variance was judged against. Configured per organisation; a difference within tolerance is treated as clean.
True when every line is fully allocated with no outstanding variance.
One entry per bill line, carrying its allocations and derived variances.
Fuzzy purchase-order-line suggestions for bill lines with no exact (SKU) match. Derived, never stored; confirm one (POST an allocation) to create a real match.
Fuzzy delivery-note-line suggestions — the receipt-quantity counterpart of Suggestions. Lets the UI ask 'which delivery does this line belong to?' without the caller knowing line ids.