Canceling a transaction

Let's say the customer made a purchase and I don't have the item in stock. I asked the customer if they would like me to replace it with another item or cancel the transaction and issue them refund.The customer stated in the message to cancel the transaction and get a refund.

Can I use the "customer requested to cancel" to cancel the transition or the right thing to do is mark it "Out of stock or damaged"?