Some scholars have cited a Shafi‘i allowance for sale of debt. The clarification given is that the permission referred to is at par value, not at a discount.
Therefore, using that view to justify ordinary discounted debt trading would go beyond the position described.