Add categories parameter to bank statements API and improve README#51
Merged
Add categories parameter to bank statements API and improve README#51
Conversation
- Add optional `categories: Optional[List[str]]` parameter to `process_bank_statement_document` and `process_bank_statement_document_url` - Include categories in the POST request body for transaction classification - Add test coverage for the new categories parameter - Rewrite README: add H1 title, TOC, all API sections (bank statements, checks, W-2/W-8/W-9, business cards, any docs, classify), error handling, contributing guide, and fix broken variable references and bare URLs Made-with: Cursor
Made-with: Cursor
Kaevan89
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
categoriesparameter (List[str]) toprocess_bank_statement_documentandprocess_bank_statement_document_urlfor transaction classificationcategoriesis correctly sent in the POST request bodyTest plan
pytest tests/test_bank_statements.pypasses (all 4 tests including newtest_process_bank_statement_with_categories)categorieslist is included in the POST body when providedcategoriesis omitted (defaults toNone)Made with Cursor