> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Commercial Code - COM § 9340. — Section 9340.

- **Citation**: Cal. Commercial Code - COM § 9340.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Commercial Code - COM (COM)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/commercial-code/division-9/chapter-3/section-9340](https://corpuslaw.us/codes/california/commercial-code/division-9/chapter-3/section-9340)
- **Semantic URL**: [https://corpuslaw.us/codes/california/commercial-code/division-9/chapter-3/section-9340](https://corpuslaw.us/codes/california/commercial-code/division-9/chapter-3/section-9340)

## Hierarchy

Title COM — Commercial Code - COM > Division 9. — DIVISION 9. SECURED TRANSACTIONS [9101. - 9907.] > Chapter 3. — CHAPTER 3. Perfection and Priority [9301. - 9342.]

## Text

(a)

Except as otherwise provided in subdivision (c), a bank with which a deposit account is maintained may exercise any right of recoupment or setoff against a secured party that holds a security interest in the deposit account.

(b)

Except as otherwise provided in subdivision (c), the application of this division to a security interest in a deposit account does not affect a right of recoupment or setoff of the secured party as to a deposit account maintained with the secured party.

(c)

The exercise by a bank of a setoff against a deposit account is ineffective against a secured party that holds a security interest in the deposit account which is perfected by control under paragraph (3) of subdivision (a) of Section 9104, if the setoff is based on a claim against the debtor.
