Delete/Cancel a transaction
DELETE/api/v2/transactions/:order_id
Cancels a pending transaction. This is a soft delete that marks the transaction as deleted and changes its status to 'cancelled'.
Rate Limit: 100 requests per 60 seconds
Requirements:
- Organization must be active
- Transaction must belong to your organization
- Transaction must not already be deleted
- Transaction must not be paid (status: 'paid' or 'paid_and_blocked')
Behavior:
- Sets
is_deletedto true - Sets
deleted_attimestamp - Changes status to 'cancelled'
- Transaction data is preserved for records
Cannot Delete:
- Already paid transactions (refund required instead)
- Already deleted transactions
- Transactions from other organizations
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Transaction cancelled successfully. Returns confirmation message with new status.
Bad request. Possible reasons:
- Order ID is required
- Transaction is already deleted
- Cannot delete a paid transaction
Unauthorized - Invalid API key or organization not active.
Forbidden - No permission to delete this transaction (belongs to another organization).
Transaction not found.
Rate limit exceeded.
Internal server error - Failed to delete transaction.