https://ideas.salesforce.com/s/idea/a0B8W00000QebAEUAZ/8888291467-how-to-change-or-cancel-your-flight-with-united-airlines-united

Canceling a nonrefundable fare will result in an e-credit for the full amount paid (minus any cancellation fees, depending on fare type and route). However, if you cancel a refundable ticket, you'll get the amount paid refunded back to your original form of payment.