Check register / Discount-Consent-Identity

DSC-018

A requirement the spck.dev suite checks on UCP servers. The quoted text is the normative requirement; the citation links to the exact line of the pinned spec source it was taken from.

2026-01-11:

totals[type=items_discount].amount must equal sum(line_items[].discount).

2026-01-23:

totals[type=items_discount].amount must equal sum(line_items[].discount).

2026-04-08:

If a discount has allocations pointing to line items it contributes to items_discount; otherwise (no allocations, or shipping/fees allocations) it contributes to discount
Keyword
MUST
Area
Discount-Consent-Identity
Versions
2026-01-11 2026-01-23 2026-04-08
Testability
testable
Spec source
ucp:docs/specification/discount.md#L199 2026-01-11
ucp:docs/specification/discount.md#L199 2026-01-23
ucp:docs/specification/discount.md#L298 2026-04-08

How this is graded

A deviation on a MUST fails the run and shows the requirement next to the actual response. Checks the suite cannot validate soundly are reported inconclusive or not-tested — never a silent pass. The full verdict semantics are on the grading rubric.

Run it against your store

The hosted check covers the read-only surface; the CLI and GitHub Action run the full suite, including this check when your store declares the capability it belongs to.