Paid items cannot be restored
Affiliation commission ops map cannot_restore_paid to Paid items cannot be restored. (API may also return Cannot restore a commission that was reversed after payout).
Why this happens
A commission that was paid out (or reversed after payout) is locked — restore/unreverse is blocked. Related finals: Paid commissions are final and cannot be reversed.
Diagnose and fix
1. Confirm the row state in Affiliate commissions ledger.
2. Do not attempt restore on paid/post-payout reversed items.
3. See Could not restore commission for other restore failures.
4. See Affiliation Settings if reversals are disabled site-wide.