Skip to main content
Version: v2

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_deleted to true
  • Sets deleted_at timestamp
  • 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

Transaction cancelled successfully. Returns confirmation message with new status.