Skip to content

feat(account): add fetchAccountBalance for GET /accounts/{id}/balance - #180

Closed
MrNinso wants to merge 1 commit into
pluggyai:masterfrom
MrNinso:master
Closed

MrNinso wants to merge 1 commit into
pluggyai:masterfrom
MrNinso:master

Conversation

@MrNinso

@MrNinso MrNinso commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Adds support for the real-time account balance endpoint GET /accounts/{id}/balance, returning the AccountBalance model (balance, optional blockedBalance/automaticallyInvestedBalance, currencyCode, updateDateTime).

  • New AccountBalance type in src/types/account.ts
  • fetchAccountBalance(id) method on PluggyClient, reusing the existing createGetRequest / auth / error-handling path
  • Unit tests covering full and minimal responses plus error propagation

🤖 Generated with Claude Code

Adds support for the real-time account balance endpoint
GET /accounts/{id}/balance, returning the AccountBalance model
(balance, optional blockedBalance/automaticallyInvestedBalance,
currencyCode, updateDateTime).

- New AccountBalance type in src/types/account.ts
- fetchAccountBalance(id) method on PluggyClient, reusing the
  existing createGetRequest / auth / error-handling path
- Unit tests covering full and minimal responses plus error propagation

Co-Authored-By: Claude Code <noreply@anthropic.com>
tmelendez-p added a commit that referenced this pull request Oct 21, 2026
…category rule id (#190)

Adds PluggyClient.fetchAccountBalance for GET /accounts/{id}/balance with the
AccountBalance type (balance, blockedBalance, automaticallyInvestedBalance,
currencyCode, updateDateTime), as contributed in #180, plus closingBalance,
which the API now returns too.

ClientCategoryRule gains id: it is what deleteCategoryRule takes, and the API
now returns it on GET/POST /categories/rules (TRIN-2651).

Co-authored-by: MrNinso <23037835+MrNinso@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
pluggy-github-app Bot pushed a commit that referenced this pull request Oct 21, 2026
# [0.93.0](v0.92.0...v0.93.0) (2026-10-21)

### Features

* **account:** add fetchAccountBalance and expose closingBalance and category rule id ([#190](#190)) ([cd29046](cd29046)), closes [#180](#180)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant