Assuming you've already registered your Oystercard:
Log in
Go to My Refund tab.
Tap Service Delay Refund.
Select Oystercard and choose your card.
Fill in your journey details with delay time and refund method.
Submit.
They turn it around usually in a couple of working days.