Cathay pacific cancellation policy under 24 hours is applied on both refundable or non-refunfable fares : To claim for a full refund you have to make cancellation in 24 hours from the original date of booking. And also travel date has to he 7 or more days from the date of travel. 24 hour policy is eligible for the originating from the U.S to Canada. The refund of cancelled flight will be processed in 7 to 10 working days in the original mode of payment.
https://airlinespolicy.com/cancellation-policy/cathay-pacific-cancellation-policy/