> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Reject transactions

> This operation rejects the specified transactions and provides reason for the rejection.

<Tip>
  Try [Cobo WaaS Skill](/v2/guides/overview/cobo-waas-skill) in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
</Tip>

<CodeGroup>
  ```Swift iOS theme={null}
  public func rejectTransactions(transactionIDs: [String], reason: String) throws
  ```

  ```Dart Flutter theme={null}
  Future<void> rejectTransactions(List<String> transactionIDs, String reason) async
  ```
</CodeGroup>

<RequestExample>
  ```Swift iOS theme={null}
  let transactionIDs = ["transaction_id_01"]
  let reason = "Insufficient funds"

  do {
      try sdkInstance?.rejectTransactions(transactionIDs: transactionIDs, reason: reason)
  } catch {
      print("Error: \(error)")
  }
  ```

  ```Dart Flutter theme={null}
  final List<String> transactionIDs = ["transaction_id_01"];
  const String reason = "Insufficient funds";

  try {
      await sdkInstance?.rejectTransactions(
          transactionIDs: transactionIDs,
          reason: reason
      );
  } catch (error) {
      print("Error: $error");
  }
  ```
</RequestExample>

## Parameters

<ParamField path="transactionIDs" type="string[]">
  The list containing the IDs of the transactions to be rejected.
</ParamField>

<ParamField path="reason" type="string">
  The detailed explanation for why the transactions are being rejected.
</ParamField>
