Skip to content

feat: add AccountResource.verify for Unit accounts/verify API - #85

Merged
avesk merged 1 commit into
masterfrom
add-account-verify
Jul 8, 2026
Merged

feat: add AccountResource.verify for Unit accounts/verify API#85
avesk merged 1 commit into
masterfrom
add-account-verify

Conversation

@avesk

@avesk avesk commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add AccountVerifyRequest and AccountVerifyDTO to unit/models/account.py.
  • Add AccountResource.verify() (POST accounts/verify) to unit/api/account_resource.py, returning whether an external routing/account pair is an on-us Unit DepositAccount (and, when present, the account + owning customer).
  • Add an e2e test in e2e_tests/test_account_verify.py.

Backs Truss's migration to Unit's Verify Account API for detecting on-us accounts before Unit deprecates ACH->Book auto-conversion (2026-08-01).

Consumers

  • Truss-pmts/api#5101 pins this commit and calls accounts/verify. Merge this PR first, then repin api to the squashed master SHA.

Test plan

  • python -m pytest e2e_tests/test_account_verify.py

Co-authored-by: Cursor <cursoragent@cursor.com>
@avesk
avesk merged commit 67ce152 into master Jul 8, 2026
3 of 4 checks passed
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.

2 participants