Is it possible to delete transactions via the API?

Hey,

I can't figure out how to delete a transaction via the API.

I've tried sending a PUT to /budgets/{budget_id}/transactions/{transaction_id} with

{"transaction": {"deleted": true}}

I get back a 200, but the transaction still shows "deleted": false. I also tried hitting the same endpoint with a DELETE but get a 404.

Is this possible?

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I'll let someone from support make the official answer, but just looking at the api docs (the same one you linked) the data to pass doesn't show deleted as an option.

     

    {
      "transaction": {
        "account_id": "string",
        "date": "string",
        "amount": 0,
        "payee_id": "string",
        "payee_name": "string",
        "category_id": "string",
        "memo": "string",
        "cleared": "cleared",
        "approved": true,
        "flag_color": "red",
        "import_id": "string"
      }
    }
    Reply Like
    • Dennis Whitney - Deletion is not currently supported through the API.

      Reply Like
  • In an app I'm working on, I'm working around this limitation by setting the transaction amount to `0` instead of deleting.  It's not ideal, but is good enough for my purposes.

    I haven't tried this. but could also create a special closed "attic" tracking account and move the "deleted" transaction there (moving transactions is supported by changing the `account_id`).  That'll get the transaction out of sight.

    +1 for wanting a proper way to delete a transaction, though!

    Reply Like
Like Follow
  • 2 days agoLast active
  • 3Replies
  • 50Views
  • 4 Following