Cancel Transaction
Cancel an active transaction by reference; checkout link expires immediately.
Use this endpoint to cancel an active transaction. Once cancelled, the checkout link is expired and cannot be reactivated.
How to cancel a transaction
Endpoint https://api.chapa.co/v1/transaction/cancel/{tx_ref}
Method PUT
Authorization Bearer CHAPA_SECRET_KEY
Only active transactions can be cancelled. This action is irreversible and the checkout link expires immediately.
cURL
JavaScript
Python
Responses
- Success: Transaction is cancelled; link expired.
- Failure: Returns error with message/status.
See Error Codes for full response details.