Bugreport: post transaction

Hey! Got you a nice one. The following transaction post gives me a 500 error. "cleared" set to 1 instead of required enum value is at fault, my bad, but still, 500 instead of 4xx makes it a bug, eh? (on my part it's an honest beginners mistake - C# serializes enums as their ids by default)

{
    "transaction":{
        "account_id":"(id)",
        "amount":100000,
        "approved":false,
        "category_id":null,
        "cleared":1,
        "date":"2018-07-22T00:00:00+03:00",
        "flag_color":null,
        "import_id":null,
        "memo":null,
        "payee_id":null,
        "payee_name":"Test Payee"
    }
}
2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Dmitriy Kartashev Yep - this is a bug.  Thanks - we'll get it fixed!

    Like
  • Hey Dmitriy ,

    I'm jumping in to let you know that we released an update with this fix. Now that'll return a 400 error. :-)

    Thanks for your help on this one!

    -Elena

    Like
Like Follow
  • 2 yrs agoLast active
  • 2Replies
  • 418Views
  • 3 Following