The ticket can be canceled from passenger's end according to the cancellation policy. The important rules of the policy are as follows:
Iberia Airlines Cancellation Policy says If a ticket was booked with immediate payment, it can be canceled within 24 hours of booking without any cancellation charges.
The refund is processed through the same mode from where it was booked i.e. either online or through a travel agency.