Skip to content

Add support for the financial insights transactions update CLI command - #271

Open
selinafeng-stripe wants to merge 5 commits into
mainfrom
selinafeng/update-transactions
Open

Add support for the financial insights transactions update CLI command#271
selinafeng-stripe wants to merge 5 commits into
mainfrom
selinafeng/update-transactions

Conversation

@selinafeng-stripe

Copy link
Copy Markdown
Contributor

Adds support for the transactions update CLI command for updating the category/description on a transaction.

link-cli transactions update lbctxn_... --category=restaurants --description="Hawa Murray Hill"
✓ Transaction updated

  ID: lbctxn_...
  Description: Hawa Murray Hill
  Category: restaurants
  Amount: -$8.62
  Date: 2026-08-23
  Status: succeeded

Listing the transaction after shows the updated category and description:

link-cli transactions list
Transactions

 Date               Amount  Status      Category          Description
 --------------------------------------------------------------------------------------------------------------
 2026-08-23         -$8.62  succeeded   restaurants       Hawa Murray Hill

When the category is invalid:

link-cli transactions update lbctxn_... --category=abcdef --description="Hawa Murray Hill"
✗ Failed to update transaction
Failed to update transaction (400): Invalid category: abcdef

When the resource is not authorized

link-cli transactions update lbctxn_... --category=restaurants --description="Hawa"
✗ Failed to update transaction
Failed to update transaction (403): Transaction not authorized

When the transaction is not found:

link-cli transactions update lbctxn_... --category=restaurants --description="Hawa"
✗ Failed to update transaction
Failed to update transaction (404): Transaction not found

@selinafeng-stripe
selinafeng-stripe requested a review from a team as a code owner August 27, 2026 17:11
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