You can cancel a payin when it's in one of the following statuses - requires_payment_method or requires_action. Upon cancellation, the status changes to cancelled.

Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!