Delete Transaction
DELETE/transaction/delete-transaction
This endpoint allows authenticated users to delete a transaction by submitting a request with the necessary details. The endpoint checks the user's access level to ensure they have permission to delete transactions and enforces a rate limit of 30 requests. It verifies that the transaction belongs to the user and has not already been deleted or withdrawn. If the transaction is paid and has a payment reference, it processes refunds and updates the user's account balance accordingly.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
The request was successful.
The request was invalid or malformed.
The user is not authorized to make this request.
The user does not have permission to access this resource.
The requested resource could not be found.
Validation Error
An unexpected internal server error occurred.